Commit 71a127a
authored
refactor: update prettier and doctoc (coder#5605)
* docs: add toc to CODE OF CONDUCT
* chore: add prettier ignore blocks to docs
* chore: update styles for Dockerfile
* refactor: separate prettier, doctoc
This does a couple things:
- update `.prettierignore`
- split `prettier` and `doctoc` commands. you can still run with `yarn
fmt`
- delete `fmt.sh` and add `doctoc.sh`
By doing so, we can run tasks in parallel in CI and we should also have
less false positives than before with `yarn fmt` locally.
* refactor: update prettier job, add doctoc
This modifies the prettier job to use actionsx/prettier. It also adds a
job for `doctoc`.
* chore: upgrade to prettier 2.7.1
* chore: pin doctoc to 2.0.0
* fixup!: add .pc to prettierignore
* feat: add --cache to prettier cmd1 parent d4707d1 commit 71a127aCopy full SHA for 71a127a
15 files changed
+88-60Lines changed: 88 additions & 60 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- .github/workflows
- ci
- dev
- release-image
- docs
Expand file treeCollapse file tree
Open diff view settings
Collapse file
.github/workflows/build.yaml
Copy file name to clipboardExpand all lines: .github/workflows/build.yaml+28-15Lines changed: 28 additions & 15 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
25 | | - |
| 25 | + |
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | 32 | |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
33 | 53 | |
| 54 | + |
34 | 55 | |
35 | 56 | |
36 | 57 | |
| 58 | + |
37 | 59 | |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
| 60 | + |
| 61 | + |
50 | 62 | |
51 | | - |
52 | | - |
| 63 | + |
| 64 | + |
| 65 | + |
53 | 66 | |
54 | 67 | |
55 | 68 | |
|
Collapse file
.prettierignore
Copy file name to clipboard+5-1Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | | - |
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
Collapse file
ci/dev/fmt.sh ci/dev/doctoc.shci/dev/fmt.sh renamed to ci/dev/doctoc.sh
Copy file name to clipboardExpand all lines: ci/dev/doctoc.sh+1-20Lines changed: 1 addition & 20 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | 7 | |
26 | 8 | |
27 | 9 | |
| ||
32 | 14 | |
33 | 15 | |
34 | 16 | |
35 | | - |
36 | 17 | |
37 | 18 | |
38 | 19 | |
39 | 20 | |
40 | | - |
| 21 | + |
41 | 22 | |
42 | 23 | |
43 | 24 | |
|
Collapse file
ci/release-image/Dockerfile
Copy file name to clipboardExpand all lines: ci/release-image/Dockerfile+9-9Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
10 | 10 | |
11 | 11 | |
12 | 12 | |
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
33 | | - |
| 32 | + |
| 33 | + |
34 | 34 | |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
41 | 41 | |
42 | 42 | |
43 | 43 | |
|
Collapse file
+13Lines changed: 13 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
1 | 2 | |
2 | 3 | |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
3 | 16 | |
4 | 17 | |
5 | 18 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
1 | 2 | |
2 | 3 | |
3 | 4 | |
| ||
24 | 25 | |
25 | 26 | |
26 | 27 | |
| 28 | + |
27 | 29 | |
28 | 30 | |
29 | 31 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
1 | 2 | |
2 | 3 | |
3 | 4 | |
| ||
33 | 34 | |
34 | 35 | |
35 | 36 | |
| 37 | + |
36 | 38 | |
37 | 39 | |
38 | 40 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
1 | 2 | |
2 | 3 | |
3 | 4 | |
| ||
24 | 25 | |
25 | 26 | |
26 | 27 | |
| 28 | + |
27 | 29 | |
28 | 30 | |
29 | 31 | |
|
Collapse file
+3-2Lines changed: 3 additions & 2 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
1 | 2 | |
2 | 3 | |
3 | 4 | |
| ||
22 | 23 | |
23 | 24 | |
24 | 25 | |
| 26 | + |
25 | 27 | |
26 | 28 | |
27 | 29 | |
| ||
89 | 91 | |
90 | 92 | |
91 | 93 | |
92 | | - |
| 94 | + |
93 | 95 | |
94 | 96 | |
95 | 97 | |
96 | | - |
97 | 98 | |
98 | 99 | |
99 | 100 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
1 | 2 | |
2 | 3 | |
3 | 4 | |
| ||
24 | 25 | |
25 | 26 | |
26 | 27 | |
| 28 | + |
27 | 29 | |
28 | 30 | |
29 | 31 | |
|
0 commit comments