- Install Node.js & NPM
- Install Grunt.js
- Run
npm installto fetch all dependencies. - Run
npm startto 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 | 🚫 | ✅ |