diff --git Gruntfile.js Gruntfile.js
index 86839df62c..e87ef88cfd 100644
|
|
module.exports = function(grunt) { |
82 | 82 | } |
83 | 83 | }, |
84 | 84 | clean: { |
85 | | all: [BUILD_DIR], |
| 85 | plugins: [BUILD_DIR + 'wp-content/plugins'], |
| 86 | all: [ |
| 87 | BUILD_DIR + '*.php', |
| 88 | BUILD_DIR + '*.txt', |
| 89 | BUILD_DIR + '*.html', |
| 90 | BUILD_DIR + 'wp-admin', |
| 91 | BUILD_DIR + 'wp-includes', |
| 92 | BUILD_DIR + 'wp-content/*.php', |
| 93 | BUILD_DIR + 'wp-content/themes', |
| 94 | BUILD_DIR + 'wp-content/plugins/*.php', |
| 95 | BUILD_DIR + 'wp-content/plugins/akismet', |
| 96 | ], |
86 | 97 | js: [BUILD_DIR + 'wp-admin/js/', BUILD_DIR + 'wp-includes/js/'], |
87 | 98 | dynamic: { |
88 | 99 | dot: true, |
… |
… |
module.exports = function(grunt) { |
112 | 123 | expand: true, |
113 | 124 | cwd: SOURCE_DIR, |
114 | 125 | src: [ |
115 | | '**', |
| 126 | '*.php', |
| 127 | '*.html', |
| 128 | 'wp-includes/**', |
| 129 | 'wp-admin/**', |
| 130 | 'wp-content/*.php', |
| 131 | 'wp-content/themes/**', |
| 132 | 'wp-content/plugins/*.php', |
| 133 | 'wp-content/plugins/akismet', |
116 | 134 | '!js/**', // JavaScript is extracted into separate copy tasks. |
117 | | '!**/.{svn,git}/**', // Ignore version control directories. |
| 135 | '!.{svn,git}/**', // Ignore version control directories. |
118 | 136 | '!wp-includes/version.php', // Exclude version.php |
119 | 137 | '!index.php', '!wp-admin/index.php', |
120 | 138 | '!_index.php', '!wp-admin/_index.php' |