generated from kawarimidoll/deno-dev-template
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
velociraptor.yml
89 lines (75 loc) · 1.82 KB
/
velociraptor.yml
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
noCheck: true
scripts:
init:
desc: Builds config file
cmd: cli/denote.ts init
allow:
- write
- read
- net
serve:
desc: Starts local server
cmd: cli/denote.ts serve
allow:
- net
- read
watch: true
register:
desc: Publishes page
cmd: cli/denote.ts register
allow:
- net
- read
unregister:
desc: Removes page
cmd: cli/denote.ts unregister
allow:
- net
- read
start:
cmd: deployctl run --no-check --env=.env --watch ./server.ts
deps:
desc: Update dependencies with ensuring pass tests
cmd: udd deps.ts --test="vr test"
lint:
desc: Runs lint
cmd: deno lint --ignore=cov_profile
fmt:
desc: Runs format
cmd: deno fmt --ignore=cov_profile
pre-commit:
cmd: |
FILES=$(git diff --staged --name-only --diff-filter=ACMR "*.ts")
[ -z "$FILES" ] && exit 0
echo "$FILES" | xargs deno lint
echo "$FILES" | xargs deno fmt
# echo "$FILES" | xargs git add
desc: Lints and formats staged files
gitHook: pre-commit
test:
desc: Runs the tests
cmd: deno test --reload --allow-net
allow:
- env
gitHook: pre-push
cov:
desc: Shows uncovered lists
cmd:
- vr test --coverage=cov_profile
- deno coverage cov_profile
ci:
desc: Runs lint, check format and test
cmd:
- vr lint
- vr fmt --check
- vr test
cd:
desc: Publishes latest denote.yml
cmd:
- vr register denote.yml --name denote
commitlint:
# dependencies: commitlint and @commitlint/config-conventional
# yarn global add commitlint @commitlint/config-conventional
desc: Checks commit messages format with commitlint
cmd: commitlint -x @commitlint/config-conventional -e ${GIT_ARGS[1]}
gitHook: commit-msg