]> source.dussan.org Git - jquery.git/commit
Build: migrate most grunt tasks off of grunt
authorTimmy Willison <timmywil@users.noreply.github.com>
Mon, 18 Sep 2023 16:39:00 +0000 (12:39 -0400)
committerGitHub <noreply@github.com>
Mon, 18 Sep 2023 16:39:00 +0000 (12:39 -0400)
commit2bdecf8b7bd10864e5337a4e24e39476c78cf23a
tree4685fc5ca912e368c294a3949c7ef5b663fec980
parentf75daab09102a4dd5107deadb55d4a169f86254a
Build: migrate most grunt tasks off of grunt

Updated tasks include:

- lint
- npmcopy
- build, minify, and process for distribution.
- new custom build command using yargs
- compare size of minified/gzip built files
- pretest scripts, including qunit-fixture, babel transpilation, and npmcopy
- node smoke tests
- promises aplus tests
- new watch task using `rollup.watch` directly

Also:

- upgraded husky and added the new lint command
- updated lint config to use new "flat" config format. See https://eslint.org/docs/latest/use/configure/configuration-files-new
- Temporarily disabled one lint rule until flat config is supported by eslint-plugin-import. See https://github.com/import-js/eslint-plugin-import/issues/2556
- committed package-lock.json
- updated all test scripts to use the new build
- added an express test server that uses middleware-mockserver (this can be used to run tests without karma)
- build-all-variants is now build:all

Close gh-5318
64 files changed:
.editorconfig
.eslintignore [deleted file]
.eslintrc-browser.json [deleted file]
.eslintrc-node.json [deleted file]
.eslintrc.json [deleted file]
.github/workflows/node.js.yml
.gitignore
.husky/commit-msg [new file with mode: 0755]
.husky/pre-commit [new file with mode: 0755]
.npmignore
Gruntfile.cjs
README.md
build/command.js [new file with mode: 0755]
build/grunt-tasks/testswarm.js [new file with mode: 0644]
build/tasks/build.js
build/tasks/compare_size.mjs [new file with mode: 0644]
build/tasks/dist.js
build/tasks/lib/getTimestamp.js [new file with mode: 0644]
build/tasks/lib/isCleanWorkingDir.js [new file with mode: 0644]
build/tasks/lib/slim-build-flags.js [deleted file]
build/tasks/lib/slim-exclude.js [new file with mode: 0644]
build/tasks/lib/spawn_test.js [deleted file]
build/tasks/lib/verifyNodeVersion.js [new file with mode: 0644]
build/tasks/minify.js
build/tasks/node_smoke_tests.js
build/tasks/npmcopy.js [new file with mode: 0644]
build/tasks/promises_aplus_tests.js
build/tasks/qunit-fixture.js [new file with mode: 0644]
build/tasks/qunit_fixture.js [deleted file]
build/tasks/testswarm.js [deleted file]
dist-module/.eslintrc.json [deleted file]
dist/.eslintrc.json [deleted file]
eslint.config.js [new file with mode: 0644]
package-lock.json [new file with mode: 0644]
package.json
src/.eslintrc.json [deleted file]
test/.eslintrc.json [deleted file]
test/data/core/.babelrc.json [new file with mode: 0644]
test/data/support/bootstrap.html
test/data/testinit-jsdom.js
test/data/testinit.js
test/data/testrunner.js
test/middleware-mockserver.cjs
test/node_smoke_tests/commonjs/.eslintrc.json [deleted file]
test/node_smoke_tests/module/.eslintrc.json [deleted file]
test/node_smoke_tests/module/lib/jquery-module-specifier.js
test/promises_aplus_adapters/.eslintrc.json [deleted file]
test/server.js [new file with mode: 0644]
test/unit/ajax.js
test/unit/attributes.js
test/unit/callbacks.js
test/unit/core.js
test/unit/css.js
test/unit/data.js
test/unit/deferred.js
test/unit/deprecated.js
test/unit/effects.js
test/unit/event.js
test/unit/manipulation.js
test/unit/offset.js
test/unit/queue.js
test/unit/selector.js
test/unit/serialize.js
test/unit/traversing.js