PatrickJS-starter icon indicating copy to clipboard operation
PatrickJS-starter copied to clipboard

Repo Update Log

Open PatrickJS opened this issue 9 years ago • 65 comments

angular-starter

I will be working on updating this repo throughout the coming months. The changes would be a complete rework

New Features

  • [x] Angular (4.x.x) latest stable
  • [x] Dependencies latest stable
  • [x] Webpack latest stable
  • [x] TypeScript latest stable
  • [x] RxJS latest stable
  • [x] zone.js latest stable
  • [x] Rename
  • [x] Update logo
  • [ ] Universal-rendering (new by AngularClass) [soon]
  • [ ] Static-site-rendering (new by AngularClass) [soon]
  • [ ] Server-side-rendering (new by AngularClass) [soon]
  • [ ] Client-side-rendering (new by AngularClass) [soon]
  • [ ] Updated Folder Structure (new AngularClass best practices) [soon]
  • [ ] Updated Lazy Loading (new AngularClass best practices)
  • [ ] Updated Webpack Config Design (new by AngularClass) [soon]
  • [ ] New Task Management System (new by AngularClass) [soon]
  • [ ] New Ways to Create Initial Repos (new by AngularClass)
  • [ ] Async Everything
  • [ ] Updated Support
  • [ ] Faster Initial Boot
  • [ ] Better Errors (new by AngularClass)
  • [ ] New Update Cycle (new by AngularClass)
  • [ ] New Patterns (new AngularClass patterns)
  • [ ] New Contributor System (new by AngularClass)
  • [ ] New Testing System (new by AngularClass)
  • [ ] HMR everything (not just client-side-rendering) (new by AngularClass)
  • [ ] environment
  • [ ] platform

Bonus

  • [ ] Full-stack
  • [ ] Migration from Previous Starter
  • [ ] Initial Service Worker Work (new by AngularClass)
  • [ ] Deployment Docs (new by AngularClass)

PatrickJS avatar Apr 18 '17 15:04 PatrickJS

Sounds like a nice list, can't wait to see the result. Will there be an "easy" and straightforward upgrade/merge from previous angular 2 webpack starter setup to this new setup for angular 4?

WillooWisp avatar Apr 18 '17 17:04 WillooWisp

I'll add the migration as a bonus as the migration is different for everyone

PatrickJS avatar Apr 18 '17 17:04 PatrickJS

This is great news and this sounds awesome!

I have the same concerns as @WillooWisp. I am using this starter as sort of an upstream repository that maintains the stack maintenance for several downstream applications. The way I have been updating has been via git and projects starting off with a full clone so the history matches up. So I have this sort of setup for maintenance:

angular-webpack-starter -> angular-webpack-starter (opinionated) -> downstream apps

Where the opinionated setup is a fork of the version here with some adjustments for production readiness (postcss autoprefixer, IE specific conditional bundle, dev/prod frontend environment config etc...) and a specific CI/CD setup for a particular client, but still maintaining the same git history.

Sample update from opinionated setup: image

Can you outline some of the strategies (or is this available somewhere) that AngularClass will be taking for some of the bigger pieces here? Particularly I am interested in how the webpack configuration would change, how I will need to prepare for this and how can I help out here.

