Build/Test: Bump devDependencies for WordPress 5.3

This upgrades a number of devDependencies.  Some of these include changes to how the tasks are configured.

Uglify: There are deprecated options from 2.x to 4.x, see: https://github.com/gruntjs/grunt-contrib-uglify#options

Autoprefixer: Browserslist now warns when passing in the browser list, so that is put into package.json

As with most changes to uglify, this changes every minified JS file.

Fixes #48203.




git-svn-id: https://develop.svn.wordpress.org/trunk@46408 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Aaron Jorbin 2019-10-05 19:47:04 +00:00
parent f6357458f4
commit 3f9927d3ab
3 changed files with 748 additions and 642 deletions

View File

@ -52,18 +52,6 @@ module.exports = function(grunt) {
options: {
processors: [
autoprefixer({
browsers: [
'> 1%',
'ie >= 11',
'last 1 Android versions',
'last 1 ChromeAndroid versions',
'last 2 Chrome versions',
'last 2 Firefox versions',
'last 2 Safari versions',
'last 2 iOS versions',
'last 2 Edge versions',
'last 2 Opera versions'
],
cascade: false
})
]
@ -677,8 +665,8 @@ module.exports = function(grunt) {
},
uglify: {
options: {
ASCIIOnly: true,
screwIE8: false
'output.ascii_only': true,
'!ie8': false
},
core: {
expand: true,
@ -718,7 +706,7 @@ module.exports = function(grunt) {
jqueryui: {
options: {
// Preserve comments that start with a bang.
preserveComments: /^!/
'output.comments': /^!/
},
expand: true,
cwd: 'node_modules/jquery-ui/ui/',

1330
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,27 +12,39 @@
},
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
"browserslist": [
"> 1%",
"ie >= 11",
"last 1 Android versions",
"last 1 ChromeAndroid versions",
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 iOS versions",
"last 2 Edge versions",
"last 2 Opera versions"
],
"devDependencies": {
"@wordpress/custom-templated-path-webpack-plugin": "1.5.0",
"@wordpress/e2e-test-utils": "2.4.1",
"@wordpress/library-export-default-webpack-plugin": "1.4.1",
"@wordpress/scripts": "5.0.1",
"autoprefixer": "9.4.7",
"check-node-version": "3.2.0",
"copy-webpack-plugin": "^4.6.0",
"cssnano": "4.1.8",
"dotenv": "8.0.0",
"autoprefixer": "9.6.2",
"check-node-version": "4.0.1",
"copy-webpack-plugin": "^5.0.4",
"cssnano": "4.1.10",
"dotenv": "8.1.0",
"dotenv-expand": "5.1.0",
"grunt": "~1.0.3",
"grunt": "~1.0.4",
"grunt-banner": "^0.6.0",
"grunt-contrib-clean": "~2.0.0",
"grunt-contrib-concat": "~1.0.0",
"grunt-contrib-concat": "1.0.1",
"grunt-contrib-copy": "~1.0.0",
"grunt-contrib-cssmin": "~3.0.0",
"grunt-contrib-imagemin": "~3.1.0",
"grunt-contrib-jshint": "~2.0.0",
"grunt-contrib-jshint": "2.1.0",
"grunt-contrib-qunit": "^1.2.0",
"grunt-contrib-uglify": "~2.0.0",
"grunt-contrib-uglify": "~4.0.1",
"grunt-contrib-watch": "~1.1.0",
"grunt-file-append": "0.0.7",
"grunt-includes": "~1.1.0",
@ -43,18 +55,18 @@
"grunt-postcss": "~0.9.0",
"grunt-replace-lts": "~1.1.0",
"grunt-rtlcss": "~2.0.1",
"grunt-sass": "~3.0.2",
"grunt-sass": "~3.1.0",
"grunt-webpack": "^3.1.3",
"ink-docstrap": "^1.3.0",
"ink-docstrap": "1.3.2",
"jquery-migrate": "1.4.1",
"matchdep": "~2.0.0",
"node-sass": "~4.12.0",
"source-map-loader": "^0.2.4",
"uglify-js": "^3.4.9",
"uglifyjs-webpack-plugin": "2.1.1",
"uglify-js": "^3.6.0",
"uglifyjs-webpack-plugin": "2.2.0",
"wait-on": "3.3.0",
"webpack": "4.29.2",
"webpack-dev-server": "3.1.14",
"webpack": "4.41.0",
"webpack-dev-server": "3.8.2",
"webpack-livereload-plugin": "2.2.0"
},
"dependencies": {