Skip to content

Commit 6574193

Browse files
authored
Merge pull request #32 from ParkerM/develop
v0.0.4
2 parents abc7469 + a0d387c commit 6574193

File tree

15 files changed

+1584
-1496
lines changed

15 files changed

+1584
-1496
lines changed

.commitlintrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
extends:
2+
- "@commitlint/config-conventional"

.eslintrc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ plugins:
88
extends:
99
- plugin:no-unsanitized/DOM
1010
- plugin:@typescript-eslint/recommended
11-
- prettier/@typescript-eslint
1211
- plugin:prettier/recommended
1312
rules:
1413
comma-dangle:

.github/workflows/commitlint.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Lint Commit Messages
2+
3+
on: pull_request
4+
5+
jobs:
6+
commitlint:
7+
runs-on: ubuntu-20.04
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
- uses: wagoid/commitlint-github-action@v2
14+
with:
15+
configFile: .commitlintrc.yml

.github/workflows/main.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ on: push
44

55
jobs:
66
lint:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-20.04
88

99
steps:
1010
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v1
11+
- uses: actions/setup-node@v2
1212
with:
13-
node-version: '12.x'
13+
node-version: '14'
1414
- name: Install dependencies
1515
run: yarn --frozen-lockfile
1616

@@ -21,15 +21,44 @@ jobs:
2121
run: yarn run lint:web-ext
2222

2323
test:
24-
runs-on: ubuntu-latest
24+
runs-on: ubuntu-20.04
2525

2626
steps:
2727
- uses: actions/checkout@v2
28-
- uses: actions/setup-node@v1
28+
- uses: actions/setup-node@v2
2929
with:
30-
node-version: '12.x'
30+
node-version: '14'
3131
- name: Install dependencies
3232
run: yarn --frozen-lockfile
3333

3434
- name: Jest tests
3535
run: yarn run test:coverage
36+
37+
- name: Upload coverage artifacts
38+
if: ${{ github.ref == 'refs/heads/develop' }}
39+
uses: actions/upload-artifact@v2
40+
with:
41+
name: coverage-report
42+
path: coverage
43+
44+
report:
45+
if: ${{ github.ref == 'refs/heads/develop' }}
46+
needs: test
47+
runs-on: ubuntu-20.04
48+
49+
steps:
50+
- name: Download coverage report
51+
uses: actions/download-artifact@v2
52+
with:
53+
name: coverage-report
54+
path: coverage
55+
56+
- name: Generate coverage badge
57+
run: npx make-coverage-badge --output-path ./coverage/lcov-report/badge.svg
58+
59+
- name: Publish coverage report
60+
uses: peaceiris/actions-gh-pages@v3
61+
with:
62+
github_token: ${{ secrets.GITHUB_TOKEN }}
63+
publish_dir: ./coverage/lcov-report
64+
destination_dir: coverage

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ on:
88
jobs:
99
release:
1010
name: Build Release
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-20.04
1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: actions/setup-node@v1
14+
- uses: actions/setup-node@v2
1515
with:
16-
node-version: '12.x'
16+
node-version: '14'
1717
- name: Install dependencies
1818
run: yarn --frozen-lockfile
1919

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn commitlint --edit

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4+
5+
### [0.0.4](https://github.com/ParkerM/close-tabs-to-left/compare/v0.0.3...v0.0.4) (2021-05-21)
6+
7+
**Note:** Version bump for initial CHANGELOG.md and conventional-changelog integration
8+
9+
10+
### [0.0.3](https://github.com/ParkerM/close-tabs-to-left/compare/v0.0.2...v0.0.3) (2021-02-23)
11+
12+
#### Features
13+
* Basic i18n support
14+
15+
#### Bug Fixes
16+
* Pinned tabs are now ignored
17+
18+
19+
### [0.0.2](https://github.com/ParkerM/close-tabs-to-left/compare/v0.0.1...v0.0.2) (2020-06-13)
20+
21+
#### Features
22+
* The menu item is now greyed-out when there are no tabs to the left
23+
* Removed tacky icon from menu item
24+
25+
26+
### [0.0.1](https://github.com/ParkerM/close-tabs-to-left/tree/v0.0.1) (2020-03-18)
27+
28+
#### Features
29+
* Initial release

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# close-tabs-to-left
22
<p align="left">
33
<a href="https://github.com/ParkerM/close-tabs-to-left/actions"><img alt="CI status" src="https://github.com/ParkerM/close-tabs-to-left/workflows/CI/badge.svg"></a>
4+
<a href="https://parkerm.github.io/close-tabs-to-left/coverage"><img alt="Coverage report" src="https://parkerm.github.io/close-tabs-to-left/coverage/badge.svg"></a>
45
</p>
56

67
Firefox extension that adds "Close Tabs to the Left" context menu entry.
@@ -9,8 +10,8 @@ Firefox extension that adds "Close Tabs to the Left" context menu entry.
910
See [package.json](./package.json) for more info on the yarn scripts mentioned here.
1011

1112
### Requirements
12-
- Node.js 12+
13-
- yarn 1.2+
13+
- Node.js 14
14+
- yarn 1.22+
1415

1516
### Install
1617
```bash
@@ -37,6 +38,18 @@ yarn start
3738
```
3839
See `start:dev-es` in [package.json](./package.json) for a working configuration.
3940
41+
### Generate changelog
42+
Generates and commits a changelog and version bumps based on conventional commit rules.
43+
44+
```bash
45+
yarn run stage
46+
```
47+
48+
The following scripts are also provided to override automatic semver detection:
49+
* `yarn run stage:patch`
50+
* `yarn run stage:minor`
51+
* `yarn run stage:major`
52+
4053
### Build and package release
4154
Outputs a production-ready build artifact to `./web-ext-artifacts`.
4255

jest.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,13 @@ module.exports = {
55
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.ts$',
66
moduleFileExtensions: ['ts', 'js'],
77
setupFilesAfterEnv: ['./src/setupTests.ts'],
8+
coverageReporters: [
9+
// defaults
10+
'json',
11+
'lcov',
12+
'text',
13+
'clover',
14+
// required for make-coverage-badge
15+
'json-summary',
16+
],
817
};

0 commit comments

Comments
 (0)