Build/Test Tools: Keep `wp-config.php` file in the `build` directory on rebuild.

Props isabel_brison.
Fixes #49460.

git-svn-id: https://develop.svn.wordpress.org/trunk@47303 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-02-18 09:25:25 +00:00
parent bb110e3c0b
commit 82ddcbf707
1 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,8 @@ module.exports = function(grunt) {
'wp-content/plugins/index.php',
'wp-content/plugins/hello.php',
'wp-content/plugins/akismet/**',
'!wp-content/themes/twenty*/node_modules/**'
'!wp-content/themes/twenty*/node_modules/**',
'!wp-config.php',
],
changedFiles = {
php: []
@ -97,6 +98,9 @@ module.exports = function(grunt) {
plugins: [BUILD_DIR + 'wp-content/plugins'],
themes: [BUILD_DIR + 'wp-content/themes'],
files: buildFiles.map( function( file ) {
if ( '!' === file.charAt( 0 ) ) {
return '!' + BUILD_DIR + file.substring( 1 );
}
return BUILD_DIR + file;
}),
css: [