Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit aeb3d55

Browse files
committed
add semantic-release and prettier
1 parent 13c4b15 commit aeb3d55

File tree

4 files changed

+2785
-90
lines changed

4 files changed

+2785
-90
lines changed

CHANGELOG.md renamed to CHANGELOG-OLD.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,3 @@
100100
- Add Indonesian locale: [`79ec271`](https://github.com/egoist/vue-timeago/commit/79ec271) ([#36](https://github.com/egoist/vue-timeago/issues/36))
101101

102102
[...full changes](https://github.com/egoist/vue-timeago/compare/v3.1.3...v3.1.4)
103-

circle.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,21 @@ jobs:
1717
# Download and cache dependencies
1818
- restore_cache:
1919
keys:
20-
- v1-dependencies-{{ checksum "package-lock.json" }}
20+
- v1-dependencies-{{ checksum "yarn.lock" }}
2121
# fallback to using the latest cache if no exact match is found
2222
- v1-dependencies-
2323

24-
- run: npm install
24+
- run: yarn
2525

2626
- save_cache:
2727
paths:
2828
- node_modules
29-
key: v1-dependencies-{{ checksum "package-lock.json" }}
29+
key: v1-dependencies-{{ checksum "yarn.lock" }}
3030

3131
- run:
3232
name: test
33-
command: npm run test
33+
command: yarn test
34+
35+
- run:
36+
name: release
37+
command: yarn semantic-release

package.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,55 @@
3131
],
3232
"devDependencies": {
3333
"bili": "^4.5.2",
34+
"commitizen": "^3.0.7",
35+
"cz-conventional-changelog": "^2.1.0",
36+
"eslint-config-prettier": "^4.1.0",
3437
"eslint-config-rem": "^4.0.0",
38+
"eslint-plugin-prettier": "^3.0.1",
3539
"gh-pages": "^1.0.0",
40+
"husky": "^1.3.1",
41+
"lint-staged": "^8.1.5",
3642
"poi": "^12.5.6",
3743
"postcss-nested": "^4.1.2",
44+
"prettier": "^1.16.4",
45+
"semantic-release": "^15.13.3",
3846
"vue": "^2.6.9",
3947
"vue-template-compiler": "^2.6.9",
4048
"xo": "^0.24.0"
4149
},
4250
"xo": {
43-
"extends": "rem",
51+
"extends": [
52+
"rem",
53+
"plugin:prettier/recommended"
54+
],
4455
"ignores": [
4556
"example/**"
4657
]
4758
},
4859
"dependencies": {
4960
"date-fns": "^1.29.0"
61+
},
62+
"husky": {
63+
"hooks": {
64+
"pre-commit": "lint-staged"
65+
}
66+
},
67+
"lint-staged": {
68+
"*.{ts,json,md}": [
69+
"prettier --write",
70+
"git add"
71+
],
72+
"src/*.js": [
73+
"xo --fix",
74+
"git add"
75+
]
76+
},
77+
"release": {
78+
"branch": "master"
79+
},
80+
"config": {
81+
"commitizen": {
82+
"path": "./node_modules/cz-conventional-changelog"
83+
}
5084
}
5185
}

0 commit comments

Comments
 (0)