Skip to content

Commit e7d64af

Browse files
committed
feat(generator completion message): notify on end
1 parent 82b4002 commit e7d64af

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

generators/generator-widget/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ npm install
4444
#### Todo
4545
---
4646

47-
- completion message (e.g "dont forget to add impac-angular module declaration")
4847
- define default data values & options for charts so upon generation, charts are displayable!
4948
- static config & options moved into .json config files to clean-up index.js
5049
- add more widget-settings

generators/generator-widget/generators/app/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ module.exports = yeoman.generators.Base.extend({
5353
mod: _.kebabCase(this.props.widgetName)
5454
};
5555
};
56+
57+
// The generator has finished it's magic, do any final jobs and say goodbye.
58+
this.on('end', function () {
59+
this.log(yosay(
60+
chalk.green('All done! ') + chalk.yellow('Don\'t forget to add your new component to your App\'s module dependancies!!')
61+
));
62+
});
5663
},
5764
prompting: function () {
5865
var done = this.async();

0 commit comments

Comments
 (0)