Skip to content

Commit

Permalink
Build: Remove publication to Bower for future releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Jun 12, 2024
1 parent 8f25f26 commit 46784a5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 41 deletions.
4 changes: 2 additions & 2 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ git show
```
node build/build-release.js @VERSION
```
This script does not need any credentials or permissions, and may be run in a container that can only read-write the current directory. This will edit `package.json` and `bower.json`, then execute `npm run build` to generate the release artifacts, then create a local clone of [jquery/codeorigin.jquery.com](https://github.com/jquery/codeorigin.jquery.com), and prepare a local commit for you to later push.
This script does not need any credentials or permissions, and may be run in a container that can only read-write the current directory. This will edit `package.json`, then execute `npm run build` to generate the release artifacts, then create a local clone of [jquery/codeorigin.jquery.com](https://github.com/jquery/codeorigin.jquery.com), and prepare a local commit for you to later push.

Review the release artifacts, compared to the previous release.
```
Expand All @@ -78,7 +78,7 @@ git show

5. Publish to GitHub.<br>⚠️ Do not push to the main branch!
```
git add -f package.json bower.json qunit/
git add -f package.json qunit/
git commit -m "Release @VERSION"
git tag -s "@VERSION" -m "Release @VERSION"
git push --tags
Expand Down
16 changes: 0 additions & 16 deletions bower.json

This file was deleted.

15 changes: 0 additions & 15 deletions build/build-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,6 @@ const Repo = {
if (typeof version !== 'string' || !/^\d+\.\d+\.\d+$/.test(version)) {
throw new Error('Invalid or missing version argument');
}
{
const file = 'bower.json';
console.log(`Updating ${file}...`);
const filePath = path.join(__dirname, '..', file);
const json = fs.readFileSync(filePath, 'utf8');
const packageIndentation = json.match(/\n([\t\s]+)/)[1];
const data = JSON.parse(json);

data.version = version;

fs.writeFileSync(
filePath,
JSON.stringify(data, null, packageIndentation) + '\n'
);
}
{
const file = 'package.json';
console.log(`Updating ${file}...`);
Expand Down
3 changes: 1 addition & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,9 @@ ok 1 add > two numbers

These are the officially supported [release channels](intro.md#release-channels) for QUnit:

* CDN: [`qunit-2.21.0.js`](https://code.jquery.com/qunit/qunit-2.21.0.js) and [`qunit-2.21.0.css`](https://code.jquery.com/qunit/qunit-2.21.0.css)
* Download: [`qunit-2.21.0.js`](https://code.jquery.com/qunit/qunit-2.21.0.js) and [`qunit-2.21.0.css`](https://code.jquery.com/qunit/qunit-2.21.0.css)
* npm: `npm install --save-dev qunit`
* Yarn: `yarn add --dev qunit`
* Bower: `bower install --save-dev qunit`

---

Expand Down
8 changes: 2 additions & 6 deletions docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,9 @@ These are the officially supported download channels for QUnit releases:

* Bower:

Using [Bower](https://bower.io/):
QUnit 1.x and QUnit 2.x releases were published to [Bower](https://bower.io/), and remain available there.

```bash
bower install --save-dev qunit
```

Then reference `bower_components/qunit/qunit/qunit.css` and `bower_components/qunit/qunit/qunit.js` in your HTML.
For QUnit 3.0 and later, either download and check-in the JS and CSS file directly (e.g. using the curl command above), or install the `qunit` package from npm as a dev dependency.

---

Expand Down

0 comments on commit 46784a5

Please sign in to comment.