-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
justfile
52 lines (39 loc) · 902 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
51
52
default: build
# Lint with Biome
lint: generate
yarn biome check .
# Apply lint fixes
lint-fix: generate
yarn biome check . --write --unsafe
# Generate docs to ./docs_out
docs: generate
yarn typedoc src/index.ts --out docs_out
# Check bundle size
size: bundle
yarn size-limit
# Run unit tests
test: generate
yarn vitest run
# Run unit tests in watch mode
test-dev: generate
yarn vitest --ui
# Generate conversions
generate:
bun scripts/generate.ts -o src/generated/
# Compile types
types: generate
yarn tsc
# Create JS bundle
bundle: generate
yarn rollup --config rollup.config.ts --configPlugin swc
# Run API Extractor
validate-api: types
yarn api-extractor run
# Run API Extractor in local mode
validate-api-local: types
yarn api-extractor run --local --verbose
# Build for production
build: validate-api bundle
# Run benchmarks
benchmarks: generate
yarn vitest bench --run