Skip to content

Commit

Permalink
Fix checking dependencies, update AVA
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed May 27, 2016
1 parent 19ea966 commit 0415f99
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ module.exports = generators.Base.extend({
type: Boolean
});

var dependencies = ['ruby', 'bundle', 'yo', 'gulp', 'node'].every(function (depend) {
return shelljs.which(depend);
});
if (!this.options['skip-install']) {
var dependencies = ['ruby', 'bundle', 'yo', 'gulp', 'node'].every(function (depend) {
return shelljs.which(depend);
});

if (!dependencies) {
this.log(chalk.red('You are missing one or more dependencies!'));
this.log(chalk.yellow('Make sure you have the required dependencies, or that they are in $PATH'));
shelljs.exit(1);
if (!dependencies) {
this.log(chalk.red('You are missing one or more dependencies!'));
this.log(chalk.yellow('Make sure you have the required dependencies, or that they are in $PATH'));
shelljs.exit(1);
}
}
},

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"yeoman-generator": "^0.23.3"
},
"devDependencies": {
"ava": "^0.14.0",
"ava": "^0.15.1",
"coveralls": "^2.11.9",
"nyc": "^6.4.4",
"xo": "^0.15.1",
Expand Down

0 comments on commit 0415f99

Please sign in to comment.