aboutsummaryrefslogtreecommitdiffstats
path: root/build/release.js
Commit message (Collapse)AuthorAgeFilesLines
* Release: migrate release process to release-itTimmy Willison2024-07-111-96/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *Authors* - Checking and updating authors has been migrated to a custom script in the repo *Changelog* - changelogplease is no longer maintained - generate changelog in markdown for GitHub releases - generate changelog in HTML for blog posts - generate contributors list in HTML for blog posts *dist* - clone dist repo, copy files, and commit/push - commit tag with dist files on main branch; remove dist files from main branch after release *cdn* - clone cdn repo, copy files, and commit/push - create versioned and unversioned copies in cdn/ - generate md5 sums and archives for Google and MSFT *build* - implement reproducible builds and verify release builds * uses the last modified date for the latest commit * See https://reproducible-builds.org/ - the verify workflow also ensures all files were properly published to the CDN and npm *docs* - the new release workflow is documented at build/release/README.md *misc* - now that we don't need the jquery-release script and now that we no longer need to build on Node 10, we can use ESM in all files in the build folder - move dist wrappers to "wrappers" folders for easy removal of all built files - limit certain workflows to the main repo (not forks) - version in package.json has been set to beta.1 so that the next release will be beta.2 - release-it added the `preReleaseBase` option and we now always set it to `1` in the npm script. This is a noop for stable releases. Fixes jquery/jquery-release#114 Closes gh-5512
* Build: migrate more uses of fs.promises; use node: protocolTimmy Willison2024-03-111-1/+1
| | | | Ref gh-5440
* Release: add factory files to release distributionTimmy Willison2024-02-081-1/+5
| | | | Fixes gh-5411 Close gh-5412
* Release: use buildDefaultFiles directly and pass versionTimmy Willison2024-02-061-3/+4
| | | | | | | | - also add the ability to pass VERSION in env to test final builds - adjust sha regex to account for lack of shas - set the version on the dist package.json Close gh-5408
* Release: only published versioned files to cdnTimmy Willison2024-02-051-0/+3
| | | Close gh-5406
* Release: update build command in Release.generateArtifactsTimmy Willison2024-01-311-1/+1
| | | Close gh-5399
* Build: Add `exports` to package.json, export slim & esm buildsMichał Gołębiowski-Owczarek2023-07-101-11/+12
| | | | | | | | | | | | | | | | | | | | Summary of the changes: * define the `exports` field in `package.json`; `jQuery` & `$` are also exported as named exports in ESM builds now * declare `"type": "module"` globally except for the `build` folder * add the `--esm` option to `grunt custom`, generating jQuery as an ECMAScript module into the `dist-module` folder * expand `node_smoke_tests` to test the slim & ESM builds and their various combinations; also, test both jQuery loaded via a path to the file as well as from module specifiers that should be parsed via the `exports` feature * add details about ESM usage to the release package README * run `compare_size` on all built minified files; don't run it anymore on unminified files where they don't provide lots of value * remove the remove_map_comment task; SWC doesn't insert the `//# sourceMappingURL=` pragma by default so there's nothing to strip Fixes gh-4592 Closes gh-5255
* Build: Drop individual AMD modulesMichał Gołębiowski-Owczarek2023-06-271-3/+1
| | | | | | | | | | With this change, jQuery build no longer generates the `amd` directory with AMD modules transpiled from source `src` ECMAScript Modules. To use individual jQuery modules from source, ESM is now required. Note that this DOES NOT affect the main `"jquery"` AMD module defined by built jQuery files; those remain supported. Closes gh-5276
* Release: remove the need to install grunt globallyTimmy Willison2021-03-011-3/+3
|
* Release: upgrade release dependenciesTimmy Willison2021-03-011-4/+3
| | | | - Remove unused npm dependency
* Release: Remove an unused chalk dependencyMichał Gołębiowski-Owczarek2020-05-181-2/+1
| | | | | Chalk was used for a Sizzle version check that's no longer there on `master`. Closes gh-4712
* Release: Use an in-repository dist README fixtureMichał Gołębiowski-Owczarek2020-03-021-16/+16
| | | | | | | | | | 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
* Build: Create a `grunt custom:slim` alias for the Slim build (#4578)Michał Gołębiowski-Owczarek2020-01-071-1/+1
| | | Closes gh-4578
* Build: Auto-convert sources to AMDMichał Gołębiowski-Owczarek2019-12-091-5/+10
| | | | | | | | | | | | | | | jQuery source has been migrated in gh-4541 from AMD to ES modules. To maintain support for consumers of our AMD modules, this commits adds a task transpiling the ES modules sources in `src/` to AMD in `amd/`. A "Load with AMD" checkbox was also restored to the QUnit setup. Note that, contrary to jQuery 3.x, AMD files need to be generated via `grunt amd` or `grunt` as sources are not authored in ECMAScript modules. To achieve a similar no-compile experience during jQuery 4.x testing, use the new "Load as modules" checkbox which works in all supported browsers except for IE & Edge (the legacy, EdgeHTML-based one). Ref gh-4541 Closes gh-4554
* Build: Require strict mode in Node.js scripts via ESLintMichał Gołębiowski-Owczarek2019-10-091-0/+2
| | | | | | | | 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
* Build: Stop copying src/core.js to dist on releaseMichał Gołębiowski-Owczarek2019-10-041-4/+7
| | | | | | | | 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
* Selector: Inline Sizzle into the selector moduleMichał Gołębiowski-Owczarek2019-07-291-9/+0
| | | | | | | | | | | | | | | | | | This commit removes Sizzle from jQuery, inlining its code & removing obsolete workarounds where applicable. The selector-native module has been removed. Further work on the selector module may decrease the size enough that it will no longer be necessary. If it turns out it's still useful, we'll reinstate it but the code will look different anyway as we'll want to share as much code as possible with the existing selector module. 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 commit reduces the gzipped jQuery size by 1460 bytes compared to master. Closes gh-4395
* Release: update release dependenciesTimmy Willison2017-03-151-4/+4
|
* Build: Keep deprecated module in slimTimmy Willison2017-02-131-1/+1
| | | | | Fixes gh-3237 Close gh-3533
* Build: ESLint detailsOleg Gaidarenko2016-06-111-0/+5
| | | | | | Use eslint pragmas, fix new errors, etc Closes gh-3148
* Release: remove extraneous files from dist during releaseTimmy Willison2016-05-131-1/+1
| | | | | Fixes gh-3094 Close gh-3116
* Release: set version in source for releasesTimmy Willison2016-03-141-1/+13
| | | | | Fixes gh-2979 Close gh-2981
* Release: push a custom slim build to the CDNTimmy Willison2015-11-161-2/+14
| | | | | Fixes gh-2653 Close gh-2711
* Release: use chalk instead of colors for terminal colorsTimmy Willison2015-11-121-1/+2
|
* Build: Update jscs and lint filesOleg Gaidarenko2015-09-071-3/+4
| | | | Fixes gh-2056
* Release: fix CDN archive creationTimmy Willison2015-01-291-2/+4
| | | | Fixes gh-1940
* Release: dist can be run during a testTimmy Willison2015-01-291-6/+0
|
* Release: bower.json is actually generated from scratchTimmy Willison2015-01-291-4/+0
|
* Release: Distribute files to distribution repoTimmy Willison2015-01-291-133/+30
| | | | | | Fixes gh-1869 Fixes gh-1673 Fixes gh-2045
* Release: Remove copying of jquery-latest filesDave Methvin2015-01-061-29/+18
|
* Build: update grunt-jscs-checker and pass with the new rulesTimmy Willison2014-07-171-1/+3
|
* Release: ensure Sizzle is the latest tagTimmy Willison2014-05-231-0/+8
| | | | Fixes #14915
* Build: Update release script for new jquery-release APIScott González2014-03-211-7/+6
| | | | Closes gh-1544
* Release: Instantiate a zip archiver, run archivers asyncTimmy Willison2014-01-231-9/+10
|
* Release: Publish to npmJörn Zaefferer2014-01-101-0/+1
| | | | Closes gh-1479
* Release script: _tracMilestone -> tracMilestoneTimmy Willison2013-12-211-1/+1
|
* Release script: minor formatting issue.Timmy Willison2013-12-201-1/+1
|
* Release script: jquery-release integrationTimmy Willison2013-12-201-380/+142
|
* Manage bower dependencies with grunt-bowercopyTimmy Willison2013-12-061-14/+3
| | | | | | | | | | | | 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.
* Release script: Add dist files in multiple commits for a clean final commit ↵Timmy Willison2013-11-151-3/+15
| | | | with a small diff
* Release script: Add .npmignore and keep .gitignore when creating the tagTimmy Willison2013-11-151-20/+3
|
* Release script: create tag after building CDN filesTimmy Willison2013-11-151-5/+6
|
* Update sizzle location in release scriptTimmy Willison2013-11-141-1/+1
|
* Modify release script to create a headless tag for bower and publish to NPMTimmy Willison2013-11-131-50/+158
|
* Fix #14415. Remove the source map comment in the release script. Close gh-1424.Michał Gołębiowski2013-11-101-5/+3
|
* Add bower install script and release scripts to jshint and pass lintTimmy Willison2013-10-071-6/+6
|
* Update release script for sourcmap syntax changeDave Methvin2013-09-191-4/+4
|
* Revert "Fix #13983. Switch to //# for sourcemaps."Dave Methvin2013-07-021-3/+3
| | | | | | | | | 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 d53ddc90c1f119fb9148a553443ef3fbc3f3cc99.
* Fix #13983. Switch to //# for sourcemaps.Dave Methvin2013-07-021-3/+3
| | | | | Normally we'd avoid doing this on a patch release, but Chrome Canary is spewing deprecation warnings already and that's generating bug tickets.
* Do not include the path in map references.Dave Methvin2013-05-241-4/+5
|