We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27f1d54 + 8f26cee commit 9d6d9e8Copy full SHA for 9d6d9e8
Gruntfile.js.sample
@@ -12,16 +12,11 @@ module.exports = function (grunt) {
12
path = require('path'),
13
themes = require('./dev/tools/grunt/configs/themes'),
14
configDir = './dev/tools/grunt/configs',
15
- taskDir = './dev/tools/grunt/tasks';
+ tasks = grunt.file.expand('./dev/tools/grunt/tasks/*');
16
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) {
+ tasks = _.map(tasks, function(task){ return task.replace('.js', '') });
+ tasks.push('time-grunt');
+ tasks.forEach(function (task) {
25
require(task)(grunt);
26
});
27
0 commit comments