Make WordPress Core

Ticket #44256: 44256.2.diff

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

    diff --git Gruntfile.js Gruntfile.js
    index 86839df62c..86635fff55 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/upgrade',
     95                                BUILD_DIR + 'wp-content/uploads',
     96                                BUILD_DIR + 'wp-content/plugins/*.php',
     97                                BUILD_DIR + 'wp-content/plugins/akismet',
     98                        ],
    8699                        js: [BUILD_DIR + 'wp-admin/js/', BUILD_DIR + 'wp-includes/js/'],
    87100                        dynamic: {
    88101                                dot: true,
    module.exports = function(grunt) { 
    112125                                                expand: true,
    113126                                                cwd: SOURCE_DIR,
    114127                                                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',
    116140                                                        '!js/**', // JavaScript is extracted into separate copy tasks.
    117                                                         '!**/.{svn,git}/**', // Ignore version control directories.
     141                                                        '!.{svn,git}', // Exclude version control folders.
    118142                                                        '!wp-includes/version.php', // Exclude version.php
    119143                                                        '!index.php', '!wp-admin/index.php',
    120144                                                        '!_index.php', '!wp-admin/_index.php'