Skip to content

Commit 9d6d9e8

Browse files
author
Oleksii Korshenko
committed
MAGETWO-52616: Bug Fixes Contribution
Merge remote-tracking branch 'origin/MAGETWO-50273-grunt-tasks-autoloading' into pull-request
2 parents 27f1d54 + 8f26cee commit 9d6d9e8

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Gruntfile.js.sample

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,11 @@ module.exports = function (grunt) {
1212
path = require('path'),
1313
themes = require('./dev/tools/grunt/configs/themes'),
1414
configDir = './dev/tools/grunt/configs',
15-
taskDir = './dev/tools/grunt/tasks';
15+
tasks = grunt.file.expand('./dev/tools/grunt/tasks/*');
1616

17-
[
18-
taskDir + '/mage-minify',
19-
taskDir + '/deploy',
20-
taskDir + '/black-list-generator',
21-
taskDir + '/clean-black-list',
22-
taskDir + '/static',
23-
'time-grunt'
24-
].forEach(function (task) {
17+
tasks = _.map(tasks, function(task){ return task.replace('.js', '') });
18+
tasks.push('time-grunt');
19+
tasks.forEach(function (task) {
2520
require(task)(grunt);
2621
});
2722

0 commit comments

Comments
 (0)