-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Adding TypeScript support #1123
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
Comments
It would be implemented in the same way that the other transpilation works: source files are transpiled to the |
Hi, I'm trying to get it to work... without success. Idea: Convert all .ts files to es6 and then let babel do the rest. This way, one can get the benefit of both. |
@khwerhahn take a look at this PR: #1508 |
@khwerhahn why not write Typescript then specify the That way.. you can write Javascript in ES3, ES5 or ES6 if you wish Writing Typescript then setting I feel writing Typescript, compiling it into ES6, then using Babel to convert it back down to ES5 to have too many steps when you can just do it in one. |
Babbel is apparently a bit ahead feature wise. But you're right, we should only use TS. TS will get developed even faster with growing interest and support. |
Has been added to 3.3.0-beta.0 |
It would be nice to see TypeScript included, adding the next step after adding babel.
How should this be implemented into this project?
I would suggest a grunt task (grunt-typescript) that looks for any .ts files and creates a .js in the same directory. This must happen before any other grunt tasks.
The text was updated successfully, but these errors were encountered: