Skip to content

Commit

Permalink
feat(generate): Show files updated when generating (#3642)
Browse files Browse the repository at this point in the history
Closes #3624
  • Loading branch information
Brocco authored and hansl committed Dec 20, 2016
1 parent 123f74d commit c011b04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/angular-cli/blueprints/component/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ module.exports = {
returns.push(
astUtils.addDeclarationToModule(this.pathToModule, className, importPath)
.then(change => change.apply(NodeHost)));
this._writeStatusToUI(chalk.yellow, 'update', path.relative(this.project.root, this.pathToModule));
}

return Promise.all(returns);
Expand Down
2 changes: 2 additions & 0 deletions packages/angular-cli/blueprints/directive/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require('path');
const chalk = require('chalk');
const dynamicPathParser = require('../../utilities/dynamic-path-parser');
const stringUtils = require('ember-cli-string-utils');
const astUtils = require('../../utilities/ast-utils');
Expand Down Expand Up @@ -100,6 +101,7 @@ module.exports = {
returns.push(
astUtils.addDeclarationToModule(this.pathToModule, className, importPath)
.then(change => change.apply(NodeHost)));
this._writeStatusToUI(chalk.yellow, 'update', path.relative(this.project.root, this.pathToModule));
}

return Promise.all(returns);
Expand Down
2 changes: 2 additions & 0 deletions packages/angular-cli/blueprints/pipe/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require('path');
const chalk = require('chalk');
const dynamicPathParser = require('../../utilities/dynamic-path-parser');
const stringUtils = require('ember-cli-string-utils');
const astUtils = require('../../utilities/ast-utils');
Expand Down Expand Up @@ -85,6 +86,7 @@ module.exports = {
returns.push(
astUtils.addDeclarationToModule(this.pathToModule, className, importPath)
.then(change => change.apply(NodeHost)));
this._writeStatusToUI(chalk.yellow, 'update', path.relative(this.project.root, this.pathToModule));
}

return Promise.all(returns);
Expand Down

0 comments on commit c011b04

Please sign in to comment.