Skip to content

Commit f56ab60

Browse files
committed
feat(gen): Show gen version in console & add to .yo-rc.json
1 parent e5ad7f9 commit f56ab60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/generator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default class Generator extends Base {
3030
return {
3131

3232
init: function () {
33+
this.config.set('generatorVersion', this.rootGeneratorVersion());
3334
this.filters = {};
3435

3536
// init shared generator properies and methods
@@ -43,6 +44,7 @@ export default class Generator extends Base {
4344
# generator-angular-fullstack. For a more stable version, run
4445
# \`npm install -g generator-angular-fullstack@^2.0.0\`
4546
################################################################`));
47+
this.log('You\'re using the Angular Full-Stack Generator, version ' + this.rootGeneratorVersion());
4648
this.log(this.yoWelcome);
4749
this.log('Out of the box I create an AngularJS app with an Express server.\n');
4850
},

0 commit comments

Comments
 (0)