-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Adding typescript support to generator-angular #539
Conversation
How is this different from #313? |
@eddiemonge This is essentially a replacement for #313 which is now out of date as it was made 5 months ago. I also tried to keep the change smaller (22 changed files with 396 additions and 10 deletions vs 30 changed files with 604 additions and 83 deletions for #313), and typescriptify the ts files a bit more. |
var config = { | ||
file: path.join( | ||
this.env.options.appPath, | ||
'scripts/app.' + (coffee ? 'coffee' : 'js') | ||
'scripts/app.' + (coffee ? 'coffee' : typescript ? 'ts': 'js') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure the splicable section doesn't also need a condition for typescript? Maybe (coffee || typescript)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, because typescript is a superset of javascript, so it has the same syntax as javascript. CoffeeScript has different language syntax.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. Just making sure.
Aren't you also supposed to copy over the templates/javascript-min folder to templates/typescript-min? |
Is |
@@ -0,0 +1,19 @@ | |||
/// <reference path="../bower_components/definitivelyTyped/angularjs/angular.d.ts" /> | |||
<% if (ngRoute) { %>/// <reference path="../bower_components/definitivelyTyped/angularjs/angular-route.d.ts" /><% } %> | |||
/// <reference path="../bower_components/definitivelyTyped/angularjs/angular-resource.d.ts" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These module references should be conditional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was a bunch of extra steps to get the other references to be conditional, though it would probably be a good idea.
@jedmao Thanks for all of your code review. I'm making your suggested changes as I type except where I commented. As for the other comments:
|
"angular-scenario": "1.2.6" | ||
"angular-scenario": "1.2.6"<% if (typescript) { %>, | ||
"dt-jasmine": "~2.0.0", | ||
"dt-angular": "https://github.com/jedmao/dt-angular/archive/v1.2.0.tar.gz"<% } %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we switch the placement of these two so they are listed alphabetically? I find it's sometimes hard to find what I'm looking for in these manifest files when they aren't alphabetical.
I think this is ready for some code review. Let @eggers know if we need a squash. |
can u please commnet how to install that branch. I tried something like, npm install -g git://github.com/eggers/generator-angular/tree/ngdocs which didn't work. thanks again. I saw options like, build only changed filed, etc :-) On Mon, Mar 3, 2014 at 7:28 PM, eggers notifications@github.com wrote:
|
looks like this worked.. npm install -g git://github.com/eggers/generator-angular#ngdocs |
@eggers can you please check the incremental compilation works. I just cloned the project, and modified two files (just whitespace). I see it compiles previous changes too. I tried to debug this, as it works for me with jade compilation. Only difference I could see is
vs
but, changing that too didn't work
|
Haven't forget about this but need to do some more testing and other things first |
Whats the current status on this, looking to start a new project leveraging play+typescript+angular |
please give an update on TypeScript integration progress. Thx. |
Still reviewing this PR? |
its on hold at the moment while the generator is being updated |
Is it going to be merged any time soon? @eggers doesn't seem like you have rebased in a while, is this still alive? thanks! |
its on hold from me, not the author of this pr. |
I will rework once the generator has been updated based upon my findings |
refactor(app:templates:server): deprecate sendfile -- use sendFile instead
Any news regarding this pull request? |
+1 |
not yet |
👍 Any updates? |
I think its best to create a generator-angular-typescript and be done with it. No one from this project really care, unfortunately. |
+1 |
+1 for this. |
+1 for this! |
This pull request seems to have gone stale in the past 6-8 months. I just created #1098 which is based on this one but with updates for the latest version of generator-angular and also to use tsd/definitelyTyped to pull the .d.ts files |
+1 |
+1 |
why are you |
There have been a few other projects that have tried to support typescript with the angular generator (e.g. anchann and JakubMrozek), but are currently out of date. It would be great if we could get this merged in so that we can try keeping it current.