You must have npm (node package manager) installed, and hem:
1. Install [npm.js](http://npmjs.org). 2. Install hem with npm: npm install -g hem
Dependencies are managed with a combination of npm and hem. Use npm to explicitly install all of your projects external dependencies. Use hem to specify which dependencies (both external and local) that should be stitched together for you client side operations.
This skeleton project has one dependency: underscore.
To 'start up' the dependencies tell npm to download all your dependencies:
Use npm to search for a specific dependency and then modify the package.json file to ensure that the dependency is tracked in the future. Then specify the dependency for your application in slug.json.
For example, suppose you wanted to add the coffee-script dependency. Just use npm to install the dependency and save it to your package.json file:
1. npm --save install coffee-script 2. Manually edit the slug.json file. Add "coffee-script" to "dependencies".
Suppose I wanted to include your own module 'bloomfilters', and it wasn't in the npm registry. You can add it to your project in the following way:
1. npm --save install https://github.com/dsummersl/bloomfilters/tarball/master 2. Manually edit the slug.json file. Add "bloomfilters" to "dependencies".
Hem will stitch together your CSS to, if you want. See the hem docs.
Once you have your dependencies listed, you can use hem to stitch them all together.
# make sure all dependencies are present: npm install . # make public/application.js hem build
Hem was meant for the spinejs project - but you don't have to use it for that. Ignore any docs mentioning spine as you wish...