nodejitsu/haibu — Issue #93: Cake start scripts
Author: CodeRarity
Created: 2012-01-22 01:42:32+00:00
State: open

So we just got CoffeeScript support, right? Well, CoffeeScript has this thing called cake, which is kind of like make, but the Cakefiles are written in CoffeeScript. It would be cool if we could run Cakefiles as the start script, like `cake run`, which could start up the server for you, potentially after parsing your files and removing some debug code or just compiling some scripts to Javascript. (You could probably do this now by having a start script like `coffee compile.coffee` and have that code do all of that for you, but why do that when there is cake? =D)

The problem right now with a start script like `coffee server.coffee` is that you can't really require other CoffeeScript files from `server.coffee` (because the require function only accepts JavaScript files, not CoffeeScript files), so you're going to have to build the code before you upload it anyways. It would be nice to be able to skip that step and do it on the server. (After all, there's zero downtime deployment now, right?)