-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjustfile
More file actions
54 lines (40 loc) · 830 Bytes
/
justfile
File metadata and controls
54 lines (40 loc) · 830 Bytes
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
#!/usr/bin/env just --justfile
# Using Just: https://github.com/casey/just?tab=readme-ov-file#installation
# List all of the available commands.
default:
just --list
# Run the CI checks
check:
bun i
# Lint the JS packages
bunx biome check
# Make sure Typescript compiles
bun run check
# Automatically fix some issues.
fix:
# Fix the JS packages
bun i
# Format and lint
bunx biome check --fix
# Run any CI tests
test:
# Run the JS tests via node.
bun test
# Upgrade any tooling
upgrade:
# Update the NPM dependencies
bun upgrade
bun outdated
# Build the packages
build:
bun i
bun astro build
# Deploy the site to Cloudflare Pages
deploy env="staging": build
bun wrangler deploy --env {{env}}
dev:
bun i
# Run the web development server
bun astro dev --open
prod: build
bun astro preview --open