🔧 Add recipes for bootstrap, lint, build, and Docker ops

This commit is contained in:
Jeff Triplett 2025-03-06 20:33:02 -06:00
parent 1265c9b69a
commit f6fa724a67
No known key found for this signature in database

View File

@ -1,34 +1,44 @@
# Default recipe - lists all available recipes
@_default: @_default:
just --list just --list
# Run alex linter on README.md to find inconsiderate writing
@alex: @alex:
bunx alex README.md bunx alex README.md
# Install and update dependencies
@bootstrap: @bootstrap:
python -m pip install --upgrade pip uv python -m pip install --upgrade pip uv
uv pip install --upgrade --requirement pyproject.toml uv pip install --upgrade --requirement pyproject.toml
# Generate table of contents and build the Jekyll site
@build: @build:
just doctoc just doctoc
bundle exec jekyll build bundle exec jekyll build
# Generate table of contents for README.md
@doctoc: @doctoc:
bunx doctoc README.md bunx doctoc README.md
# Stop the Docker containers
@down: @down:
docker compose down docker compose down
# Run linting on all files
@lint *ARGS: @lint *ARGS:
# -uv --quiet tool run curlylint _layouts/ # -uv --quiet tool run curlylint _layouts/
# -bunx awesome-lint README.md # -bunx awesome-lint README.md
uv tool run --with pre-commit-uv pre-commit run {{ ARGS }} --all-files uv tool run --with pre-commit-uv pre-commit run {{ ARGS }} --all-files
# Start local development server
@serve: @serve:
# modd --file=modd.conf # modd --file=modd.conf
just up "" just up ""
# Start containers (detached by default)
@start *ARGS="--detach": @start *ARGS="--detach":
just up {{ ARGS }} just up {{ ARGS }}
# Start Docker containers with optional arguments
@up *ARGS: @up *ARGS:
docker compose up {{ ARGS }} docker compose up {{ ARGS }}