This repository was archived by the owner on Jul 6, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +2785
-90
lines changed Expand file tree Collapse file tree 4 files changed +2785
-90
lines changed Original file line number Diff line number Diff line change 100
100
- Add Indonesian locale: [ ` 79ec271 ` ] ( https://github.com/egoist/vue-timeago/commit/79ec271 ) ([ #36 ] ( https://github.com/egoist/vue-timeago/issues/36 ) )
101
101
102
102
[ ...full changes] ( https://github.com/egoist/vue-timeago/compare/v3.1.3...v3.1.4 )
103
-
Original file line number Diff line number Diff line change @@ -17,17 +17,21 @@ jobs:
17
17
# Download and cache dependencies
18
18
- restore_cache :
19
19
keys :
20
- - v1-dependencies-{{ checksum "package-lock.json " }}
20
+ - v1-dependencies-{{ checksum "yarn.lock " }}
21
21
# fallback to using the latest cache if no exact match is found
22
22
- v1-dependencies-
23
23
24
- - run : npm install
24
+ - run : yarn
25
25
26
26
- save_cache :
27
27
paths :
28
28
- node_modules
29
- key : v1-dependencies-{{ checksum "package-lock.json " }}
29
+ key : v1-dependencies-{{ checksum "yarn.lock " }}
30
30
31
31
- run :
32
32
name : test
33
- command : npm run test
33
+ command : yarn test
34
+
35
+ - run :
36
+ name : release
37
+ command : yarn semantic-release
Original file line number Diff line number Diff line change 31
31
],
32
32
"devDependencies" : {
33
33
"bili" : " ^4.5.2" ,
34
+ "commitizen" : " ^3.0.7" ,
35
+ "cz-conventional-changelog" : " ^2.1.0" ,
36
+ "eslint-config-prettier" : " ^4.1.0" ,
34
37
"eslint-config-rem" : " ^4.0.0" ,
38
+ "eslint-plugin-prettier" : " ^3.0.1" ,
35
39
"gh-pages" : " ^1.0.0" ,
40
+ "husky" : " ^1.3.1" ,
41
+ "lint-staged" : " ^8.1.5" ,
36
42
"poi" : " ^12.5.6" ,
37
43
"postcss-nested" : " ^4.1.2" ,
44
+ "prettier" : " ^1.16.4" ,
45
+ "semantic-release" : " ^15.13.3" ,
38
46
"vue" : " ^2.6.9" ,
39
47
"vue-template-compiler" : " ^2.6.9" ,
40
48
"xo" : " ^0.24.0"
41
49
},
42
50
"xo" : {
43
- "extends" : " rem" ,
51
+ "extends" : [
52
+ " rem" ,
53
+ " plugin:prettier/recommended"
54
+ ],
44
55
"ignores" : [
45
56
" example/**"
46
57
]
47
58
},
48
59
"dependencies" : {
49
60
"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
+ }
50
84
}
51
85
}
You can’t perform that action at this time.
0 commit comments