Commit Graph

61 Commits

Author SHA1 Message Date
Timmy Willison
399b201bb3
Release: revert change that broke release
763ade6dda (diff-ba51b2c9ce2527b1f191cb2c210748a4f18cccc38893f7ffe1597fb1d23ce027L72)

The above change did not work because makeArchives was
not made to return a Promise
2023-08-28 09:31:17 -04:00
Michał Gołębiowski-Owczarek
763ade6dda
Build: Generate the slim build on grunt & run compare_size on it
Summary of the changes:
* expand `node_smoke_tests` to test the full & slim builds
* run `compare_size` on all built minified files; don't run it anymore on
  unminified files where they don't provide lots of value

The main goal of this change is to make it easier to compare sizes of both the
full & slim builds between the `3.x-stable` & `main` branches.

Closes gh-5291
Ref gh-5255

(partially cherry-picked from commit 8be4c0e4f8)
2023-07-10 20:45:30 +02:00
Michał Gołębiowski-Owczarek
6306ca4994
Selector: Inline Sizzle into the selector module: 3.x version (#5113)
This commit removes Sizzle from jQuery, inlining its code & removing obsolete
workarounds where applicable.

The Sizzle AUTHORS.txt file has been merged with the jQuery one - people are
sorted by their first contributions to either of the two repositories.

The main `selector` module can be disabled in favor of `selector-native`
via:

    grunt custom:-selector

For backwards compatibility, the legacy `sizzle` alias is also supported (it
will be dropped in jQuery `4.0.0`):

    grunt custom:-selector

Sizzle tests have been ported to jQuery ones. Ones that are not compatible
with the `selector-native` module are disabled if the regular selector module
is excluded.

Backwards compatibility is still kept for all `Sizzle` utils - they continue to be
available under `jQuery.find` - but the primary implementation is now attached
directly to jQuery.

Some selector utils shared by `selector` & `selector-native` have been
extracted & deduplicated. `jQuery.text` and `jQuery.isXMLDoc` have been
moved to the `core` module.

The commit reduces the gzipped jQuery size by 851 bytes compared to the
`3.x-stable` branch.

Closes gh-5113
Ref gh-4395
Ref gh-4406
2022-12-14 01:41:31 +01:00
Timmy Willison
aed59da0c9
Release: remove the need to install grunt globally 2021-03-01 17:48:55 -05:00
Timmy Willison
8b50fbe75d
Release: drop the need for npm as a local dependency
- Not meant to be used like that anymore
2021-03-01 17:41:18 -05:00
Timmy Willison
a21a4b2de7
Release: upgrade release dependencies 2021-03-01 16:48:41 -05:00
Michał Gołębiowski-Owczarek
524bcf39da Release: Use an in-repository dist README fixture
Use a dist README fixture kept in the jQuery repository instead of modifying
an existing one. This makes the jQuery repository the single source of truth
when it comes to jQuery releases and it makes it easier to make changes to
README without worrying how it will affect older jQuery lines.

The commit also ES6ifies build/release.js & build/release/dist.js

Closes gh-4614

(cherry picked from commit 358b769a00)
2020-03-02 22:48:29 +01:00
Michał Gołębiowski-Owczarek
4cbdc745cc Build: Create a grunt custom:slim alias for the Slim build
Closes gh-4578

(cherry-picked from 9b9ed469b4)
2020-01-07 16:45:22 +01:00
Michał Gołębiowski-Owczarek
ac2da4e6b9 Build: Require strict mode in Node.js scripts via ESLint
So far, only browser-based JS files were required to be in strict mode (in the
function form). This commit adds such a requirement to Node.js scripts where
the global form is preferred. All Node.js scripts in sloppy mode were
converted to strict mode.

Closes gh-4499

(cherry picked from commit bbad821c39)
2019-10-09 00:24:17 +02:00
Michał Gołębiowski-Owczarek
279d2e979e Build: Stop copying src/core.js to dist on release
File `src/core.js` has started erroneously being copied to `dist/` in gh-2981.

Fixes gh-4489
Closes gh-4492
Ref gh-2979
Ref gh-2981

(cherry picked from commit 9a4d980639)
2019-10-04 16:13:58 +02:00
Timmy Willison
47caeaecd9
Release: update release dependencies 2017-03-15 14:57:20 -04:00
Timmy Willison
0588d0ce35
Build: Keep deprecated module in slim
Fixes gh-3237
Close gh-3533
2017-02-13 10:53:04 -05:00
Oleg Gaidarenko
58c6ca9822 Build: ESLint details
Use eslint pragmas, fix new errors, etc

Closes gh-3148
2016-06-11 10:41:33 +03:00
Timmy Willison
95c7ab6897 Release: remove extraneous files from dist during release
Fixes gh-3094
Close gh-3116
2016-05-13 11:35:15 -04:00
Timmy Willison
0f5f0c981a Release: set version in source for releases
Fixes gh-2979
Close gh-2981
2016-03-14 10:37:11 -04:00
Timmy Willison
cf7102c3f1 Release: push a custom slim build to the CDN
Fixes gh-2653
Close gh-2711
2015-11-16 11:22:20 -05:00
Timmy Willison
5f5aee3b58 Release: use chalk instead of colors for terminal colors 2015-11-12 13:23:53 -05:00
Oleg Gaidarenko
10fdad742a Build: Update jscs and lint files
Fixes gh-2056
2015-09-07 20:03:50 +03:00
Timmy Willison
e0673dfedb Release: fix CDN archive creation
Fixes gh-1940
2015-01-29 17:38:35 -08:00
Timmy Willison
aae998b544 Release: dist can be run during a test 2015-01-29 15:36:48 -08:00
Timmy Willison
61224f5fef Release: bower.json is actually generated from scratch 2015-01-29 12:25:57 -08:00
Timmy Willison
26eca143c2 Release: Distribute files to distribution repo
Fixes gh-1869
Fixes gh-1673
Fixes gh-2045
2015-01-29 12:03:40 -08:00
Dave Methvin
c34ed46eee Release: Remove copying of jquery-latest files 2015-01-06 21:59:14 -05:00
Timmy Willison
c869a1ef8a Build: update grunt-jscs-checker and pass with the new rules 2014-07-17 10:25:59 -07:00
Timmy Willison
1d931068d3 Release: ensure Sizzle is the latest tag
Fixes #14915
2014-05-23 13:49:57 -04:00
Scott González
5265cdac3d Build: Update release script for new jquery-release API
Closes gh-1544
2014-03-21 12:33:10 -04:00
Timmy Willison
de7702ac59 Release: Instantiate a zip archiver, run archivers async 2014-01-23 16:00:54 -05:00
Jörn Zaefferer
20ea8071b4 Release: Publish to npm
Closes gh-1479
2014-01-10 09:25:11 -05:00
Timmy Willison
23db994404 Release script: _tracMilestone -> tracMilestone 2013-12-21 12:07:40 -05:00
Timmy Willison
74a48958bd Release script: minor formatting issue. 2013-12-20 17:37:38 -05:00
Timmy Willison
f3062f96e0 Release script: jquery-release integration 2013-12-20 17:25:03 -05:00
Timmy Willison
f9ad13c9ec Manage bower dependencies with grunt-bowercopy
Tracked bower dependencies are located at "src/sizzle" and "test/libs".
The source-destination mapping is in the Gruntfile.

When updating a bower dependency, update the version in bower.json, run
`grunt bower`, and then commit the result. When adding a dependency,
update the bowercopy task accordingly.

Fixes #14615.
Closes gh-1452.
2013-12-06 16:04:35 -05:00
Timmy Willison
14c19cf1a8 Release script: Add dist files in multiple commits for a clean final commit with a small diff 2013-11-15 10:48:49 -05:00
Timmy Willison
b04b386180 Release script: Add .npmignore and keep .gitignore when creating the tag 2013-11-15 10:32:13 -05:00
Timmy Willison
9aacb89f36 Release script: create tag after building CDN files 2013-11-15 09:32:46 -05:00
Timmy Willison
7f0b28e308 Update sizzle location in release script 2013-11-14 10:21:46 -05:00
Timmy Willison
2035695624 Modify release script to create a headless tag for bower and publish to NPM 2013-11-13 23:51:09 -05:00
Michał Gołębiowski
562145e887 Fix #14415. Remove the source map comment in the release script. Close gh-1424. 2013-11-10 23:24:26 +01:00
Timmy Willison
fc4ff9315d Add bower install script and release scripts to jshint and pass lint 2013-10-07 18:24:02 -04:00
Dave Methvin
d79c036ad6 Update release script for sourcmap syntax change 2013-09-19 09:06:19 -04:00
Dave Methvin
6e630fbbb1 Revert "Fix #13983. Switch to //# for sourcemaps."
Per the discussion here:
https://code.google.com/p/chromium/issues/detail?id=256636

Thanks to the Chrome team for the quick response!

This reverts commit d53ddc90c1.
2013-07-02 16:58:20 -04:00
Dave Methvin
d53ddc90c1 Fix #13983. Switch to //# for sourcemaps.
Normally we'd avoid doing this on a patch release, but Chrome Canary is
spewing deprecation warnings already and that's generating bug tickets.
2013-07-02 09:48:40 -04:00
Dave Methvin
9cbd6898b9 Do not include the path in map references. 2013-05-24 12:37:32 -04:00
Dave Methvin
df372ad6e7 Update the map reference in each minified file.
(cherry picked from commit ebc7899ba1)
2013-05-16 23:04:38 -04:00
Dave Methvin
5e8a5f4adc build: switch from .min.gz to .zip format. 2013-05-12 21:58:53 -04:00
Chris Talkington
eaee6eae0f build: update release script to use nodejs archiver. 2013-05-12 16:40:49 -05:00
Chris Talkington
8ab32fe3ff build: correct paths so that archiving works. 2013-05-12 16:02:00 -05:00
Dave Methvin
47f56f1612 Create CDN archives in the build script. 2013-05-08 20:00:24 -04:00
Dave Methvin
caf963992d Make it easier to debug the release script. 2013-05-06 10:32:16 -04:00
Dave Methvin
f6471f4f36 Use semantic versions. 2013-04-09 08:09:26 -04:00