Skip to content

Commit

Permalink
Don't install dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed May 23, 2016
1 parent 7e5b80a commit deac0ba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
15 changes: 11 additions & 4 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ module.exports = generators.Base.extend({
constructor: function () {
generators.Base.apply(this, arguments);

this.option('skip-install', {
desc: 'Skip installing dependencies',
type: Boolean
});

var dependencies = ['ruby', 'bundle', 'yo', 'gulp', 'node'].every(function (depend) {
return shelljs.which(depend);
});
Expand Down Expand Up @@ -147,9 +152,11 @@ module.exports = generators.Base.extend({
},

installing: function () {
this.installDependencies({
bower: false
});
this.spawnCommand('bundle', ['install', '--quiet']);
if (this.options['skip-install']) {
this.log('Please run "npm install" and "bundle install" to install dependencies');
} else {
this.npmInstall();
this.spawnCommand('bundle', ['install', '--quiet']);
}
}
});
1 change: 1 addition & 0 deletions test/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ test.before(() => {
uploading: 'None',
jekyllPermalinks: 'pretty'
})
.withOptions({'skip-install': true})
.toPromise();
});

Expand Down
File renamed without changes.

0 comments on commit deac0ba

Please sign in to comment.