Skip to content

Commit

Permalink
Update Gruntfile.js
Browse files Browse the repository at this point in the history
add conditions to run jshint and coffeelint in grunt runOnce.
Related to issue xolvio#129
  • Loading branch information
AdrienLemaire committed Feb 24, 2014
1 parent 197dbc5 commit 676062f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@

function constructRunOnceTasks(startupTasks) {
var tasks = [];
tasks.push('jshint:app');
tasks.push('jshint:test');
if (rtdConf.options.jshint && rtdConf.options.jshint.enabled) {
tasks.push('jshint:app');
tasks.push('jshint:test');
}
if (rtdConf.options.coffeelint && rtdConf.options.coffeelint.enabled) {
tasks.push('coffeelint:app');
tasks.push('coffeelint:test');
}
tasks = tasks.concat(startupTasks.slice(0, startupTasks.length - 1));
tasks.push.apply(tasks, constructWatchTasks(true));
//tasks.push('closeWebdriverSessions');
Expand Down

0 comments on commit 676062f

Please sign in to comment.