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.
1 parent e0ed4ba commit f5bccc5Copy full SHA for f5bccc5
Gruntfile.js
@@ -11,16 +11,11 @@ module.exports = function (grunt) {
11
path = require('path'),
12
themes = require('./dev/tools/grunt/configs/themes'),
13
configDir = './dev/tools/grunt/configs',
14
- taskDir = './dev/tools/grunt/tasks';
+ tasks = grunt.file.expand('./dev/tools/grunt/tasks/*');
15
16
- [
17
- taskDir + '/mage-minify',
18
- taskDir + '/deploy',
19
- taskDir + '/black-list-generator',
20
- taskDir + '/clean-black-list',
21
- taskDir + '/static',
22
- 'time-grunt'
23
- ].forEach(function (task) {
+ tasks = _.map(tasks, function(task){ return task.replace('.js', '') });
+
+ tasks.forEach(function (task) {
24
require(task)(grunt);
25
});
26
0 commit comments