diff --git Gruntfile.js Gruntfile.js
index 86839df62c..86635fff55 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/upgrade', |
| 95 | BUILD_DIR + 'wp-content/uploads', |
| 96 | BUILD_DIR + 'wp-content/plugins/*.php', |
| 97 | BUILD_DIR + 'wp-content/plugins/akismet', |
| 98 | ], |
86 | 99 | js: [BUILD_DIR + 'wp-admin/js/', BUILD_DIR + 'wp-includes/js/'], |
87 | 100 | dynamic: { |
88 | 101 | dot: true, |
… |
… |
module.exports = function(grunt) { |
112 | 125 | expand: true, |
113 | 126 | cwd: SOURCE_DIR, |
114 | 127 | src: [ |
115 | | '**', |
| 128 | '*.php', |
| 129 | '*.html', |
| 130 | 'wp-includes/**', // Include everything in wp-includes. |
| 131 | 'wp-admin/**', // Include everything in wp-admin. |
| 132 | 'wp-content/index.php', |
| 133 | 'wp-content/themes/index.php', |
| 134 | 'wp-content/themes/twentyfourteen', |
| 135 | 'wp-content/themes/twentythirteen', |
| 136 | 'wp-content/themes/twentytwelve', |
| 137 | 'wp-content/plugins/index.php', |
| 138 | 'wp-content/plugins/helo.php', |
| 139 | 'wp-content/plugins/akismet', |
116 | 140 | '!js/**', // JavaScript is extracted into separate copy tasks. |
117 | | '!**/.{svn,git}/**', // Ignore version control directories. |
| 141 | '!.{svn,git}', // Exclude version control folders. |
118 | 142 | '!wp-includes/version.php', // Exclude version.php |
119 | 143 | '!index.php', '!wp-admin/index.php', |
120 | 144 | '!_index.php', '!wp-admin/_index.php' |