bkinsey808 / bk-fullstack-ts

A fullstack typescript demo with angular2, sass3, express4, jspm, gulp3, browser-sync, and nodemon.
GNU Affero General Public License v3.0
38 stars 8 forks source link

Long term: ng2 team considering move away from system.js + definently typed #12

Open jimthedev opened 9 years ago

jimthedev commented 9 years ago

Looks like the ng2 team is considering alternative loaders to system.js and will no longer be publishing types to Definitely typed as part of their process. I'd imagine this means they are primarily moving to webpack since they are also talking about users needing to just use npm to get the typedefs.

Here are the meeting notes: https://docs.google.com/document/d/150lerb1LmNLuau_a_EznPV1I1UHMTbEl61t4hZ7ZpS0/preview#

jimthedev commented 9 years ago

Looks like the TypeScript team made this possible by somehow being able to automatically find the tsds from node_modules instead of needing definitely typed (which admittedly is slow). https://github.com/alexeagle/angular2-distro/blob/master/README.md

bkinsey808 commented 9 years ago

Nice, thanks for the heads up. I haven't played much with webpack yet, but if that's where the ng2 community is moving toward, then this project should go that way too.

jimthedev commented 9 years ago

I am going to work on this at the same time as this project: https://github.com/angular-class/angular2-webpack-starter/issues/65

Looks like that repo is going to be one of the go-to repos for client side and they want an option to bring in another set of repos to make it full stack. Just a heads up as I'd imagine there is some overlap and room for collaboration.

bkinsey808 commented 9 years ago

In your opinion, do you think I should just retire this project? Maybe join forces with that one? I see you just made a PR. In light of the obsolescence of jspm, Is there anything this project still has to offer?

jimthedev commented 9 years ago

I think it should stay around. The team hasn't made a 100% decision. We'll just have to keep an eye out On Mon, Oct 5, 2015 at 6:08 PM bkinsey808 notifications@github.com wrote:

In your opinion, do you think I should just retire this project? Maybe join forces with that one? I see you just made a PR. In light of the obsolescence of jspm, Is there anything this project still has to offer?

— Reply to this email directly or view it on GitHub https://github.com/bkinsey808/bk-fullstack-ts/issues/12#issuecomment-145694476 .

bkinsey808 commented 9 years ago

Hm, I won't know for sure until I play with it more, but I'm thinking at this point it might be better to fork that project rather than try to retrofit webpack into this one, to help me get back on the same page as everybody else. But I do like having an express node server as part of the project. I haven't done much with it yet, but I had plans....

jimthedev commented 9 years ago

😀 I like this project. It actually is pretty comprehensive and at least it is straightforward about what you're getting. That said, I'm cool with transferring effort to the other webpack project. Angular-class has a full stack project that's private but will eventually come out and pair with the angular2-webpack-starter. I'll talk to the repo maintainer to see if I can get you added. On Mon, Oct 5, 2015 at 6:28 PM bkinsey808 notifications@github.com wrote:

Hm, I won't know for sure until I play with it more, but I'm thinking at this point it might be better to fork that project rather than try to retrofit webpack into this one, to help me get back on the same page as everybody else. But I do like having an express node server as part of the project. I haven't done much with it yet, but I had plans....

— Reply to this email directly or view it on GitHub https://github.com/bkinsey808/bk-fullstack-ts/issues/12#issuecomment-145697417 .

PatrickJS commented 9 years ago

We should probably merge efforts if that's alright with you @bkinsey808

bkinsey808 commented 9 years ago

@gdi2290 Oh, hello there PatrickJS! Quite an honor. I've really enjoyed listening to you on some of the angular podcasts you've been on, but your mustache made it rather difficult to concentrate on the things you were saying :)

Here's where I'm at: at my day job I'm a professional angular 1 developer, but I've had a pretty long full stack experience with various technologies before that. But I've seen the writing on the wall and clearly ng2 is the future. I like typescript, but I'm still kind of a newbie. I'd love to plug in, I'm open minded where you might think I could be helpful. One of my dreams is to figure out how to write cross-framework web components, something like ag-grd.

PatrickJS commented 9 years ago

@bkinsey808 thanks for listening to the podcast I'll be on it again tomorrow (Angular 2 vs React) :)

Awesome! Yeah, we need maintainers for the fullstack repo. The repo will be used initially for people to try out server-rendering in Angular 2 and will be mentioned during AngularConnect. I'll add you to the repo (the repo is pretty outdated atm) I need to update it with latest changes from Universal then we can start adding browser-sync/gulp

For something like ag-grid the author wrote the component in JavaScript in order to manage the state of the component which allowed him to create adapters for each framework (ng1,ng2,webcomponents,vanilla.js)

bkinsey808 commented 9 years ago

@gdi2290 thanks, I just got a chance to listen to the podcast. Very cool stuff. Always keep learning indeed. Yes, I want to try out this server side rendering. Sign me up. :) This is something of a holy grail for client side javascript single page architecture apps-- rendering speed has historically been our biggest weakness, in my opinion. Isomorphic/universal Ng2 will be a game changer, hopefully. I would love to play a role in this revolution some way some how.

bkinsey808 commented 9 years ago

@jimthedev looks like jspm vs webpack debate is raging in the ng2 community: https://devchat.tv/adventures-in-angular/062-aia-module-loading-and-jspm-or-webpack-for-angular-2-with-k-scott-allen

Yeesh, I had no idea this would be so controversial. Can we make jspm work even without the d.ts files being submitted in definitely typed? Can we extract them out of npm_modules somehow? Or should we not bother, and regard jspm in ng2 just completely obsolete without definitely typed?

It does seem unfortunate to have to load two copies of ng2: both in jspm and in npm_modules.

Bleah.

jimthedev commented 9 years ago

Well, we can keep publishing the definitions to DT outside of official releases. I've been putting in PRs for this. We should probably keep trucking along until they figure out what the heck they're going to do. On Thu, Oct 8, 2015 at 4:09 PM bkinsey808 notifications@github.com wrote:

@jimthedev https://github.com/jimthedev looks like jspm vs webpack debate is raging in the ng2 community:

https://devchat.tv/adventures-in-angular/062-aia-module-loading-and-jspm-or-webpack-for-angular-2-with-k-scott-allen

Yeesh, I had no idea this would be so controversial. Can we make jspm work even without the d.ts files being submitted in definitely typed? Can we extract them out of npm somehow? Or should we not bother, and regard jspm in ng2 just completely obsolete without definitely typed?

It does seem unfortunate to have to load two copies of ng2: both in jspm and in npm_modules.

Bleah.

— Reply to this email directly or view it on GitHub https://github.com/bkinsey808/bk-fullstack-ts/issues/12#issuecomment-146685568 .

bkinsey808 commented 9 years ago

I'm not a good judge of webpack yet because I haven't explored it as deeply as jspm, but some of the criticisms in that podcast seemed a little unfair. On the other hand I definitely do not know how to do that hot module loading thing with jspm, so if webpack can do it and jspm can't, I guess that settles the issue for the most part.