1
1
jobs :
2
- Issue template :
2
+ issue template :
3
3
name : Setup github issue templates
4
4
paths : .neo/**/assets/templates/ISSUE_TEMPLATE/*.md
5
5
steps :
6
6
- name : Issue templates
7
7
uses : copy
8
8
with :
9
9
output : .github/ISSUE_TEMPLATE
10
- PR template :
10
+ pr template :
11
11
name : Setup github pr templates
12
12
paths : .neo/**/assets/templates/*.md
13
13
steps :
14
14
- name : PR templates
15
15
uses : copy
16
16
with :
17
17
output : .github
18
- CI :
19
- name : Setup ci workflow
18
+ workflows :
19
+ name : Setup workflow
20
20
paths : .neo/**/assets/workflows/*
21
21
steps :
22
22
- name : CI Workflows
23
23
uses : copy
24
24
with :
25
25
output : .github/workflows
26
- Lint :
26
+ lint :
27
27
name : Setup eslint
28
28
paths : .neo/**/assets/eslint/.*
29
29
steps :
30
30
- name : ESLint
31
31
uses : copy
32
32
33
- Setup Pkg :
33
+ setup package :
34
34
paths : package.json
35
35
name : Setup lint config
36
36
steps :
@@ -52,57 +52,84 @@ jobs:
52
52
pairs :
53
53
- path : " lint-staged"
54
54
value :
55
- " **/**/*.{js,ts,tsx,vue,json} " : ["eslint --fix"]
55
+ " **/**/*.{js,ts,tsx,vue,json,yml,yaml } " : ["eslint --fix"]
56
56
57
57
- name : Add lint pkgs
58
58
uses : json-editor
59
59
with :
60
60
pairs :
61
61
- path : " devDependencies.typescript"
62
- value : " ^4"
62
+ value : " ^4.6.4 "
63
63
- path : " devDependencies.eslint"
64
- value : " ^8"
65
- - path : " devDependencies.prettier"
66
- value : " latest"
64
+ value : " ^8.32.0"
67
65
- path : " devDependencies.@aiou/eslint-config"
68
- value : " latest "
66
+ value : " ^0.10.0 "
69
67
- path : " devDependencies.lint-staged"
70
- value : " latest "
68
+ value : " ^13.1.0 "
71
69
72
70
- name : Add changeset
73
71
uses : json-editor
74
72
with :
75
73
pairs :
76
74
- path : " devDependencies.@changesets/cli"
77
- value : " latest "
75
+ value : " ^2.26.0 "
78
76
79
77
- name : Add husky
80
78
uses : json-editor
81
79
with :
82
80
pairs :
83
81
- path : " devDependencies.husky"
84
- value : " latest "
82
+ value : " ^8.0.3 "
85
83
86
84
- name : Add lint:fix
87
85
uses : json-editor
88
86
with :
89
87
pairs :
90
88
- path : " scripts.lint:fix"
91
89
value : " eslint . --fix"
92
- Changeset :
90
+ changeset :
93
91
name : Setup Changeset
92
+ paths : .neo/**/assets/changeset/*
94
93
steps :
95
94
- name : Setup changeset
96
- run : pnpx @changesets/cli init
95
+ uses : copy
97
96
with :
98
- quiet : true
97
+ output : .changeset
99
98
100
- Precommit :
101
- paths : .git
102
- name : Setup precommit
99
+ husky :
100
+ paths : .neo/**/assets/husky/**
101
+ name : Copy husky scripts
103
102
steps :
104
103
- name : Setup Husky
105
- run : pnpx husky-init --yes
106
- continue-on-error : true
104
+ uses : copy
105
+ with :
106
+ output : .husky
107
+ prepare husky :
108
+ paths : package.json
109
+ name : Prepare husky script
110
+ steps :
111
+ - name : Add husky prepare scripts
112
+ uses : json-editor
113
+ with :
114
+ pairs :
115
+ - path : " scripts.prepare"
116
+ value : " husky install"
117
+ commitizen :
118
+ paths : .git
119
+ name : Setup Commitizen
120
+ steps :
121
+ - name : Add cz-emoji
122
+ uses : json-editor
123
+ with :
124
+ pairs :
125
+ - path : " devDependencies.cz-emoji"
126
+ value : " ^1.3.1"
127
+ config commitizen :
128
+ paths : .neo/**/assets/cz-emoji/.czrc
129
+ name : Setup Commitizen
130
+ steps :
131
+ - name : Config Commitizen
132
+ uses : copy
107
133
with :
108
- quiet : true
134
+ output : .
135
+
0 commit comments