A 'hello world' app written in 100% CoffeeScript.
Install from npm package registry https://www.npmjs.org/package/undiluted
$ npm install -g undiluted
$ undiluted
hello
This happens:
/usr/bin/undiluted: line 1: //: Is a directory
/usr/bin/undiluted: line 2: syntax error near unexpected token `('
/usr/bin/undiluted: line 2: `(function() {'
The problem is, the coffee-script compile doesn't (and can't be made to) prepend a shebang line to the Javascript. This is https://github.com/jashkenas/coffee-script/issues/2215
$ npm publish
(This calls coffee --compile --output bin src
)
Either:
- Edit this repo so that
npm install -g
correctly installs a working app. It must work both on Linux and Windows. - Fix the Coffeescript issue https://github.com/jashkenas/coffee-script/issues/2215 so the compiler can be made to prepend shebangs.