-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(ng-update): add links to migration guide in v9 hammer migration #17769
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -178,7 +178,8 @@ export class HammerGesturesRule extends MigrationRule<null> { | |
| 'The HammerJS v9 migration for Angular Components detected that HammerJS is ' + | ||
| 'manually set up in combination with references to the Angular Material gesture ' + | ||
| 'config. This target cannot be migrated completely, but all references to the ' + | ||
| 'deprecated Angular Material gesture have been removed.'); | ||
| 'deprecated Angular Material gesture have been removed. Read more here: ' + | ||
| 'https://git.io/ng-material-v9-hammer-ambiguous-usage'); | ||
| } else if (usedInTemplate && this._gestureConfigReferences.length) { | ||
| // Since there is a reference to the Angular Material gesture config, and we detected | ||
| // usage of a gesture event that could be provided by Angular Material, we *cannot* | ||
|
|
@@ -188,7 +189,8 @@ export class HammerGesturesRule extends MigrationRule<null> { | |
| 'The HammerJS v9 migration for Angular Components detected that HammerJS is ' + | ||
| 'manually set up in combination with references to the Angular Material gesture ' + | ||
| 'config. This target cannot be migrated completely. Please manually remove ' + | ||
| 'references to the deprecated Angular Material gesture config.'); | ||
| 'references to the deprecated Angular Material gesture config. Read more here: ' + | ||
| 'https://git.io/ng-material-v9-hammer-ambiguous-usage'); | ||
| } | ||
| } else if (this._usedInRuntime || usedInTemplate) { | ||
| // We keep track of whether Hammer is used globally. This is necessary because we | ||
|
|
@@ -228,7 +230,8 @@ export class HammerGesturesRule extends MigrationRule<null> { | |
| this.printInfo( | ||
| 'The HammerJS v9 migration for Angular Components migrated the ' + | ||
| 'project to keep HammerJS installed, but detected ambiguous usage of HammerJS. Please ' + | ||
| 'manually check if you can remove HammerJS from your application.'); | ||
| 'manually check if you can remove HammerJS from your application. More details: ' + | ||
| 'https://git.io/ng-material-v9-hammer-ambiguous-usage'); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This overall message still feels somewhat exaggerated. It's not always ambiguous, and only rarely (see case 1 in the guide). @jelbourn do you have any idea how we can rephrase this and make it not sound like it's always wrong?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's fine |
||
| } | ||
| } | ||
|
|
||
|
|
@@ -852,6 +855,8 @@ export class HammerGesturesRule extends MigrationRule<null> { | |
| '\n⚠ General notice: The HammerJS v9 migration for Angular Components is not able to ' + | ||
| 'migrate tests. Please manually clean up tests in your project if they rely on ' + | ||
| (this.globalUsesHammer ? 'the deprecated Angular Material gesture config.' : 'HammerJS.'))); | ||
| context.logger.info( | ||
| 'Read more about migrating tests: https://git.io/ng-material-v9-hammer-migrate-tests'); | ||
|
|
||
| if (!this.globalUsesHammer && this._removeHammerFromPackageJson(tree)) { | ||
| // Since Hammer has been removed from the workspace "package.json" file, | ||
|
|
||
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.
I used
git.io(which is an official Github service) since I don't want to show +150 chars for a perma-link. Happy to switch to something else if we can generate something likeg.co/ng, or just use a real perma-link.