Skip to content

Commit 906795d

Browse files
committed
chore(): add comment for clarity
1 parent 408a660 commit 906795d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ function runWithGulp(argv, taskInstance){
150150
return Q.fcall(taskInstance.run.bind(taskInstance), Cli, argv);
151151
},
152152
function(e){ //task error, let gulp handle it
153+
//if there is no hook task, but it's a v2 app and a command that usually needs a hook
153154
if (e.missingTask && /serve|build|run|emulate|upload/.test(cmdName) && argv.v2) {
154155
var taskName = (cmdName === 'serve') ? 'watch' : 'build';
155156
console.warn('WARN: No \'' + beforeHook + '\' gulp task found!');

0 commit comments

Comments
 (0)