Skip to content

Commit

Permalink
Windows CLI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vladikoff committed Sep 17, 2013
1 parent 1b4544d commit ae616d6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
10 changes: 10 additions & 0 deletions grunt-plugin/lib/grunt-devtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ module.exports = function () {

// if this task has info and starts with 'Alias for'
if (task.info && task.info.indexOf('Alias for') === 0) {
delete task.meta;
delete task.info;

// add to Alias task list
aliasTasks.push(task);
}
Expand All @@ -83,6 +86,13 @@ module.exports = function () {
}
}
}

if (task.targets.length === 0) {
delete task.targets;
}

delete task.meta;
delete task.info;
// add to Core task list
coreTasks.push(task);
}
Expand Down
18 changes: 18 additions & 0 deletions test/manyTasks/Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict';

var NUM_OF_TASKS = 50;

module.exports = function (grunt) {

// Project configuration.
grunt.initConfig({ });

grunt.loadNpmTasks('grunt-devtools');

for (var t = 0; t <= NUM_OF_TASKS; t++) {
grunt.registerTask('foo' + t, 'foo' + t, function(arg1, arg2) {
grunt.log.ok('Running Task!')
});
}

};

0 comments on commit ae616d6

Please sign in to comment.