From c011b04cd01777ad8bdee50ebe28ccab6bf05881 Mon Sep 17 00:00:00 2001 From: Mike Brocchi Date: Mon, 19 Dec 2016 20:29:35 -0500 Subject: [PATCH] feat(generate): Show files updated when generating (#3642) Closes #3624 --- packages/angular-cli/blueprints/component/index.js | 1 + packages/angular-cli/blueprints/directive/index.js | 2 ++ packages/angular-cli/blueprints/pipe/index.js | 2 ++ 3 files changed, 5 insertions(+) diff --git a/packages/angular-cli/blueprints/component/index.js b/packages/angular-cli/blueprints/component/index.js index 92556d32fabb..b1c9c94999bd 100644 --- a/packages/angular-cli/blueprints/component/index.js +++ b/packages/angular-cli/blueprints/component/index.js @@ -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); diff --git a/packages/angular-cli/blueprints/directive/index.js b/packages/angular-cli/blueprints/directive/index.js index 062ca02a9645..00765faf56ae 100644 --- a/packages/angular-cli/blueprints/directive/index.js +++ b/packages/angular-cli/blueprints/directive/index.js @@ -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'); @@ -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); diff --git a/packages/angular-cli/blueprints/pipe/index.js b/packages/angular-cli/blueprints/pipe/index.js index e4d80411732e..d1a17144dc81 100644 --- a/packages/angular-cli/blueprints/pipe/index.js +++ b/packages/angular-cli/blueprints/pipe/index.js @@ -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'); @@ -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);