-
Notifications
You must be signed in to change notification settings - Fork 0
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
Replace grunt-babel with a more TypeScript friendly solution #4
Comments
Resolved in d1b5e20 I ended up going with a different solution to the one I originally described. The Work is also underway to implement a watch task so that files in the |
OK, juggling multiple Grunt watch tasks to get the TypeScript + Babel build working is too flaky, TypeScript Language Services it is, a single Grunt task will watch multiple projects and rebuild them as needed (including applying Babel transforms). |
TypeScript + Babel compilation is now handled by ibsforts, watching/incremental rebuilding kinda sorta works, but I need add some sort of dependency resolution to ensure projects are built/rebuilt in the correct order. |
I can't be bothered maintaining |
Only thing left to do here is to replace the |
grunt-babel
doesn't pass in source maps to Babel, so the source maps generated by TypeScript will not match the .js source output by Babel. Babel itself accepts source maps as input, so presumably it knows how to transform them along with the .js source files. Another problem withgrunt-babel
is that TypeScript writes out .js files, and then Babel overwrites them, it'd be better if the .js files were only written out to disk once. I haven't found an existing Grunt task that handles this sort of TypeScript->Babel workflow, so it looks like I'll have to write it myself.grunt-babel is a good reference on how to use the Babel API, as for TypeScript, the following references will be useful:
The text was updated successfully, but these errors were encountered: