maccman/spine.app — Issue #18: Minimal app
Author: unindented
Created: 2011-11-23 13:31:44+00:00
State: open

I am trying to setup an app with the minimal amount of dependencies (the default template ends up generating an `application.js` that weighs some *122KB*, which kind of defeats the lightweight philosophy of Spine).

I've modified `package.json` to only include the following:

{
"name": "app",
"version": "0.0.1",
"dependencies": {
"serveup": "~0.0.2",
"hem": "~0.1.6",
"spine": "~1.0.5",
"jqueryify": "~0.0.1"
}
}

And `slug.json`:

{
"dependencies": [
"jqueryify",
"spine",
],
"libs": []
}

The file `app/lib/setup.coffee` is left with just:

require('jqueryify')
require('spine')

But now, when I run `hem build` I get the following error:

node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
SyntaxError: Unexpected token ]
at Object.parse (native)
at Hem.readSlug (/home/daniel/usr/local/lib/node_modules/hem/lib/hem.js:131:19)
at new Hem (/home/daniel/usr/local/lib/node_modules/hem/lib/hem.js:57:19)
at Function.exec (/home/daniel/usr/local/lib/node_modules/hem/lib/hem.js:20:15)
at Object. (/home/daniel/usr/local/lib/node_modules/hem/bin/hem:10:23)
at Module._compile (module.js:404:26)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array. (module.js:423:10)

Any clues on what I'm doing wrong?