Demo code for D3 presentation delivered at Fronteers meetup.
In project root do:
npm install
grunt build
grunt
This will run a server on port 8080, automatically compile jade/sass to html/css and watch any changes to jade/sass/js to livereload the server.
Need to have nodejs, npm and grunt-cli installed.
// Compile all jade/sass to html/css, optimizes js files
grunt build
// Spin up server
grunt
Add new packages do
npm install <module> --save-dev
- grunt getting started
- grunt plugins
- grunt-contrib-connect usage
- grunt-jade usage
- jade syntax
- jade syntax
- grunt-regarde usage We use grunt-regarde instead of grunt-contrib-watch because we want it to be used together with livereload
- grunt-contrib-livereload usage
- grunt-contrib-compass usage
- sass syntax