-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjustfile
More file actions
86 lines (59 loc) · 1.49 KB
/
justfile
File metadata and controls
86 lines (59 loc) · 1.49 KB
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
check:
gleam check
check_no_cache:
rm -r build/dev/*/qcheck; gleam check
checkw:
watchexec --no-process-group gleam check
testw:
watchexec --no-process-group gleam test
test:
#!/usr/bin/env bash
set -euxo pipefail
gleam test
gleam test --target=javascript
test_review:
gleam run -m birdie
find_todos:
rg -g '!build' -g '!justfile' -i todo
bench_full:
#!/usr/bin/env bash
set -euxo pipefail
cd bench
gleam run -m full_benchmark -- bench_out
bench_x:
#!/usr/bin/env bash
set -euxo pipefail
cd bench2
gleam run -- bench_x_out
qv_dev:
#!/usr/bin/env bash
set -euxo pipefail
cd qcheck_viewer
gleam run -m lustre/dev start
qv_test:
#!/usr/bin/env bash
set -euxo pipefail
cd qcheck_viewer
gleam test
qv_build_site:
#!/usr/bin/env bash
set -euxo pipefail
cd qcheck_viewer
if [ -d dist ]; then rm -r dist; fi
mkdir -p dist/priv/static
gleam run -m lustre/dev build --outdir=dist/priv/static --minify
mv dist/priv/static/qcheck_viewer.min.mjs \
dist/priv/static/qcheck_viewer.mjs
cp index.html dist
qv_setup_for_gh_pages:
#!/usr/bin/env bash
set -euxo pipefail
cd qcheck_viewer
npm install
gleam deps download
# Find the `name` in the code.
find name:
rg {{ name }} -g '*.gleam' src/ test/
# You SHOULD have a clean working directory (git) and run `find name` first to verify.
rename current_name new_name:
rg {{ current_name }} -l -0 -g '*.gleam' src/ test/ | xargs -0 sed -i '' 's/{{ current_name }}/{{ new_name }}/g'