-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
38 lines (33 loc) · 1.12 KB
/
justfile
File metadata and controls
38 lines (33 loc) · 1.12 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
set windows-shell := ["nu.exe", "-c"]
set shell := ["nu", "-c"]
root := absolute_path('')
default:
@just --choose
orchestration:
concurrently \
--names composition,orchestration \
`nu -c "cd '{{ root }}/src/composition'; exec tsup --watch"` \
`glacial-orchestration '{{ root }}/src/composition/dist/index.js'`
format:
cd '{{ root }}'; just --unstable --fmt
nixfmt ...(fd '.*.nix$' '{{ root }}' | lines)
prettier --write '{{ root }}'
ruff check --fix '{{ root }}'
ruff format '{{ root }}'
biome check --write '{{ root }}'
lint:
cd '{{ root }}'; just --unstable --fmt --check
nixfmt --check ...(fd '.*.nix$' '{{ root }}' | lines)
prettier --check '{{ root }}'
cspell lint '{{ root }}' --no-progress
markdownlint --ignore-path .gitignore '{{ root }}'
if (markdown-link-check \
--config '{{ root }}/.markdown-link-check.json' \
...(fd '^.*.md$' '{{ root }}' | lines) \
| rg -q error \
| complete \
| get exit_code) == 0 { exit 1 }
ruff check '{{ root }}'
mypy '{{ root }}'
biome lint '{{ root }}'
cd '{{ root }}'; tsc --noEmit