Make WordPress Core

Ticket #44256: 44256.diff

File 44256.diff, 1.3 KB (added by adamsilverstein, 7 years ago)
  • Gruntfile.js

    diff --git Gruntfile.js Gruntfile.js
    index 86839df62c..e87ef88cfd 100644
    module.exports = function(grunt) { 
    8282                        }
    8383                },
    8484                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                        ],
    8697                        js: [BUILD_DIR + 'wp-admin/js/', BUILD_DIR + 'wp-includes/js/'],
    8798                        dynamic: {
    8899                                dot: true,
    module.exports = function(grunt) { 
    112123                                                expand: true,
    113124                                                cwd: SOURCE_DIR,
    114125                                                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',
    116134                                                        '!js/**', // JavaScript is extracted into separate copy tasks.
    117                                                         '!**/.{svn,git}/**', // Ignore version control directories.
     135                                                        '!.{svn,git}/**', // Ignore version control directories.
    118136                                                        '!wp-includes/version.php', // Exclude version.php
    119137                                                        '!index.php', '!wp-admin/index.php',
    120138                                                        '!_index.php', '!wp-admin/_index.php'