-
Notifications
You must be signed in to change notification settings - Fork 157
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
Start work on the babel pipeline #862
Conversation
cool |
I think need to create drop-in replacement of ls-ast in favor to babylon-ast.
instead
Must be more faster, flexible and robust. |
no, that'd leave the burden of transformating Ls constructs to the lexer/grammar, which is a bad idea. It's probably better to have a "toBabelNode" or something on the AST directly (exactly in the same way we recursively compile nodes to js fragments) |
babel sucks - enuf said. |
@JoyKrishnaMondal That's both inconstructive and uninteresting. Let's avoid this kind of comments. |
Fine, Babel 6 requires a .babelrc file ( dafaq ? you guys are just a compiler - stop trying to make a platform happen - its not going to happen ) Babel documentation is a lot less helpful then the community is ready to admit - half the stuff is not updated to reflect recent changes. ES6 exists on a much lower level in terms of programming language compared to livescript - why it gets more attention is beyond my comprehension. Babel is more concerned about marketing then improving docs or the code itself. The babel community is much more dismissive then any other OSS community I have seen out there - I personally just follow their issues rather than use babel myself. these are just some of the problems I have with babel. I just do not want babel to dominate and replace typescript,live-script,coffeescript . . . just because they have a better marketing team. |
@JoyKrishnaMondal This better be discussed in #821. Please read my first post where I explain why I think we should do this. |
I like @vendethiel's idea that we just add a |
|
Any progress? |
really looking forward to see this moving ahead |
it's a lot of work to sync those, but benefits are not clear. intellisense? |
Closing in favor of livescript-next |
As discussed in #821, these are the minimal changes required to start working on the babel pipeline.
To test it out:
For now, it can only compile this code:
Here is how the pipeline will probably work:
simplifyLsNode
makes LS AST easier to read withconsole.log()
. This doesn't affect the rest of the pipeline, and only makes debugging easier.lsASTToBabelAST
. This will turn a simplified LS AST to a babel-compatible AST, similar to whatbabylon.parse
returns.var parse = require("babylon").parse
tovar parse = require('livescript').babelPipeline.parse
.