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 1659b74 commit 114ee50Copy full SHA for 114ee50
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