-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
50 lines (38 loc) · 873 Bytes
/
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
set shell := ["zsh", "-c"]
[private]
@help:
just --list --unsorted
alias up := update
# Build packages
[no-cd]
build:
turbo build
# Fix deps, lint, format, etc.
fix:
pnpm fix
# Run Vitest tests
test *flags:
turbo build -F './packages/*'
pnpm vitest {{flags}}
# Update deps via syncpack
update:
pnpm syncpack update
just -q changes && just fix || true
# Check for issues with deps/lint/types/format
check *flags:
pnpm check:ci
# ========================= #
# ======== HELPERS ======== #
# ========================= #
# Update lockfile (if needed)
[private]
update-lockfile:
just -q deps-changed && pnpm i --child-concurrency=10 || true
# Check if any file has changed
[private]
changes:
test $(git status --porcelain | wc -l) -gt 0
# Check if package.json has changed
[private]
deps-changed:
git status --porcelain | grep -q 'package.json'