mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Build: upgrade dependencies; fix bundler tests on windows
- account for newly unused parameters in the slim builds Closes gh-5509
This commit is contained in:
parent
ea31e4d57c
commit
cb8ab6ccdb
@ -24,7 +24,7 @@ async function runTests() {
|
|||||||
spawn(
|
spawn(
|
||||||
command,
|
command,
|
||||||
[ test ].concat( args ),
|
[ test ].concat( args ),
|
||||||
{ stdio: "inherit" }
|
{ shell: true, stdio: "inherit" }
|
||||||
);
|
);
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,8 @@ export default [
|
|||||||
ignores: [
|
ignores: [
|
||||||
"external",
|
"external",
|
||||||
"**/tmp",
|
"**/tmp",
|
||||||
"test/data/json_obj.js"
|
"test/data/json_obj.js",
|
||||||
|
"test/data/jquery-*.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -147,7 +148,6 @@ export default [
|
|||||||
"test/unit/**"
|
"test/unit/**"
|
||||||
],
|
],
|
||||||
ignores: [
|
ignores: [
|
||||||
"test/data/jquery-3.7.1.js",
|
|
||||||
"test/data/badcall.js",
|
"test/data/badcall.js",
|
||||||
"test/data/badjson.js",
|
"test/data/badjson.js",
|
||||||
"test/data/support/csp.js",
|
"test/data/support/csp.js",
|
||||||
@ -349,6 +349,28 @@ export default [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
files: [
|
||||||
|
"dist/jquery.slim.js",
|
||||||
|
"dist/jquery.factory.slim.js",
|
||||||
|
"dist-module/jquery.slim.module.js",
|
||||||
|
"dist-module/jquery.factory.slim.module.js"
|
||||||
|
],
|
||||||
|
rules: {
|
||||||
|
|
||||||
|
// Rollup is now smart enough to remove the use
|
||||||
|
// of parameters if the argument is not passed
|
||||||
|
// anywhere in the build.
|
||||||
|
// The removal of effects in the slim build
|
||||||
|
// results in some parameters not being used,
|
||||||
|
// which can be safely ignored.
|
||||||
|
"no-unused-vars": [
|
||||||
|
"error",
|
||||||
|
{ args: "none" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
files: [
|
files: [
|
||||||
"src/wrapper.js",
|
"src/wrapper.js",
|
||||||
|
1095
package-lock.json
generated
1095
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
26
package.json
26
package.json
@ -95,14 +95,14 @@
|
|||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "7.23.9",
|
"@babel/cli": "7.24.7",
|
||||||
"@babel/core": "7.24.0",
|
"@babel/core": "7.24.7",
|
||||||
"@babel/plugin-transform-for-of": "7.23.6",
|
"@babel/plugin-transform-for-of": "7.24.7",
|
||||||
"@prantlf/jsonlint": "14.0.3",
|
"@prantlf/jsonlint": "14.0.3",
|
||||||
"@rollup/plugin-commonjs": "25.0.7",
|
"@rollup/plugin-commonjs": "26.0.1",
|
||||||
"@rollup/plugin-node-resolve": "15.2.3",
|
"@rollup/plugin-node-resolve": "15.2.3",
|
||||||
"@swc/core": "1.4.6",
|
"@swc/core": "1.5.28",
|
||||||
"@types/selenium-webdriver": "4.1.22",
|
"@types/selenium-webdriver": "4.1.23",
|
||||||
"body-parser": "1.20.2",
|
"body-parser": "1.20.2",
|
||||||
"bootstrap": "5.3.3",
|
"bootstrap": "5.3.3",
|
||||||
"browserstack-local": "1.5.5",
|
"browserstack-local": "1.5.5",
|
||||||
@ -110,7 +110,7 @@
|
|||||||
"colors": "1.4.0",
|
"colors": "1.4.0",
|
||||||
"commitplease": "3.2.0",
|
"commitplease": "3.2.0",
|
||||||
"concurrently": "8.2.2",
|
"concurrently": "8.2.2",
|
||||||
"core-js-bundle": "3.36.0",
|
"core-js-bundle": "3.37.1",
|
||||||
"diff": "5.2.0",
|
"diff": "5.2.0",
|
||||||
"eslint": "8.57.0",
|
"eslint": "8.57.0",
|
||||||
"eslint-config-jquery": "3.0.2",
|
"eslint-config-jquery": "3.0.2",
|
||||||
@ -118,20 +118,20 @@
|
|||||||
"exit-hook": "4.0.0",
|
"exit-hook": "4.0.0",
|
||||||
"express": "4.19.2",
|
"express": "4.19.2",
|
||||||
"express-body-parser-error-handler": "1.0.7",
|
"express-body-parser-error-handler": "1.0.7",
|
||||||
"globals": "14.0.0",
|
"globals": "15.4.0",
|
||||||
"husky": "9.0.11",
|
"husky": "9.0.11",
|
||||||
"jsdom": "24.0.0",
|
"jsdom": "24.1.0",
|
||||||
"multiparty": "4.2.3",
|
"multiparty": "4.2.3",
|
||||||
"native-promise-only": "0.8.1",
|
"native-promise-only": "0.8.1",
|
||||||
"promises-aplus-tests": "2.1.2",
|
"promises-aplus-tests": "2.1.2",
|
||||||
"q": "1.5.1",
|
"q": "1.5.1",
|
||||||
"qunit": "2.20.1",
|
"qunit": "2.21.0",
|
||||||
"raw-body": "2.5.2",
|
"raw-body": "2.5.2",
|
||||||
"requirejs": "2.3.6",
|
"requirejs": "2.3.6",
|
||||||
"rollup": "4.12.1",
|
"rollup": "4.18.0",
|
||||||
"selenium-webdriver": "4.18.1",
|
"selenium-webdriver": "4.21.0",
|
||||||
"sinon": "9.2.4",
|
"sinon": "9.2.4",
|
||||||
"webpack": "5.90.3",
|
"webpack": "5.92.0",
|
||||||
"yargs": "17.7.2"
|
"yargs": "17.7.2"
|
||||||
},
|
},
|
||||||
"commitplease": {
|
"commitplease": {
|
||||||
|
@ -1,16 +1,11 @@
|
|||||||
import webpack from "webpack";
|
import webpack from "webpack";
|
||||||
import path from "node:path";
|
|
||||||
import { fileURLToPath } from "node:url";
|
|
||||||
|
|
||||||
const dirname = path.dirname( fileURLToPath( import.meta.url ) );
|
|
||||||
const configPath = path.resolve( dirname, "..", "webpack.config.cjs" );
|
|
||||||
|
|
||||||
// See https://webpack.js.org/api/node/#webpack
|
// See https://webpack.js.org/api/node/#webpack
|
||||||
export async function runWebpack() {
|
export async function runWebpack() {
|
||||||
return new Promise( async( resolve, reject ) => {
|
return new Promise( async( resolve, reject ) => {
|
||||||
console.log( "Running Webpack" );
|
console.log( "Running Webpack" );
|
||||||
|
|
||||||
const { default: config } = await import( configPath );
|
const { default: config } = await import( "../webpack.config.cjs" );
|
||||||
|
|
||||||
webpack( config, ( err, stats ) => {
|
webpack( config, ( err, stats ) => {
|
||||||
if ( err || stats.hasErrors() ) {
|
if ( err || stats.hasErrors() ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user