Skip to content

Commit c011b04

Browse files
Broccohansl
authored andcommitted
feat(generate): Show files updated when generating (angular#3642)
Closes angular#3624
1 parent 123f74d commit c011b04

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

packages/angular-cli/blueprints/component/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ module.exports = {
149149
returns.push(
150150
astUtils.addDeclarationToModule(this.pathToModule, className, importPath)
151151
.then(change => change.apply(NodeHost)));
152+
this._writeStatusToUI(chalk.yellow, 'update', path.relative(this.project.root, this.pathToModule));
152153
}
153154

154155
return Promise.all(returns);

packages/angular-cli/blueprints/directive/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const path = require('path');
2+
const chalk = require('chalk');
23
const dynamicPathParser = require('../../utilities/dynamic-path-parser');
34
const stringUtils = require('ember-cli-string-utils');
45
const astUtils = require('../../utilities/ast-utils');
@@ -100,6 +101,7 @@ module.exports = {
100101
returns.push(
101102
astUtils.addDeclarationToModule(this.pathToModule, className, importPath)
102103
.then(change => change.apply(NodeHost)));
104+
this._writeStatusToUI(chalk.yellow, 'update', path.relative(this.project.root, this.pathToModule));
103105
}
104106

105107
return Promise.all(returns);

packages/angular-cli/blueprints/pipe/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const path = require('path');
2+
const chalk = require('chalk');
23
const dynamicPathParser = require('../../utilities/dynamic-path-parser');
34
const stringUtils = require('ember-cli-string-utils');
45
const astUtils = require('../../utilities/ast-utils');
@@ -85,6 +86,7 @@ module.exports = {
8586
returns.push(
8687
astUtils.addDeclarationToModule(this.pathToModule, className, importPath)
8788
.then(change => change.apply(NodeHost)));
89+
this._writeStatusToUI(chalk.yellow, 'update', path.relative(this.project.root, this.pathToModule));
8890
}
8991

9092
return Promise.all(returns);

0 commit comments

Comments
 (0)