Make WordPress Core

Changeset 44529


Ignore:
Timestamp:
01/10/2019 01:38:22 AM (6 years ago)
Author:
pento
Message:

Build Tools: Copy unminified JS files to src.

This allows SCRIPT_DEBUG to be set to true when running from src.

Fixes #45869.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r44361 r44529  
    165165            },
    166166            'npm-packages': {
    167                 files: {
    168                     [ WORKING_DIR + 'wp-includes/js/backbone.js' ]: [ './node_modules/backbone/backbone.js' ],
    169                     [ WORKING_DIR + 'wp-includes/js/hoverIntent.js' ]: [ './node_modules/jquery-hoverintent/jquery.hoverIntent.js' ],
    170                     [ WORKING_DIR + 'wp-includes/js/imagesloaded.min.js' ]: [ './node_modules/imagesloaded/imagesloaded.pkgd.min.js' ],
    171                     [ WORKING_DIR + 'wp-includes/js/jquery/jquery-migrate.js' ]: [ './node_modules/jquery-migrate/dist/jquery-migrate.js' ],
    172                     [ WORKING_DIR + 'wp-includes/js/jquery/jquery-migrate.min.js' ]: [ './node_modules/jquery-migrate/dist/jquery-migrate.min.js' ],
    173                     [ WORKING_DIR + 'wp-includes/js/jquery/jquery.form.js' ]: [ './node_modules/jquery-form/src/jquery.form.js' ],
    174                     [ WORKING_DIR + 'wp-includes/js/jquery/jquery.form.min.js' ]: [ './node_modules/jquery-form/dist/jquery.form.min.js' ],
    175                     [ WORKING_DIR + 'wp-includes/js/jquery/jquery.js' ]: [ './node_modules/jquery/dist/jquery.min.js' ],
    176                     [ WORKING_DIR + 'wp-includes/js/masonry.min.js' ]: [ './node_modules/masonry-layout/dist/masonry.pkgd.min.js' ],
    177                     [ WORKING_DIR + 'wp-includes/js/twemoji.js' ]: [ './node_modules/twemoji/2/twemoji.js' ],
    178                     [ WORKING_DIR + 'wp-includes/js/underscore.min.js' ]: [ './node_modules/underscore/underscore-min.js' ]
    179                 }
     167                files: [
     168                    {
     169                        [ WORKING_DIR + 'wp-includes/js/backbone.js' ]: [ './node_modules/backbone/backbone.js' ],
     170                        [ WORKING_DIR + 'wp-includes/js/hoverIntent.js' ]: [ './node_modules/jquery-hoverintent/jquery.hoverIntent.js' ],
     171                        [ WORKING_DIR + 'wp-includes/js/imagesloaded.min.js' ]: [ './node_modules/imagesloaded/imagesloaded.pkgd.min.js' ],
     172                        [ WORKING_DIR + 'wp-includes/js/jquery/jquery-migrate.js' ]: [ './node_modules/jquery-migrate/dist/jquery-migrate.js' ],
     173                        [ WORKING_DIR + 'wp-includes/js/jquery/jquery-migrate.min.js' ]: [ './node_modules/jquery-migrate/dist/jquery-migrate.min.js' ],
     174                        [ WORKING_DIR + 'wp-includes/js/jquery/jquery.form.js' ]: [ './node_modules/jquery-form/src/jquery.form.js' ],
     175                        [ WORKING_DIR + 'wp-includes/js/jquery/jquery.form.min.js' ]: [ './node_modules/jquery-form/dist/jquery.form.min.js' ],
     176                        [ WORKING_DIR + 'wp-includes/js/jquery/jquery.js' ]: [ './node_modules/jquery/dist/jquery.min.js' ],
     177                        [ WORKING_DIR + 'wp-includes/js/masonry.min.js' ]: [ './node_modules/masonry-layout/dist/masonry.pkgd.min.js' ],
     178                        [ WORKING_DIR + 'wp-includes/js/twemoji.js' ]: [ './node_modules/twemoji/2/twemoji.js' ],
     179                        [ WORKING_DIR + 'wp-includes/js/underscore.js' ]: [ './node_modules/underscore/underscore.js' ],
     180                        [ WORKING_DIR + 'wp-includes/js/underscore.min.js' ]: [ './node_modules/underscore/underscore-min.js' ]
     181                    },
     182                    {
     183                        expand: true,
     184                        cwd: './node_modules/jquery-ui/ui/',
     185                        src: '*.js',
     186                        dest: SOURCE_DIR + 'wp-includes/js/jquery/ui/'
     187                    },
     188                    {
     189                        expand: true,
     190                        cwd: './node_modules/underscore/',
     191                        src: 'underscore.js',
     192                        dest: SOURCE_DIR + 'wp-includes/js/'
     193                    }
     194                ]
    180195            },
    181196            'vendor-js': {
     
    212227                        ],
    213228                        dest: WORKING_DIR + 'wp-includes/js/jquery/'
    214                     }
     229                    },
     230                    {
     231                        expand: true,
     232                        cwd: SOURCE_DIR + 'js/_enqueues/vendor/tinymce/',
     233                        src: 'tinymce.js',
     234                        dest: SOURCE_DIR + 'wp-includes/js/tinymce/'
     235                    },
     236
    215237                ]
    216238            },
Note: See TracChangeset for help on using the changeset viewer.