Skip to content

Commit

Permalink
fix(hooks): only print build warning for v2
Browse files Browse the repository at this point in the history
  • Loading branch information
tlancina committed Mar 28, 2016
1 parent b58ddce commit 3d69f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Cli.run = function run(processArgv) {
return Q.nfcall(gulp.start.bind(gulp), argv._[0] + ':after');
});
} else {
if (/serve|build|run|emulate|upload/.test(cmdName)) {
if (/serve|build|run|emulate|upload/.test(cmdName) && argv.v2) {
console.warn('WARN: No gulpfile found!');
console.warn('If your app requires a build step, you may want to ensure it runs before ' + cmdName + '.\n');
}
Expand Down

0 comments on commit 3d69f9d

Please sign in to comment.