generated from kawarimidoll/deno-dev-template
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
velociraptor.yml
56 lines (48 loc) · 1.3 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
scripts:
server:
desc: Starts local server
cmd: server.ts
watch: true
allow:
- read
- net
- env
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-read
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