Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Store): add ng update #1032

Merged
merged 4 commits into from
May 11, 2018
Merged

Conversation

timdeschryver
Copy link
Member

Closes #1028

const suffix = match(firstChar, '^') || match(firstChar, '~');

// TODO: remove beta
pkg.dependencies['@ngrx/store'] = `${suffix}6.0.0@beta.1`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why wouldn't this be 6.0.0-beta.1 since you're just modifying the package.json? Also go ahead and change to to beta.2 since that will be the next release.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep you're totally right!

@@ -19,10 +19,13 @@
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "NG_VERSION",
"rxjs": "RXJS_VERSION"
"rxjs": "RXJS_VERSION",
"@angular-devkit/core": "NG_DEVKIT_VERSION",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the devkit peer dependencies. If you're using the Angular CLI or the Schematics CLI, we can rely on those dependencies implicitly.

Copy link
Member

@brandonroberts brandonroberts May 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, add the NG_DEVKIT_VERSION replacements to the modules/schematics/package.json and bump the version to ^0.6.0

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know, thanks!

@coveralls
Copy link

coveralls commented May 9, 2018

Coverage Status

Coverage decreased (-0.1%) to 92.968% when pulling f22a617 on tdeschryver:ng-update into c0893f1 on ngrx:master.

@brandonroberts
Copy link
Member

Is this PR ready to land? Or are you going to add it to the other packages separately?

@timdeschryver
Copy link
Member Author

timdeschryver commented May 10, 2018

Any idea of this is testable locally? Because I wanted to ng update a new project to see if it would update the ngrx store version.

About the other packages, what would you prefer. A PR per package or should I add them all in this PR?

@brandonroberts
Copy link
Member

Testing locally requires a local npm server. There is an article here http://www.softwarearchitekt.at/post/2018/04/17/seamlessly-updating-your-angular-libraries-with-ng-update.aspx

@brandonroberts
Copy link
Member

Let's land this one first, then we can look at reusing some of this code across the other packages since the update path should be the same.

@timdeschryver
Copy link
Member Author

timdeschryver commented May 10, 2018

OK, I think everything is fine.
Fyi, when installing the following error is thrown, but can be ignored with --force.
Package "@ngrx/router-store" has an incompatible peer dependency to "@ngrx/store" (requires "v6.0.0-beta.1", would install "6.0.0-beta.2").

@timdeschryver timdeschryver changed the title WIP: feat(Store): add ng update feat(Store): add ng update May 10, 2018
@brandonroberts
Copy link
Member

Cool. I'll merge in a bit. I have a follow-up branch ready so we can reuse it across the other packages pretty easily.

@brandonroberts brandonroberts merged commit 5b4f067 into ngrx:master May 11, 2018
@timdeschryver timdeschryver deleted the ng-update branch May 12, 2018 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants