]> source.dussan.org Git - jquery.git/commit
Build: migrate most grunt tasks off of grunt (3.x)
authorTimmy Willison <timmywil@users.noreply.github.com>
Wed, 20 Sep 2023 22:18:42 +0000 (18:18 -0400)
committerGitHub <noreply@github.com>
Wed, 20 Sep 2023 22:18:42 +0000 (18:18 -0400)
commitec8802bafefaebd99e4bfc0956fb409d9054d871
tree19fb82ea61bae624b35bd31bee8ba1e6bd080fa0
parent6fe88690a336a883ea310da76762e5a456dc487a
Build: migrate most grunt tasks off of grunt (3.x)

Close gh-5330

- 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 nodemon, which runs `npm run build:all` on `src` changes.

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
- run pretest script in jenkins

---------

Co-authored-by: Michał Gołębiowski-Owczarek <m.goleb@gmail.com>
75 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
CONTRIBUTING.md
Gruntfile.js
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 [new file with mode: 0644]
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/sourcemap.js [deleted file]
build/tasks/testswarm.js [deleted file]
dist/.eslintrc.json [deleted file]
eslint.config.js [new file with mode: 0644]
external/bootstrap/bootstrap.css [deleted file]
external/bootstrap/bootstrap.min.css [deleted file]
external/bootstrap/bootstrap.min.css.map [deleted file]
external/core-js/LICENSE.txt [deleted file]
external/core-js/core-js.js [deleted file]
external/npo/npo.js [deleted file]
external/qunit/LICENSE.txt [deleted file]
external/qunit/qunit.css [deleted file]
external/qunit/qunit.js [deleted file]
external/requirejs/require.js [deleted file]
external/sinon/LICENSE.txt [deleted file]
external/sinon/sinon.js [deleted file]
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/core/jquery-iterability-transpiled.html
test/data/support/bootstrap.html
test/data/testinit-jsdom.js
test/data/testinit.js
test/middleware-mockserver.js
test/node_smoke_tests/.eslintrc.json [deleted file]
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