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

[CS2] [Docs] Examples of module loading with external tools #4470

Closed
mrmowgli opened this issue Mar 17, 2017 · 3 comments
Closed

[CS2] [Docs] Examples of module loading with external tools #4470

mrmowgli opened this issue Mar 17, 2017 · 3 comments
Milestone

Comments

@mrmowgli
Copy link
Contributor

Currently the V2 docs mentions the need for an external transpiler, however since this will be an issue for novices, perhaps we could put a quick example in? Or add a default cake task?

@GeoffreyBooth
Copy link
Collaborator

Yes, we should add an example. I remember suggesting somewhere that the docs should have the most minimal version in the docs, like coffee file.coffee | babel or whatever the bash one-liner is, with links to GitHub repos showing examples with Gulp and Webpack and so on.

Adding a cake task for this would mean adding Babel as a dependency, which might ignite a firestorm . . .

@GeoffreyBooth GeoffreyBooth added this to the 2.0.0 milestone Mar 17, 2017
@danielbayley
Copy link
Contributor

danielbayley commented Mar 23, 2017

Maybe a recommended list of babel plugins to go after CoffeeScript 2 in the build pipeline, or even some kind of babel-preset-coffeescript would be useful?

I think coffeescript > babel-preset-env currently seems to be the best chain, so something like…

npm install --save-dev coffeescript@next babel-cli babel-preset-env
coffee -p *.coffee | babel --presets env

@GeoffreyBooth
Copy link
Collaborator

Closed by #4469

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

No branches or pull requests

3 participants