Translated from Grunt to Mimosa
- This is an attempt to play with the features of AngularJS and leverage the goodness of RequireJS
- Uses controllers, services, directives, filters, and partials
- Takes advantage of Mimosa's minimal configuration (grunt config vs mimosa config) and built in RequireJS functionality.
Note: The twitter search portion of the demo app no longer functions after Twitter changed their API.
- node.js (at least v0.8.1)
- Mimosa
npm install -g mimosa
$ git clone https://github.com/dbashford/AngularFunMimosa.git
$ cd AngularFunMimosa
$ npm install
Run Mimosa's watcher with the server turned on.
$ mimosa watch --server
or
$ mimosa watch -s
This will 1) watch your directory structure and compile things on the fly and 2) run a server at port 3000 so you can view your application 3) serve the assets gzipped and 4) reload the application whenever something successfully compiles (live reload). This will do it without optimizations and this with optimizations:
$ mimosa watch --server --optimize --minify
or
$ mimosa watch -som
Use the build
command and the optimize, minify, and package flags and Mimosa will build all of the assets, optimize them into a single file, and then package the application for use outside of Mimosa. Go inside the created dist
directory and execute node app.js
and the app works the same.
$ mimosa build -omp