Skip to content

Commit ced2c04

Browse files
authored
Merge pull request #659 from arvinxx/beta
Beta
2 parents 580c32e + 941f877 commit ced2c04

File tree

15 files changed

+88
-110
lines changed

15 files changed

+88
-110
lines changed

.commitlintrc.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

.fatherrc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from 'father';
22

33
export default defineConfig({
4-
cjs: { output: 'lib' },
5-
// extraBabelPlugins: ['add-module-exports'],
4+
cjs: { output: 'lib', platform: 'browser' },
5+
extraBabelPlugins: ['add-module-exports'],
66
});

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npx --no-install commitlint --edit $1
4+
npx --no -- commitlint --edit ${1}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Arvin Xu
3+
Copyright (c) 2020 - Current Arvin Xu
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['./packages/commitlint-config/lib/index.js'],
3+
};

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
},
88
"useWorkspaces": true,
99
"version": "independent",
10-
"npmClient": "yarn"
10+
"npmClient": "pnpm"
1111
}

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"lint-staged:js": "eslint --cache --ext .js,.jsx,.ts,.tsx",
2222
"lint-styles": "stylelint",
2323
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx ",
24+
"prepare": "husky install",
2425
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
2526
"release": "multi-semantic-release",
2627
"release:local": "multi-semantic-release --no-ci",
@@ -38,15 +39,14 @@
3839
]
3940
},
4041
"devDependencies": {
41-
"@commitlint/lint": "^17",
42+
"@commitlint/cli": "^17",
4243
"@types/jest": "^29",
4344
"@types/node": "^16",
4445
"@types/semantic-release": "^17",
4546
"@types/sinon": "^10.0.0",
4647
"@umijs/max": "^4",
4748
"@umijs/test": "^4",
48-
"commitlint": "^17",
49-
"commitlint-config-gitmoji": "^2",
49+
"babel-plugin-add-module-exports": "^1",
5050
"conventional-changelog-gitmoji-config": "^1",
5151
"eslint": "^8",
5252
"father": "^4",
@@ -57,7 +57,6 @@
5757
"multi-semantic-release": "^3",
5858
"prettier": "^2.2.1",
5959
"semantic-release": "^19.0.5",
60-
"semantic-release-config-gitmoji": "^1",
6160
"ts-jest": "^29",
6261
"ts-node": "^10",
6362
"typescript": "^4.1.3"

packages/commitlint-config/CHANGELOG.md

Lines changed: 32 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,99 +1,87 @@
11
# Changelog
22

3-
## <small>2.2.7 (2023-01-01)</small>
4-
5-
* :arrow_up: chore: upgrade to father4 ([5ea649e](https://github.com/arvinxx/gitmoji-commit-workflow/commit/5ea649e))
6-
* :arrow_up: chore: upgrade to jest29 ([9aa126b](https://github.com/arvinxx/gitmoji-commit-workflow/commit/9aa126b))
7-
* :art: chore: reformat code with prettier ([809cbc9](https://github.com/arvinxx/gitmoji-commit-workflow/commit/809cbc9))
8-
* :art: chore: reformat package.json with prettier ([5176c18](https://github.com/arvinxx/gitmoji-commit-workflow/commit/5176c18))
9-
* :bookmark: chore(release): [email protected] [skip ci] ([0331f34](https://github.com/arvinxx/gitmoji-commit-workflow/commit/0331f34))
10-
* :rotating_light: chore: fix lint ([647e88e](https://github.com/arvinxx/gitmoji-commit-workflow/commit/647e88e))
11-
3+
## commitlint-config-gitmoji [2.2.8-beta.3](https://github.com/arvinxx/gitmoji-commit-workflow/compare/commitlint-config-gitmoji@[email protected]) (2023-01-01)
124

5+
### 🐛 Bug Fixes
136

7+
- **commitlint-config**: upgrade header-max-length config in commitlint ([e59891f](https://github.com/arvinxx/gitmoji-commit-workflow/commit/e59891f))
148

9+
## commitlint-config-gitmoji [2.2.8-beta.2](https://github.com/arvinxx/gitmoji-commit-workflow/compare/commitlint-config-gitmoji@[email protected]) (2023-01-01)
1510

1611
### Dependencies
1712

18-
* **commitlint-plugin-gitmoji:** upgraded to 2.2.1
13+
- **commitlint-plugin-gitmoji:** upgraded to 2.2.2-beta.1
1914

20-
## <small>2.2.7-beta.1 (2022-12-24)</small>
21-
22-
* :arrow_up: chore: upgrade to father4 ([5ea649e](https://github.com/arvinxx/gitmoji-commit-workflow/commit/5ea649e))
23-
* :arrow_up: chore: upgrade to jest29 ([9aa126b](https://github.com/arvinxx/gitmoji-commit-workflow/commit/9aa126b))
24-
* :art: chore: reformat code with prettier ([809cbc9](https://github.com/arvinxx/gitmoji-commit-workflow/commit/809cbc9))
25-
* :art: chore: reformat package.json with prettier ([5176c18](https://github.com/arvinxx/gitmoji-commit-workflow/commit/5176c18))
26-
* :rotating_light: chore: fix lint ([647e88e](https://github.com/arvinxx/gitmoji-commit-workflow/commit/647e88e))
15+
## commitlint-config-gitmoji [2.2.8-beta.1](https://github.com/arvinxx/gitmoji-commit-workflow/compare/[email protected]@2.2.8-beta.1) (2023-01-01)
2716

17+
### 🐛 Bug Fixes
2818

19+
- fix missing module.exports when migration to father4 ([2da44fd](https://github.com/arvinxx/gitmoji-commit-workflow/commit/2da44fd))
2920

21+
## <small>2.2.7 (2023-01-01)</small>
3022

23+
- :arrow_up: chore: upgrade to father4 ([5ea649e](https://github.com/arvinxx/gitmoji-commit-workflow/commit/5ea649e))
24+
- :arrow_up: chore: upgrade to jest29 ([9aa126b](https://github.com/arvinxx/gitmoji-commit-workflow/commit/9aa126b))
25+
- :art: chore: reformat code with prettier ([809cbc9](https://github.com/arvinxx/gitmoji-commit-workflow/commit/809cbc9))
26+
- :art: chore: reformat package.json with prettier ([5176c18](https://github.com/arvinxx/gitmoji-commit-workflow/commit/5176c18))
27+
- :bookmark: chore(release): [email protected] [skip ci] ([0331f34](https://github.com/arvinxx/gitmoji-commit-workflow/commit/0331f34))
28+
- :rotating_light: chore: fix lint ([647e88e](https://github.com/arvinxx/gitmoji-commit-workflow/commit/647e88e))
3129

3230
### Dependencies
3331

34-
* **commitlint-plugin-gitmoji:** upgraded to 2.2.1-beta.1
32+
- **commitlint-plugin-gitmoji:** upgraded to 2.2.1
3533

36-
## commitlint-config-gitmoji [2.2.6](https://github.com/arvinxx/gitmoji-commit-workflow/compare/[email protected]@2.2.6) (2022-10-09)
34+
## <small>2.2.7-beta.1 (2022-12-24)</small>
3735

36+
- :arrow_up: chore: upgrade to father4 ([5ea649e](https://github.com/arvinxx/gitmoji-commit-workflow/commit/5ea649e))
37+
- :arrow_up: chore: upgrade to jest29 ([9aa126b](https://github.com/arvinxx/gitmoji-commit-workflow/commit/9aa126b))
38+
- :art: chore: reformat code with prettier ([809cbc9](https://github.com/arvinxx/gitmoji-commit-workflow/commit/809cbc9))
39+
- :art: chore: reformat package.json with prettier ([5176c18](https://github.com/arvinxx/gitmoji-commit-workflow/commit/5176c18))
40+
- :rotating_light: chore: fix lint ([647e88e](https://github.com/arvinxx/gitmoji-commit-workflow/commit/647e88e))
3841

42+
### Dependencies
3943

44+
- **commitlint-plugin-gitmoji:** upgraded to 2.2.1-beta.1
4045

46+
## commitlint-config-gitmoji [2.2.6](https://github.com/arvinxx/gitmoji-commit-workflow/compare/[email protected]@2.2.6) (2022-10-09)
4147

4248
### Dependencies
4349

44-
* **@gitmoji/parser-opts:** upgraded to 1.3.1
50+
- **@gitmoji/parser-opts:** upgraded to 1.3.1
4551

4652
## commitlint-config-gitmoji [2.2.6-beta.1](https://github.com/arvinxx/gitmoji-commit-workflow/compare/[email protected]@2.2.6-beta.1) (2022-10-09)
4753

48-
49-
50-
51-
5254
### Dependencies
5355

54-
* **@gitmoji/parser-opts:** upgraded to 1.3.1-beta.1
56+
- **@gitmoji/parser-opts:** upgraded to 1.3.1-beta.1
5557

5658
## commitlint-config-gitmoji [2.2.5](https://github.com/arvinxx/gitmoji-commit-workflow/compare/[email protected]@2.2.5) (2021-05-04)
5759

58-
5960
### 🐛 Bug Fixes
6061

61-
* fix dependency error ([def947f](https://github.com/arvinxx/gitmoji-commit-workflow/commit/def947f))
62-
63-
64-
65-
62+
- fix dependency error ([def947f](https://github.com/arvinxx/gitmoji-commit-workflow/commit/def947f))
6663

6764
### Dependencies
6865

69-
* **commitlint-plugin-gitmoji:** upgraded to 2.2.0
66+
- **commitlint-plugin-gitmoji:** upgraded to 2.2.0
7067

7168
## commitlint-config-gitmoji [2.2.5-beta.3](https://github.com/arvinxx/gitmoji-commit-workflow/compare/commitlint-config-gitmoji@[email protected]) (2021-05-04)
7269

73-
74-
75-
76-
7770
### Dependencies
7871

79-
* **commitlint-plugin-gitmoji:** upgraded to 2.2.0-beta.3
72+
- **commitlint-plugin-gitmoji:** upgraded to 2.2.0-beta.3
8073

8174
## commitlint-config-gitmoji [2.2.5-beta.2](https://github.com/arvinxx/gitmoji-commit-workflow/compare/commitlint-config-gitmoji@[email protected]) (2021-05-02)
8275

83-
8476
### 🐛 Bug Fixes
8577

86-
* fix dependency error ([def947f](https://github.com/arvinxx/gitmoji-commit-workflow/commit/def947f))
78+
- fix dependency error ([def947f](https://github.com/arvinxx/gitmoji-commit-workflow/commit/def947f))
8779

8880
## commitlint-config-gitmoji [2.2.5-beta.1](https://github.com/arvinxx/gitmoji-commit-workflow/compare/[email protected]@2.2.5-beta.1) (2021-05-02)
8981

90-
91-
92-
93-
9482
### Dependencies
9583

96-
* **commitlint-plugin-gitmoji:** upgraded to 2.2.0-beta.2
84+
- **commitlint-plugin-gitmoji:** upgraded to 2.2.0-beta.2
9785

9886
## commitlint-config-gitmoji [2.2.4-beta.1](https://github.com/arvinxx/gitmoji-commit-workflow/compare/[email protected]@2.2.4-beta.1) (2021-05-02)
9987

packages/commitlint-config/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
[download-image]: https://img.shields.io/npm/dm/commitlint-config-gitmoji.svg
1212
[download-url]: https://npmjs.org/package/commitlint-config-gitmoji
1313

14-
Shareable `commitlint` config enforcing gitmoji commit message styles.
15-
Use with [commitlint](https://github.com/marionebl/commitlint) .
14+
Shareable `commitlint` config enforcing gitmoji commit message styles. Use with [commitlint](https://github.com/marionebl/commitlint) .
1615

1716
## Demo
1817

@@ -32,16 +31,16 @@ npm i -D commitlint-config-gitmoji commitlint
3231
or
3332

3433
```
35-
# use yarn
36-
yarn add -D commitlint-config-gitmoji commitlint
34+
# use pnpm
35+
pnpm i -D commitlint-config-gitmoji commitlint
3736
```
3837

3938
### Config
4039

4140
Add commitlint config for Gitmoji
4241

4342
```sh
44-
echo "module.exports = {extends: ['gitmoji']};" > .commitlintrc.js
43+
echo "module.exports = {extends: ['gitmoji']};" > commitlint.config.js
4544
```
4645

4746
## Commit style
@@ -154,7 +153,7 @@ echo ":art: some message" # passes
154153

155154
- **condition**: `header` has `value` or less characters
156155
- **rule**: `always`
157-
- **value**: `72`
156+
- **value**: `100`
158157

159158
```sh
160159
echo ":art: some message that is way too long and breaks the line max-length by several characters" # fails

packages/commitlint-config/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commitlint-config-gitmoji",
3-
"version": "2.2.7",
3+
"version": "2.2.8-beta.3",
44
"description": "shareable commitlint config enforcing gitmoji commit message",
55
"keywords": [
66
"commitlint",
@@ -9,7 +9,7 @@
99
"commit",
1010
"git"
1111
],
12-
"homepage": "https://github.com/arvinxx/gitmoji-commit-workflow/tree/master/packages/config",
12+
"homepage": "https://github.com/arvinxx/gitmoji-commit-workflow/tree/master/packages/commitlint-config",
1313
"repository": {
1414
"type": "git",
1515
"url": "https://github.com/arvinxx/gitmoji-commit-workflow.git"
@@ -31,7 +31,7 @@
3131
"@commitlint/types": "^17",
3232
"@gitmoji/commit-types": "1.1.5",
3333
"@gitmoji/parser-opts": "1.3.1",
34-
"commitlint-plugin-gitmoji": "2.2.1"
34+
"commitlint-plugin-gitmoji": "2.2.2-beta.1"
3535
},
3636
"publishConfig": {
3737
"access": "public",

0 commit comments

Comments
 (0)