Here's a list of enhancements I've done to the current setup:

  • IE conditional bundle and styles
  • Frontend environment configuration for dev/prod
  • deployUrl functionality from angular cli
  • baseUrl functionality from angular cli
  • includePaths functionality for sass
    • Component sass architecture (eg: https://github.com/angular/angular-cli/pull/2747#issuecomment-268651574)
  • Headless testing with PhantomJS, but switching to headless chrome in the future
  • Minified index.html for prod build
  • commitizen
  • standard-changelog support
  • angular 4
  • tslint fix task
  • reusable dependencies for setup compliant library building image

Some things in my roadmap:

  • [ ] CLI for generating files compliant with folder structure
  • [ ] Headless chrome for testing
  • [ ] a11y testing
  • [ ] ngrx setup with sensible folder structure
  • [ ] better checking for catching AoT issues

Just want to say thanks for the amazing project and that this is definitely my preferred choice over some of the starter setups available.

admosity avatar Apr 18 '17 19:04 admosity

My hope is that the new and upgraded angular 4 supported starter is based on the same repository so that we can merge it in, with some manual merging of course. I have added things like bootstrap 4 loader and font loader for example.

WillooWisp avatar Apr 18 '17 19:04 WillooWisp

@admosity thank you for providing a lot of great feedback. My plan is to create a repo that can fit your requirements of continuously updating the base starter. With this change, migration in the future would be a lot easier so long as everyone follows the conventions. For migration from the current design to the new, I don't know what the that would look like yet because it depends on everyone's setup after the initial seed. There will be some major refactors such as not using npm-tasks for task management. There will be more helpers for creating new folders and managing the repo in general. A lot of the awesome features aren't on the list and require more time but I'll keep everyone updated :)

The folder structure change would benefit lazy loading more and is slightly different from the current setup. The change would be providing more structure the convention

PatrickJS avatar Apr 18 '17 20:04 PatrickJS

I really hope this can be part of the existing repo, branch or whatever, so all our existing repos, based on current starter, will continue to be related and so that pull/merge scenarios now and in the future will continue to work easily. Good work!

WillooWisp avatar Apr 19 '17 06:04 WillooWisp

Awesome to hear that this project is still alive. Can't wait to see the new hot sh*t ;)

Cheers & keep up that great work

Uter1007 avatar Apr 19 '17 14:04 Uter1007

@WillooWisp @admosity the redo was updated to Angular 4 can you see if you can pull/merge? If the goal is migration from the old repo then I would need to make slow refactors into the new format

PatrickJS avatar Apr 21 '17 18:04 PatrickJS

@gdi2290 Tested merging latest updates to https://github.com/JonnyBGod/angular2-webpack-advance-starter and all working fine.

JonnyBGod avatar Apr 21 '17 21:04 JonnyBGod

@gdi2290 I think it is a good strategy to try to make slow refactors to ease the pain for downstream projects to merge.

JonnyBGod avatar Apr 21 '17 21:04 JonnyBGod

@gdi2290 cool, will give it a shot. I checked the changes since and it looks like I already have those changes except for the package upgrades, so I think would go smoothly.

I have slightly updated docs referencing this comment for the context replacement change: https://github.com/angular/angular/issues/11580#issuecomment-282705332

For this: https://github.com/AngularClass/angular2-webpack-starter/commit/8cfed71cb2780d8529b0902db2e39f517530b8ca#diff-f737fedb5357468044db2dbe98eb0218L252

admosity avatar Apr 21 '17 22:04 admosity

It works fine for me as well. Changing "rxjs" to exact "5.0.2" version makes some errors go away as well.

WillooWisp avatar Apr 22 '17 22:04 WillooWisp

And slow refactors, if needed, is okay, since it would be great if same repo keeps getting updated.

WillooWisp avatar Apr 22 '17 22:04 WillooWisp

Amazing!!!

J05HI avatar Apr 23 '17 19:04 J05HI

alright I'm switching to slow refactor into the new design so anyone else doing the upgrade via git can do so

PatrickJS avatar Apr 23 '17 21:04 PatrickJS

Perfect, good work! Thanks!

WillooWisp avatar Apr 24 '17 09:04 WillooWisp

@gdi2290 upgrade seems to have gone over well! I think the current demo app stuff in master should be moved into its own branch as those files came up as a merge conflict. In my setup I have a docs branch that has a full featured documentation site built on top of the starter.

admosity avatar Apr 27 '17 16:04 admosity

The repo has been renamed to angular-starter if anyone is doing a git merge/update workflow please update your git configs. More updates will come down the pipeline if you have any errors doing upgrading message comment here asap

PatrickJS avatar May 02 '17 20:05 PatrickJS

Nice list, getting completed slower than I thought:)

klihelp avatar May 09 '17 16:05 klihelp

@klihelp Me too, I can't wait anymore for that great stuff 😅

J05HI avatar May 09 '17 16:05 J05HI