A somewhat barebones template for apps without back-ends. Inspired by the NPR Apps app template.
sass
- .scss files go herewww
- The compiled app and associated filesdata
- Raw data used in the app, i.e. CSVsscripts
- Miscellaneous scripts used for data processing, etc.
For asset management, templating, building, and testing, we use Node.js and Grunt
First, you need Grunt command line tool:
$ npm install -g grunt-cli
Then, install the dev depencies:
$ npm install
$ sass --watch sass/:www/css/
Check JS files for errors
$ grunt jshint:all
Compile SASS into CSS
$ grunt compass
Build assets for deployment
$ grunt build
Deploy app
$ grunt deploy