sintaxi / harp

Static Web Server/Generator/Bundler
http://harpjs.com
5k stars 343 forks source link

Harp compiles Coffee files with "--bare" flag ? #281

Closed kicksnarehat closed 4 years ago

kicksnarehat commented 10 years ago

I just noticed that it looks like .coffee files are being compiled without the usual lexical-scoping:

http://coffeescript.org/#lexical-scope

So it looks like Harp is using the "--bare" flag. Have I done something strange with my environment or is this intentional? If the latter, can I turn this off and use the default CoffeeScript compilation?

Thanks!

kennethormandy commented 10 years ago

I can’t find the issue right now, it’s either here or in sintaxi/terraform but I know this was done intentionally. If you find the issue, feel free to comment there, and if not I will try to dig it up again later.

kicksnarehat commented 10 years ago

Found it:

https://github.com/sintaxi/terraform/commit/5c5eaa2e0fffe8824f9269af454c8e5b7e8b17c3

Thanks!

andrewboni commented 8 years ago

Is there a way we can specify our CoffeeScript compile options?

kennethormandy commented 8 years ago

@andrewboni Not right now, no. We strive for convention over configuration, and our understanding was that this was the preferred default for CoffeeScript. We’re always open to feedback on that kind of stuff though