Skip to content

Commit 17e4289

Browse files
committed
fix(app): run the command task after the answers
1 parent 4969c3a commit 17e4289

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ var AngularNextGenerator = module.exports = function (args, options, config) {
2020
this.log(yosay('Welcome to the marvelous AngularNext generator!'));
2121

2222
this.on('end', function () {
23+
this.invoke('angular-next:common');
2324
if (!this.options['skip-install']) {
2425
this.installDependencies();
2526
}
2627
});
27-
28-
this.hookFor('angular-next:common');
2928
};
3029

3130
util.inherits(AngularNextGenerator, yeoman.generators.Base);
@@ -52,6 +51,7 @@ AngularNextGenerator.prototype.askFor = function() {
5251
};
5352

5453
AngularNextGenerator.prototype.createConfigFiles = function() {
54+
this.invoke('angular-next:common');
5555
this.sourceRoot(path.join(__dirname, '../templates'));
5656

5757
['package.json', 'gulpfile.js', 'bower.json'].forEach(function(file, index) {

0 commit comments

Comments
 (0)