Skip to content

Commit deac0ba

Browse files
committed
Don't install dependencies
1 parent 7e5b80a commit deac0ba

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

generators/app/index.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ module.exports = generators.Base.extend({
1010
constructor: function () {
1111
generators.Base.apply(this, arguments);
1212

13+
this.option('skip-install', {
14+
desc: 'Skip installing dependencies',
15+
type: Boolean
16+
});
17+
1318
var dependencies = ['ruby', 'bundle', 'yo', 'gulp', 'node'].every(function (depend) {
1419
return shelljs.which(depend);
1520
});
@@ -147,9 +152,11 @@ module.exports = generators.Base.extend({
147152
},
148153

149154
installing: function () {
150-
this.installDependencies({
151-
bower: false
152-
});
153-
this.spawnCommand('bundle', ['install', '--quiet']);
155+
if (this.options['skip-install']) {
156+
this.log('Please run "npm install" and "bundle install" to install dependencies');
157+
} else {
158+
this.npmInstall();
159+
this.spawnCommand('bundle', ['install', '--quiet']);
160+
}
154161
}
155162
});

test/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ test.before(() => {
1616
uploading: 'None',
1717
jekyllPermalinks: 'pretty'
1818
})
19+
.withOptions({'skip-install': true})
1920
.toPromise();
2021
});
2122

File renamed without changes.

0 commit comments

Comments
 (0)