generated from kawarimidoll/deno-dev-template
-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
velociraptor.yml
68 lines (57 loc) · 1.47 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
allow:
# - write
- read
- env=GH_READ_USER_TOKEN
- net
scripts:
main:
desc: Runs main script
cmd: main.ts
server:
desc: Starts local server
watch: true
cmd: server.ts
health_check:
desc: Runs health_check script
cmd: health_check.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,resources
fmt:
desc: Runs format
cmd: deno fmt --ignore=cov_profile,resources
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:
# allow:
# - read
desc: Runs the tests
cmd: deno test --reload
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
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