Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
95 lines (69 loc) · 1.88 KB
/
Copy pathjustfile
File metadata and controls
95 lines (69 loc) · 1.88 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
87
88
89
90
91
92
93
94
95
# Tomlet Gleam parser and corpus test tasks
# === ALIASES ===
alias b := build
alias t := test
alias f := format
alias l := lint
alias c := clean
# Default recipe
default:
@just --list
# === DEPENDENCIES ===
# Download project dependencies
deps:
gleam deps download
# === STANDARD RECIPES ===
# Compile the project (Erlang target)
build:
gleam build
# Build with warnings as errors (Erlang target)
build-strict:
gleam build --warnings-as-errors
# Build with warnings as errors (JavaScript target)
build-strict-js:
gleam build --target javascript --warnings-as-errors
# Run tests on all targets
# Includes the upstream TOML corpus checks.
test: test-erlang test-js
# Run unit + corpus tests on the Erlang target
test-erlang:
python3 scripts/run_corpus_tests.py --target erlang
# Run unit + corpus tests on the JavaScript target
test-js:
python3 scripts/run_corpus_tests.py --target javascript
# Format all Gleam code, including examples
format:
gleam format
# Check formatting without making changes
format-check:
gleam format --check
# Type check without building
check:
gleam check
# Run the glinter linter
glint:
gleam run -m glinter
# Run linters (formatting + glinter)
lint: format-check glint
# Remove build artifacts
clean:
gleam clean
# === CHANGELOG ===
# Create a new changelog entry, e.g. `just change Fixed "Reject bad dates"`
change KIND BODY:
trellis changelog new --kind "{{KIND}}" --body "{{BODY}}"
# Preview the next release version from unreleased fragments
changelog-preview:
trellis version plan
# Check workspace invariants (versions, lockfiles, changelog fragments)
doctor:
trellis doctor
# === DOCUMENTATION ===
# Build generated documentation
docs:
gleam docs build
# === CI ===
# Full validation workflow
ci: format-check glint check test build-strict build-strict-js docs
alias pr := ci
alias cl := change