Skip to content

Commit ca578ad

Browse files
committed
feat: add husky, tslint, commitlint, changelog
1 parent 73208ac commit ca578ad

File tree

10 files changed

+2794
-211
lines changed

10 files changed

+2794
-211
lines changed

.github/workflows/test.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ name: Test
33
on:
44
push:
55
branches:
6-
- master
6+
- master
7+
pull_request:
8+
- '!master'
9+
- 'dev/**'
710

811
jobs:
912
build:
@@ -20,10 +23,11 @@ jobs:
2023
uses: actions/setup-node@v1
2124
with:
2225
node-version: ${{ matrix.node-version }}
23-
- name: npm install, build, and test
26+
- name: npm install and test
2427
run: |
2528
npm ci
26-
npm run build --if-present
29+
# npm run build --if-present
2730
npm test
31+
npm run changelog
2832
env:
2933
CI: true

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## 1.0.0 (2019-11-15)
2+
3+
* feat: 1 init project, 2 add jest, typescript; 3 add instanceof ([14e4bdc](https://github.com/Rain120/awesome-code-implementation/commit/14e4bdc))
4+
* Initial commit ([f49c21c](https://github.com/Rain120/awesome-code-implementation/commit/f49c21c))
5+
6+
7+

commitlint.config.js

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
extends: ["@commitlint/config-conventional"],
3+
rules: {
4+
"type-enum": [
5+
2,
6+
"always",
7+
[
8+
"feat",
9+
"fix",
10+
"docs",
11+
"style",
12+
"refactor",
13+
"perf",
14+
"test",
15+
"build",
16+
"ci",
17+
"chore",
18+
"revert",
19+
"config"
20+
]
21+
],
22+
"subject-full-stop": [0, "never"],
23+
"subject-case": [0, "never"],
24+
"header-max-length": [0, "always", 150]
25+
}
26+
};

0 commit comments

Comments
 (0)