Skip to content

Commit ab7a775

Browse files
author
Cari Spruiell
committed
Merge commit 'refs/pull/3492/head' of github.com:magento/magento2 into MAGETWO-50273-grunt-tasks-autoloading
2 parents 12efdf6 + f5bccc5 commit ab7a775

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+
19+
tasks.forEach(function (task) {
2520
require(task)(grunt);
2621
});
2722

0 commit comments

Comments
 (0)