hem build does nothing

41 views
Skip to first unread message

phe...@gmail.com

unread,
Aug 1, 2014, 8:25:52 PM8/1/14
to spi...@googlegroups.com
I've followed this tutorial


And, well, there is no application.js file.

Although missing in the documentation, it seems I should run

    hem build

to the *.coffee files be compiled to application.js, but if I run, all I get is a message
"Build application"

And nothing happens...

Any idea?

Running under Mac OS X

Axel Nitzschner

unread,
Dec 22, 2014, 8:15:19 AM12/22/14
to spi...@googlegroups.com
my build also failed silently until I checked my slug.json
I then tried to build a test app to see whether hem fails building the application here as well, but there it worked perfectly.
so I took this generated slug.json and adapted it to my needs.
here is the slug.json generated by spine.app:
{
  "server": {
    "port"  : 9294
  },

  "routes": [
    { ""        : "./public" },
    { "/test"    : "./test/public" }
  ],

  "packages": {
    "appName": {
      "libs"    : [
        "lib/jade_runtime.js",
        "lib/jquery.js"
      ],
      "modules" : [
        "spine",
        "spine/lib/local",
        "spine/lib/route",
        "spine/lib/manager"
      ],
      "paths"  : ["./app"],
      "target" : "./public/application.js",
      "jsAfter": "jade.rethrow = function rethrow(err, filename, lineno){ throw err; } "
    },
    "css": {
      "paths"  : "./css",
      "target" : "./public/application.css"
    },
    "test": {
      "identifier" : "specs",
      "jsAfter"    : "require('lib/setup'); for (var key in specs.modules) specs(key);",
      "paths"      : ["./test/specs"],
      "target"     : "./test/public/specs.js"
    }
  }
}
hope this helps
Axel
Reply all
Reply to author
Forward
0 new messages