We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f9e1f8 commit 872737bCopy full SHA for 872737b
packages/@angular/cli/blueprints/guard/index.ts
@@ -99,6 +99,13 @@ export default Blueprint.extend({
99
`;
100
this._writeStatusToUI(chalk.yellow, 'WARNING', warningMessage);
101
} else {
102
+ if (options.dryRun) {
103
+ this._writeStatusToUI(chalk.yellow,
104
+ 'update',
105
+ path.relative(this.project.root, this.pathToModule));
106
+ return;
107
+ }
108
+
109
const className = stringUtils.classify(`${options.entity.name}Guard`);
110
const fileName = stringUtils.dasherize(`${options.entity.name}.guard`);
111
const fullGeneratePath = path.join(this.project.root, this.generatePath);
0 commit comments