paiq / blackcoffee

CoffeeScript + hygienic macros
MIT License
105 stars 9 forks source link

incompatible CLI #9

Closed ngn closed 10 years ago

ngn commented 10 years ago

When the original coffee is given a file argument, the file gets executed. When BlackCoffee's "coffee" command is given a file argument, the compiled source is printed to stdout, as if -c -p options are passed.

vanviegen commented 10 years ago

Weird, "it works for me"!

test.coffee:

console.log 1 + macro -> macro.valToNode 3+4

in the console:

bin/coffee test.coffee

output:

8

Is this not working for you?

ngn commented 10 years ago

It fails when I do this from another directory:

npm install git+https://github.com/paiq/blackcoffee
node_modules/.bin/coffee test.coffee
vanviegen commented 10 years ago

Thanks, fixed!