-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjustfile
More file actions
executable file
·100 lines (76 loc) · 1.97 KB
/
justfile
File metadata and controls
executable file
·100 lines (76 loc) · 1.97 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
96
97
98
99
100
#!/usr/bin/env -S just --justfile
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
set shell := ["bash", "-cu"]
_default:
@just --list -u
# ==================== ALIASES ====================
alias r := ready
alias c := conformance
# ==================== SETUP & INITIALIZATION ====================
# Initialize the project by installing all necessary tools
init:
# Rust related init
cargo binstall cargo-insta typos-cli cargo-shear -y
# Node.js related init
pnpm install
# ==================== CORE DEVELOPMENT ====================
# When ready, run the same CI commands
ready:
git diff --exit-code --quiet
pnpm install
typos
just fmt
just check
just test
just lint
just doc
git status
# Run cargo check
check:
cargo check --all-features
# Run all the tests
test:
cargo test -p oxc_angular_compiler
# Lint the whole project
lint:
cargo clippy --all-features -- --deny warnings
# Format all files
fmt:
-cargo shear --fix
cargo fmt
[unix]
doc:
RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items
[windows]
doc:
$Env:RUSTDOCFLAGS='-D warnings'; cargo doc --no-deps --document-private-items
# Fix all auto-fixable format and lint issues
fix:
cargo clippy --fix --allow-staged --no-deps
just fmt
typos -w
git status
# ==================== BUILD ====================
# Build the Angular compiler
build:
cargo build -p oxc_angular_compiler
# Build in release mode
build-release:
cargo build -p oxc_angular_compiler --release
# ==================== TESTING & CONFORMANCE ====================
# Run conformance tests
conformance *args='':
cargo run -p oxc_angular_conformance -- {{args}}
# Run conformance tests with filter
conformance-filter filter:
cargo run -p oxc_angular_conformance -- --filter {{filter}}
# ==================== NAPI ====================
# Build NAPI package
napi-build:
pnpm build
# Build NAPI package (dev)
napi-build-dev:
pnpm build-dev
# Test NAPI package
napi-test:
pnpm test