diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 02fe4881..b14b371e 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -569,6 +569,7 @@ CoffeeScript: extensions: - .coffee - ._coffee + - .cake - .cjsx - .cson - .iced diff --git a/samples/CoffeeScript/build.cake b/samples/CoffeeScript/build.cake new file mode 100644 index 00000000..b3f7df91 --- /dev/null +++ b/samples/CoffeeScript/build.cake @@ -0,0 +1,17 @@ +fs = require 'fs' + +{print} = require 'sys' +{spawn} = require 'child_process' + +build = (callback) -> + coffee = spawn 'coffee', ['-c', '-o', '.', '.'] + coffee.stderr.on 'data', (data) -> + process.stderr.write data.toString() + coffee.stdout.on 'data', (data) -> + print data.toString() + coffee.on 'exit', (code) -> + callback?() if code is 0 + +task 'build', 'Build from source', -> + build() + \ No newline at end of file