You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
After everything @ ng-conf 2016, I now have a plan on transitioning the generator to Angular 2.
Requires:
Modules (webpack)
upgrade adapter
New router documentation
Reacted by Konstantin, Adam Wamai Egesa, bogini, Young Zhao, Matt Heise, Toni Benitez, Enrico Del Fante, Santosh Joseph, vanheerdena, Ron Almog and 14 more
Care to share the general outline of your plan? Is it simply first getting Webpack / Browserify / SystemJS in place and then a big bang approach with creating an alternative implementation using Angular 2? And envisioning keeping Angular 1 or Angular 1 and 2 hybrid?
Other than various blog posts and Angular 2 docs, inspirational projects one might wanna glance at:
I'll be initially removing Bower and opting for Webpack (I would eventually like to support SystemJS as well). I wanted to do this a while ago, but it's a large overhaul. Then I'll set up the upgrade adapter and move components over piece-by-piece. This will make the transition easier, as well as allow for generator users to see exactly how it would be done in one of his/her own apps. Then eventually a full cut-over. I spoke with Igor about Flow support with Angular 2, but there were some reasons I won't get into as to why that got pushed off. At the conference, Brad pretty much said that Angular 2 is production ready for most people, so that was another big deciding factor.
Reacted by Adam Wamai Egesa, Blair MacNeil and Dário
Not trying to stir the pot here, but why wouldn't now be a good time to commit to a single task runner? There are a lot of shops that just use npm now for task running, so providing Gulp is kind of a nice bonus, and Grunt seems like excessive work to keep it up to date. At the time this project was started there was only Grunt, but now it seems like we're past that and can move on.
btw: I still use grunt often, but for the sake of alleviating pressure on the maintainers, and being a lean && mean scaffolding project, one task runner should be good enough. no?
@Awk34 here's a possible idea, perhaps communicating clearly well in advance where everyone can see it that grunt deprecation is coming then you could measure to see if users are in fact beginning the migration process.
could you console a message in the generator or a warning when selecting Grunt/Gulp that support 'may' be discontinued at a specific version or date?
people with already existing grunt projects won't be affected, however using an tiny bit of FUD may be effective at migrating new projects to one task runner. just an idea.
FUD <- for lack of a better term. Apologies, I don't mean to suggest scaring people out of grunt, but a clear warning with time to prepare would be fair warning to everyone.
Edit: Migrating to ng2 is a significant undertaking. Bower is being tossed and no one has objected thus far. I think users appreciate things are going to change, and streamlining the project to make that happen sooner rather than later would be the priority IMHO.
I just rolled an angular-cli based project last night, and I think it's still too early to use, however I think we all can agree that pre-positioning this generator to be 'ng2-ready' would be kind of a nice thing.
@liu0fanyi hybrids are a poor (IMO) solution and really only meant for migrations, If you are starting a new project, consider the Angular2 seed instead for now. I hear there are some generators as well, though i have not tried them.
@liu0fanyi@csvan
Well, I'll agree that you only really ever want to do hybrids if you have to. Meaning if you have an Angular 1 app that's too big to just rewrite in one go, or if you have some angular 1 specific things that are somehow not worth the effort to port yourself. One example could be using Angular Material 1 components. For some people it could also be the login mechanism in this generator.
Whether to use another starter or generator depends mostly on what you need/want. Most other starters are purely client or server setups without some of the features this generator has, such as integrated login.
Would imagine a future version of the generator being a combination of https://github.com/angular/universal-starter and the aforementioned other starters with a bit of its own magic. Like gulp, browser-sync and the existing back-end. Hope to contribute towards that end next starting next month or start of next year.
@Awk34 If you'd like help with the Universal aspect or have any questions about it let me know, I can help get things setup in those areas if needed!
One thing though, Universal is being moved to Angular Core slated for 4.x, so some APIs could change a tiny bit. (Things like angular2-universal will be in @angular/platform-server instead). But for the most part the universal-starter is a very minimalist version to build off from. There are some things that could be improved upon there of course!
@aabm00 I've converted the bulk of the main application code in canary to Angular 2.x.x, but there is still plenty to do. Most of the test files haven't been touched. Also some of the configuration options have not been tested by anyone.
I have been quite busy at work (new startup job), and probably won't have much time to develop on this project in the next couple weeks. I'll still be able to respond to issues & approve pull requests, though.
@aabm00 <https://github.com/aabm00> I've converted the bulk of the main
application code in *canary* to Angular 2.x.x, but there is still plenty
to do. Most of the test files haven't been touched. Also some of the
configuration options have not been tested by anyone.
I have been quite busy at work (new startup job), and probably won't have
much time to develop on this project in the next couple weeks. I'll still
be able to respond to issues & approve pull requests, though.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1869 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB8lSZoubH_C2XXXyUcOM6NubIC7Kidbks5rRRKcgaJpZM4IZV93>
.
@Awk34 I suppose you are still very busy at your new job, but do you have any idea or schedule of when a version with angular 2 or 4 will be available?
@Awk34 A little update would be awesome, since i'm about to start a new project with the generator-angular-fullstack and currently i am wondering whether it is worth waiting a little longer for the Angular 2/4 adaptation?
I have still been quite busy with work, but I've been trying to get to working on the 5.0.0 version when I can. I've been working on it today, getting different configurations more stable. There's still plenty of work to be done, though. I had originally been working with ui-router w/ Angular 2, but it seems like it's still in beta, which is a bit concerning. So the project needs to be updated to Angular 4.x.x (which shouldn't be difficult), many of the tests need to be converted/fixed, and the project needs to support the official Angular router.
Activity
Koslun commentedon May 11, 2016
Care to share the general outline of your plan? Is it simply first getting Webpack / Browserify / SystemJS in place and then a big bang approach with creating an alternative implementation using Angular 2? And envisioning keeping Angular 1 or Angular 1 and 2 hybrid?
Other than various blog posts and Angular 2 docs, inspirational projects one might wanna glance at:
Awk34 commentedon May 14, 2016
I'll be initially removing Bower and opting for Webpack (I would eventually like to support SystemJS as well). I wanted to do this a while ago, but it's a large overhaul. Then I'll set up the upgrade adapter and move components over piece-by-piece. This will make the transition easier, as well as allow for generator users to see exactly how it would be done in one of his/her own apps. Then eventually a full cut-over. I spoke with Igor about Flow support with Angular 2, but there were some reasons I won't get into as to why that got pushed off. At the conference, Brad pretty much said that Angular 2 is production ready for most people, so that was another big deciding factor.
macneib commentedon May 19, 2016
Not trying to stir the pot here, but why wouldn't now be a good time to commit to a single task runner? There are a lot of shops that just use npm now for task running, so providing Gulp is kind of a nice bonus, and Grunt seems like excessive work to keep it up to date. At the time this project was started there was only Grunt, but now it seems like we're past that and can move on.
btw: I still use grunt often, but for the sake of alleviating pressure on the maintainers, and being a lean && mean scaffolding project, one task runner should be good enough. no?
Thoughts?
Awk34 commentedon May 20, 2016
@macneib oh, you don't know how much I'd like to ditch Grunt, but look at this chart:
Now probably would be a good time to commit to Gulp, but I wonder how the users of the generator would react.
Awk34 commentedon May 20, 2016
FYI #1911
macneib commentedon May 20, 2016
@Awk34 here's a possible idea, perhaps communicating clearly well in advance where everyone can see it that grunt deprecation is coming then you could measure to see if users are in fact beginning the migration process.
could you console a message in the generator or a warning when selecting Grunt/Gulp that support 'may' be discontinued at a specific version or date?
people with already existing grunt projects won't be affected, however using an tiny bit of FUD may be effective at migrating new projects to one task runner. just an idea.
Awk34 commentedon May 20, 2016
FUD = Fear, uncertainty and doubt (I had to look that one up, although I hope it doesn't exactly apply here)
I think this sounds like a reasonable plan
macneib commentedon May 20, 2016
FUD <- for lack of a better term. Apologies, I don't mean to suggest scaring people out of grunt, but a clear warning with time to prepare would be fair warning to everyone.
Edit: Migrating to ng2 is a significant undertaking. Bower is being tossed and no one has objected thus far. I think users appreciate things are going to change, and streamlining the project to make that happen sooner rather than later would be the priority IMHO.
Awk34 commentedon May 20, 2016
I plan on maintaining 3.x.x for the forseeable future, at least
macneib commentedon May 20, 2016
Will ng2 be in 4.x.x?
I just rolled an angular-cli based project last night, and I think it's still too early to use, however I think we all can agree that pre-positioning this generator to be 'ng2-ready' would be kind of a nice thing.
Awk34 commentedon May 20, 2016
@macneib the plan right now is to release webpack + ng1 with 4.0.0, and ng2 with 5.0.0
mayeaux commentedon May 21, 2016
I agree about the grunt point, I used to like gulp more but I've used grunt so much I'm actually happier with it now.
30 remaining items
liu0fanyi commentedon Nov 19, 2016
@Koslun I get it...but how could I switch to angular 2? I'm new in angular...
csvan commentedon Nov 20, 2016
@liu0fanyi hybrids are a poor (IMO) solution and really only meant for migrations, If you are starting a new project, consider the Angular2 seed instead for now. I hear there are some generators as well, though i have not tried them.
Koslun commentedon Nov 21, 2016
@liu0fanyi @csvan
Well, I'll agree that you only really ever want to do hybrids if you have to. Meaning if you have an Angular 1 app that's too big to just rewrite in one go, or if you have some angular 1 specific things that are somehow not worth the effort to port yourself. One example could be using Angular Material 1 components. For some people it could also be the login mechanism in this generator.
Whether to use another starter or generator depends mostly on what you need/want. Most other starters are purely client or server setups without some of the features this generator has, such as integrated login.
For a good angular 2 starter right now (client only) I would recommend https://github.com/AngularClass/angular2-webpack-starter or https://github.com/qdouble/angular-webpack2-starter.
Would imagine a future version of the generator being a combination of https://github.com/angular/universal-starter and the aforementioned other starters with a bit of its own magic. Like gulp, browser-sync and the existing back-end. Hope to contribute towards that end next starting next month or start of next year.
liu0fanyi commentedon Nov 21, 2016
@csvan @Koslun I get it, thks..
MarkPieszak commentedon Jan 7, 2017
@Awk34 If you'd like help with the Universal aspect or have any questions about it let me know, I can help get things setup in those areas if needed!
One thing though, Universal is being moved to Angular Core slated for 4.x, so some APIs could change a tiny bit. (Things like
angular2-universalwill be in@angular/platform-serverinstead). But for the most part the universal-starter is a very minimalist version to build off from. There are some things that could be improved upon there of course!You can track angular/angular#13822 (comment) for more information on the upcoming changes.
Just wanted to give you a heads up!
Awk34 commentedon Jan 9, 2017
Hey @MarkPieszak, that would be great! The canary branch is currently using Angular 2.x.
From what I've heard about Angular 4.x.x, not too much should be changing. It would probably just be a minor version bump for this project.
aabm00 commentedon Jan 11, 2017
Hi
I would want to know what's the state of the Angular 2 or 4 version of the generator to work with, and what is the schedule to have a stable version.
Thanks
Awk34 commentedon Jan 11, 2017
@aabm00 I've converted the bulk of the main application code in canary to Angular 2.x.x, but there is still plenty to do. Most of the test files haven't been touched. Also some of the configuration options have not been tested by anyone.
I have been quite busy at work (new startup job), and probably won't have much time to develop on this project in the next couple weeks. I'll still be able to respond to issues & approve pull requests, though.
aabm00 commentedon Jan 11, 2017
MarkPieszak commentedon Jan 11, 2017
Congrats @Awk34 !
aabm00 commentedon Mar 15, 2017
Hi again.
@Awk34 I suppose you are still very busy at your new job, but do you have any idea or schedule of when a version with angular 2 or 4 will be available?
Thanks.
albert-92 commentedon Apr 30, 2017
@Awk34 A little update would be awesome, since i'm about to start a new project with the generator-angular-fullstack and currently i am wondering whether it is worth waiting a little longer for the Angular 2/4 adaptation?
Thanks!
Awk34 commentedon Apr 30, 2017
I have still been quite busy with work, but I've been trying to get to working on the 5.0.0 version when I can. I've been working on it today, getting different configurations more stable. There's still plenty of work to be done, though. I had originally been working with ui-router w/ Angular 2, but it seems like it's still in beta, which is a bit concerning. So the project needs to be updated to Angular 4.x.x (which shouldn't be difficult), many of the tests need to be converted/fixed, and the project needs to support the official Angular router.
albert-92 commentedon May 1, 2017
Thanks for the update @Awk34 !
Awk34 commentedon May 12, 2017
There's a big PR full of fixes for the canary branch if anyone wants to help review: #2563