- Install Node.js & NPM
- Install Grunt.js
- Run
npm install
to fetch all dependencies from npm. - Run
bower install
to fetch all dependencies from bower. - Run
npm start
to build a production version of the app.
- Run
grunt dev
- Open http://localhost:9000/
- Run
npm start
- Open http://localhost:9002/
Build step | Description | Development | Production |
---|---|---|---|
Watch | Auto-build on file changes | ✅ | 🚫 |
JSHint | Coding style compliance | ✅ | ✅ |
Stylus | Compile CSS | ✅ | ✅ |
Handlebars | Compile templates | 🚫 | ✅ |
HTML Minifier | Reduce HTML size | 🚫 | ✅ |
RequireJS | Concatenate and minify Javascript | 🚫 | ✅ |
JPEGtran & OptiPNG | Compress images | 🚫 | ✅ |
Revving & Usemin | Cache busting for static assets | 🚫 | ✅ |