You'll want to add a server.js
file and boot Locomotive with CoffeeScript support, like so:
locomotive = require('locomotive')
locomotive.boot('.', 'development', {"coffeeScript": true}, (err, server) ->
throw err if (err)
server.listen(3000, 'localhost', ()->
addr = this.address()
console.log('listening on %s:%d', addr.address, addr.port);
)
)
To start the app:
$ node server
There's more info in this pull request:
https://github.com/jaredhanson/locomotive/pull/44
Support for a --coffee option to the lcm
command line will be added to an upcoming release.