Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal app #18

Closed
unindented opened this issue Nov 23, 2011 · 4 comments
Closed

Minimal app #18

unindented opened this issue Nov 23, 2011 · 4 comments

Comments

@unindented
Copy link

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.<anonymous> (/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.<anonymous> (module.js:423:10)

Any clues on what I'm doing wrong?

@maccman
Copy link
Member

maccman commented Nov 23, 2011

Yup, looks like your JSON in slug.json isn't valid.

@maccman maccman closed this as completed Nov 23, 2011
@29decibel
Copy link

you must use "some_js_lib.js" instead of 'some_js_lib.js' on libs part, don't know why.....

@maccman
Copy link
Member

maccman commented Dec 20, 2011

@29decibel That's the JSON format.

@29decibel
Copy link

thanks @maccman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants