-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Adding typescript support to generator-angular #1098
Conversation
Uses grunt-tsd to retrieve an initial set of typescript definitions. Adds templates for typescript versions of angular items. Based upon commit 'refs/pull/539/head' of github.com:yeoman/generator-angular
Very important thing is missing in Gruntfile.js generated with
|
I'm not seeing this problem - if I run Can you make sure you've applied this pull request correctly? |
Sorry, looks to be a temporary glitch on my side. I've made the clean installation from scratch again (updating the npm, cleaning all the caches and all the stuff) and everything is fine now. Thanks for great job done! |
👍 Is this happening soon ? |
There hasn't been any real interest from the comitters for generator-angular - in the meantime I've created https://www.npmjs.com/package/generator-angular-typescript which is essentially this pull request 'made real'. |
I've been feeling lately, more and more, that the correct thing is to strip out typescript/coffeescript/precompilers in general, make this fully composable and then either create (or let others do it) generators that add thos to this. Still not sure how that is going to work though |
I'd be more than happy to take on the Typescript implementation part - once the composable part of the generator is worked out. I agree with you though that working out that composable mechanism is going to be tough. |
Hello, When using the option --typescript, my project does not add support typescript, works only for coffeescript.
Also, even creating a project "default" and create controller with option --typescript, does not working.
I will appreciate your help My npm packages and versions:
Version Node and NPM
|
Have the same issue as ilubnon, can generate only coffee files but not ts. Node & NPM versions $ node -v && npm -v v4.2.1 2.14.7 |
My commit was never merged - unless you're building from my branch those options don't work. Alternatively you can install my fork of this repo https://www.npmjs.com/package/generator-angular-typescript and then you can do |
Thanks for the info. After lot of perturbations i installed finally your version, seems that working, creating app skeleton horribly long, but i suppose i have something wrong with versions of npm & git. Appreciate your work, i hope that TS support will appear soon in official version. Cheers! |
Thanks @awk I'm using |
Hey @awk I can't add issues on your repo. It's always creating the app on my root user folder! Not the current one! How can I add an issue on your repo? Thanks! |
@marcalj do you have a .yo-rc.json in your root user folder? Are you running the yo command as sudo? |
|
@eddiemonge Removing |
This is largely based upon an earlier pull request (#539).
It's updated for recent changes in generator-angular since that pull request was last updated. This flavor also uses tad and grunt-tsd to retrieve typescript definition files from the defintelyTyped repo instead of retrieving the definitions via bower_components.