mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Build Tools: Copy unminified JS files to src
.
This allows `SCRIPT_DEBUG` to be set to `true` when running from `src`. Fixes #45869. git-svn-id: https://develop.svn.wordpress.org/trunk@44529 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
25e9a6d249
commit
3e5aa4d4a5
26
Gruntfile.js
26
Gruntfile.js
@ -164,7 +164,8 @@ module.exports = function(grunt) {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
'npm-packages': {
|
'npm-packages': {
|
||||||
files: {
|
files: [
|
||||||
|
{
|
||||||
[ WORKING_DIR + 'wp-includes/js/backbone.js' ]: [ './node_modules/backbone/backbone.js' ],
|
[ WORKING_DIR + 'wp-includes/js/backbone.js' ]: [ './node_modules/backbone/backbone.js' ],
|
||||||
[ WORKING_DIR + 'wp-includes/js/hoverIntent.js' ]: [ './node_modules/jquery-hoverintent/jquery.hoverIntent.js' ],
|
[ WORKING_DIR + 'wp-includes/js/hoverIntent.js' ]: [ './node_modules/jquery-hoverintent/jquery.hoverIntent.js' ],
|
||||||
[ WORKING_DIR + 'wp-includes/js/imagesloaded.min.js' ]: [ './node_modules/imagesloaded/imagesloaded.pkgd.min.js' ],
|
[ WORKING_DIR + 'wp-includes/js/imagesloaded.min.js' ]: [ './node_modules/imagesloaded/imagesloaded.pkgd.min.js' ],
|
||||||
@ -175,8 +176,22 @@ module.exports = function(grunt) {
|
|||||||
[ WORKING_DIR + 'wp-includes/js/jquery/jquery.js' ]: [ './node_modules/jquery/dist/jquery.min.js' ],
|
[ WORKING_DIR + 'wp-includes/js/jquery/jquery.js' ]: [ './node_modules/jquery/dist/jquery.min.js' ],
|
||||||
[ WORKING_DIR + 'wp-includes/js/masonry.min.js' ]: [ './node_modules/masonry-layout/dist/masonry.pkgd.min.js' ],
|
[ WORKING_DIR + 'wp-includes/js/masonry.min.js' ]: [ './node_modules/masonry-layout/dist/masonry.pkgd.min.js' ],
|
||||||
[ WORKING_DIR + 'wp-includes/js/twemoji.js' ]: [ './node_modules/twemoji/2/twemoji.js' ],
|
[ WORKING_DIR + 'wp-includes/js/twemoji.js' ]: [ './node_modules/twemoji/2/twemoji.js' ],
|
||||||
|
[ WORKING_DIR + 'wp-includes/js/underscore.js' ]: [ './node_modules/underscore/underscore.js' ],
|
||||||
[ WORKING_DIR + 'wp-includes/js/underscore.min.js' ]: [ './node_modules/underscore/underscore-min.js' ]
|
[ WORKING_DIR + 'wp-includes/js/underscore.min.js' ]: [ './node_modules/underscore/underscore-min.js' ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
expand: true,
|
||||||
|
cwd: './node_modules/jquery-ui/ui/',
|
||||||
|
src: '*.js',
|
||||||
|
dest: SOURCE_DIR + 'wp-includes/js/jquery/ui/'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
expand: true,
|
||||||
|
cwd: './node_modules/underscore/',
|
||||||
|
src: 'underscore.js',
|
||||||
|
dest: SOURCE_DIR + 'wp-includes/js/'
|
||||||
}
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
'vendor-js': {
|
'vendor-js': {
|
||||||
files: [
|
files: [
|
||||||
@ -211,7 +226,14 @@ module.exports = function(grunt) {
|
|||||||
'suggest*'
|
'suggest*'
|
||||||
],
|
],
|
||||||
dest: WORKING_DIR + 'wp-includes/js/jquery/'
|
dest: WORKING_DIR + 'wp-includes/js/jquery/'
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
expand: true,
|
||||||
|
cwd: SOURCE_DIR + 'js/_enqueues/vendor/tinymce/',
|
||||||
|
src: 'tinymce.js',
|
||||||
|
dest: SOURCE_DIR + 'wp-includes/js/tinymce/'
|
||||||
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
'admin-js': {
|
'admin-js': {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user