Gruntfile which manages source files from local development, intermediate compilation, and distribution builds.
Fill out package.json
with metadata. Install development dependencies:
npm install
grunt local
- Populates thelocal/
directory with compiled CoffeeScript and SCSS files and copies over other non-compiled source filesgrunt work
- Runs thelocal
tasks and ends with a watcher that compiles tolocal/
on the flygrunt dist
- Populates thedist/
directory for a distribution buildgrunt test
- Runs the Jasmine specs inspec/
against a fresh local buildgrunt release
- Creates a zip and gzip tarball of the distribution files in a directory named after the packagegrunt serve:forever
- Launches a node server on port 8125 by default. Useful for viewing Jasmine tests in the browser
package.json
Gruntfile.coffee
# location of Jasmine spec files
spec/
...
# source files for all types
src/
coffee/
js/
scss/
css/
img/
fonts/
templates/
# created by Grunt for local development
local/
...
# intermediate build directory for CoffeeScript files,
# before minification using r.js
build/
...
# final resting place of built files in their respective
# directories
dist/
...