This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
generated from kachick/action-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
90 lines (78 loc) · 1.75 KB
/
Makefile.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[config]
skip_core_tasks = true
[tasks.setup]
category = "Tools"
description = "Run formatters without changes"
script = [
"npm install",
]
[tasks.setup-submodule]
category = "Tools"
description = "Run formatters without changes"
script = [
"git submodule update --init --recursive",
]
[tasks.fmt]
category = "Tools"
description = "Run formatters with changes"
script = [
"dprint fmt",
]
[tasks.lint]
category = "Tools"
description = "Run linters without changes"
script = [
"dprint check",
"deno lint",
"typos . .github .vscode",
]
[tasks.test]
category = "Tools"
description = 'Test typescripts'
script = [
"npm test",
]
[tasks.typecheck]
category = "Tools"
description = 'Correctness in TypeScript'
script = [
"npm run typecheck",
]
[tasks.build]
category = "Tools"
description = 'Build'
script = [
"npm run build",
]
[tasks.check]
category = "Tools"
description = 'Parallel runner for all tests and linters'
run_task = { name = ["test", "typecheck", "lint", "build"], parallel = true }
[tasks.all]
category = "Tools"
description = 'Parallel runner for all build, tests and linters'
run_task = { name = ["check", "package"], parallel = true }
[tasks.help]
category = "Tools"
description = 'Might help you - (This one)'
script = [
'makers --list-category-steps Tools',
]
[tasks.deps]
category = "Tools"
description = 'Print dependency and the versions'
script = [
"node --version",
"nix --version",
"makers --version",
"dprint --version",
# Returns NON 0, why...? :<
# "nixpkgs-fmt --version",
"typos --version",
]
[tasks.check_no_git_diff]
category = "Tools"
description = 'This prevents unexpected commit'
script = [
'(git add --intent-to-add . && git diff --exit-code) || (echo "You should commit all diff before running tests"; exit 1)',
]