-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
51 lines (38 loc) · 1.19 KB
/
justfile
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
#!/usr/bin/env just -f
BROWSER := "chromium"
# This help
@help:
just -lu --list-heading=$'{{ file_name(justfile()) }} commands:\n'
# Install requirements
@install-requirements:
npm install nodejs-polars
# Check conventional commits
@conventional-check:
cog check
# Execute test tasks
@test: import-atp generate-samples
rm -rf ./.coverage
deno test --doc --unstable --allow-all --parallel --coverage=./.coverage --trace-ops
# Execute some CI task
ci: lint fmt coverage
# Lint code
@lint:
deno lint
# Format code
@fmt:
deno fmt --ignore=CHANGELOG.md
# Execute coverage
@coverage: test
deno coverage ./.coverage/ --lcov --output=./.coverage/cov.lcov
# Browse localy coverage
coverage-browse browser="chromium": coverage
genhtml -o ./.coverage/html_cov ./.coverage/cov.lcov
{{ browser }} ./.coverage/html_cov/index.html
@import-atp:
./samples/initdatas/import-atp.sh
@generate-samples:
deno run -A samples/samplescripts/generate_samples.ts
samples/samplescripts/generate_samples.sh
# Run command interactively, view the result in realtime
@view:
just --choose --chooser="fzf --margin 0% --reverse --preview-window=right,80% --preview='bkt --ttl=15m --stale=15s -- just {}'"