Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Anachron/mimosa-marionette

Repository files navigation

Mimosa-Marionette

About

Advanced Skeleton for Mimosa (buildtool), using Marionette (Framework), RequireJS (+CSS, +HBS), Express (Server), Jade (Server-Template), Bower (Component Handling), CoffeeScript (JS-Metalang), LESS (CSS-Metalang), Semantic-UI (CSS-Framework), and more.

Requirements

  • Node.js >= 0.10.x
  • Mimosa >= 2.2.x
  • Git >= 1.5

Installation

mimosa skel:new <project> marionette-semantic

Will create a new Project in the Subfolder with the already set up configuration of marionette-semantic.

Configuration

If not on a Windows-Machine, you can reenable the Tests in the mimosa-config.coffee, simply comment them out or remove them entirely.

  testemRequire:
    executeDuringBuild: false
    executeDuringWatch: false

Optimize

  1. mimosa watch -oms
  2. localhost:3000

-oms is shorthand for --optimize --minify --server. This runs all the minifiers, runs the r.js optimization, and then starts a server. The JavaScript for the app will be both minified and concatenated.

Packaging for Deployment

  1. mimosa build -omp
  2. cd dist
  3. node app.js
  4. localhost:3000

-omp is shorthand for --optimize --minify --package. This command will run optimization, run all the minifiers and then package the result for deployment. The packaged result doesn't need Mimosa to run.

Misc

Need help? You can find me at

https://gitter.im/dbashford/mimosa

Credits

& many more! Without any of these I would not have enough motivation to get into the next generation web development and learn these amazing packages.