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

support es6 in external js files #13

Open
rosshadden opened this issue Jan 26, 2015 · 3 comments
Open

support es6 in external js files #13

rosshadden opened this issue Jan 26, 2015 · 3 comments

Comments

@rosshadden
Copy link
Member

This will be easy now that we moved to 6to5.

We'll just transpile things in private/js/ to public/js/.

It should be togglable in the config.

@optikalefx
Copy link
Member

it should say compiler: {}. someone might want...... COFFEESCRIPT.

@rosshadden
Copy link
Member Author

Yeah..... guess we have to handle those kinds of people. And typescript, etc. Obviously(?) these would be cs-* modules. Even 6to5 could/should be it's own module I suppose.

@optikalefx
Copy link
Member

Maybe, we should just look at what we have to do to compile the private folder. I suppose they would be cs-* modules. it should compile into the same dir structure in public for easy debugging. And then a later grunt file could expect and concat / minify that code. Even if it's coffeescript it should do the same thing. So maybe all we have to do is pass a compile function and handle the rest? If that's the case, then we don't need a cs-* we just need to know what the compile function is and use it.

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

No branches or pull requests

2 participants