-
Notifications
You must be signed in to change notification settings - Fork 49
Support coffeescript 2 #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 I would also love to see that - I want @toovy - btw, you can drop the backticks even now - with |
can we test it in another branch? |
1.12.6 released |
@kimroen - can you help on this one? We all would like to use CoffeeScript 2! |
Guys, do you have any updates? |
Is this project still alive? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
Coffeescript 2 is getting real: http://coffeescript.org/v2/ (coffeescript6/discuss#80).
It supports many ES2015 features. The reason why I would love to see it in ember is the async/await and generator support. The most important reason though is that the nasty import/export hacks using backticks to write plain JS is not needed any more:
I've made a quick test and it is simple to get it running by altering only a few lines of ember-cli-coffeescript and broccoli-coffee:
But I think this needs more discussion on a meta level, as Coffeescript 1 runs in every browser, but Coffeescript 2 needs transpilation. Thankfully Ember includes Babel, so that is also pretty easy to accomplish:
That's the reason why I did not just create pull requests. Maybe new repos should be created, called ember-cli-coffeescript-2 and babel-coffee-2? That would ensure that there is a clear distinction between old Coffeescript (1) and ES2015 Coffeescript (2).
Looking forward to hear your opinions.
BR, toovy
The text was updated successfully, but these errors were encountered: