-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathjustfile
44 lines (35 loc) · 1 KB
/
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
# Default recipe - lists all available recipes
@_default:
just --list
# Run alex linter on README.md to find inconsiderate writing
@alex:
bunx alex README.md
# Install and update dependencies
@bootstrap:
python -m pip install --upgrade pip uv
uv pip install --upgrade --requirement pyproject.toml
# Generate table of contents and build the Jekyll site
@build:
just doctoc
bundle exec jekyll build
# Generate table of contents for README.md
@doctoc:
bunx doctoc README.md
# Stop the Docker containers
@down:
docker compose down
# Run linting on all files
@lint *ARGS:
# -uv --quiet tool run curlylint _layouts/
# -bunx awesome-lint README.md
uv tool run --with pre-commit-uv pre-commit run {{ ARGS }} --all-files
# Start local development server
@serve:
# modd --file=modd.conf
just up ""
# Start containers (detached by default)
@start *ARGS="--detach":
just up {{ ARGS }}
# Start Docker containers with optional arguments
@up *ARGS:
docker compose up {{ ARGS }}