| 1 |
module.exports = function (grunt, wpmudev) { |
| 2 |
'use strict'; |
| 3 |
|
| 4 |
grunt.registerTask('wpmudev_copy', function (type) { |
| 5 |
var files = wpmudev.files.get('all').concat(wpmudev.files.gather(['dev', 'temp'], 'not')); |
| 6 |
|
| 7 |
if (type) { |
| 8 |
files = files.concat(wpmudev.files.not(type)); |
| 9 |
} |
| 10 |
|
| 11 |
grunt.config.set('copy', { |
| 12 |
wpmudev: { |
| 13 |
files: [{ |
| 14 |
expand: true, |
| 15 |
cwd: './', |
| 16 |
src: files, |
| 17 |
dest: 'dist', |
| 18 |
filter: 'isFile' |
| 19 |
}] |
| 20 |
} |
| 21 |
}); |
| 22 |
|
| 23 |
grunt.task.run('copy:wpmudev'); |
| 24 |
|
| 25 |
}); |
| 26 |
}; |
| 27 |
|