Skip to content

Commit 83d7c1d

Browse files
committed
Merge pull request #1289 from DaftMonk/log-gen-version
feat(gen): Show version in console, add to .yo-rc.json
2 parents 03c37fa + f56ab60 commit 83d7c1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: app/generator.js

+2
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)