spine / spine.app

Spine App generator
109 stars 26 forks source link

coffee files are not automatically compiled #3

Closed jpic closed 13 years ago

jpic commented 13 years ago

My source code: https://github.com/jpic/node/

Exception thrown by browser: module "app" not found.

This exception is not thrown when i compile the coffee files by myself.

Spine version is 0.0.4 installed from npm, like stated on http://maccman.github.com/spine.tutorials/node.html

Thanks cachemoney from #node.js@freenode for figuring it out

Spine looks great, cheers

cryptix commented 13 years ago

Stitch fails silently if coffee-script couldn't be loaded and thus won't compile the app module.(https://github.com/sstephenson/stitch/blob/master/src/stitch.coffee#L17-18)

Make sure you have coffee-script installed. (ie. npm install coffee-script)

jpic commented 13 years ago

Thanks for answering, it seems like it's working even though it's not generating js files now ... Shouldn' it ?

cryptix commented 13 years ago

Yeah, i had the same module "app" not found. error in my browser but obviously express started fine and /application.js was also available so i figured it must have something to do with stitch. And like i said stitch won't be able to compile your .coffee files if it can't require('coffee-script').. could be more informative about that but it's a problem with stitch not spine.