Skip to content
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

Multicompile - per fragment compilation of file in different scripting languages #50

Closed
wants to merge 8 commits into from

Conversation

kristianmandrup
Copy link

options.multiCompile to enable multi-compiling. Currently on (true) by default.
Change default settings in cli.coffee under # default values.
Enjoy ;)

@ghempton
Copy link
Owner

I think that multi-compile support is beyond the scope of EmberScript. Would this caused not be better served by it's own package?

Also, can you elaborate on how this solves #42 and #44 ?

@kristianmandrup
Copy link
Author

Yes, this is why I forked it. I could even call the project sth else? But it was the best way I could find that solved those issues. It basically lets you treat a block of code not as emberscript but something else of your choosing and each block will be compiled in its own scope and the compiled results concatenated, which lets the compiled emberscript come after whatever first block you have (which might import certain modules via ES6 module syntax).

@ghempton
Copy link
Owner

The concept seems cool and would be a great independent project multijs or something :).

@kristianmandrup
Copy link
Author

Yeah, sounds like a good idea. I will go for the multijs project then and create a new ember-cli-multi-script package (.multi). You can use whatever of the infrastructure I created to provide as hooks for anyone going down a similar path (such as the @depend ideas).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants