justfile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Default recipe - lists all available recipes
  2. @_default:
  3. just --list
  4. # Run alex linter on README.md to find inconsiderate writing
  5. @alex:
  6. bunx alex README.md
  7. # Install and update dependencies
  8. @bootstrap:
  9. python -m pip install --upgrade pip uv
  10. uv pip install --upgrade --requirement pyproject.toml
  11. # Generate table of contents and build the Jekyll site
  12. @build:
  13. just doctoc
  14. bundle exec jekyll build
  15. # Generate table of contents for README.md
  16. @doctoc:
  17. bunx doctoc README.md
  18. # Stop the Docker containers
  19. @down:
  20. docker compose down
  21. # Run linting on all files
  22. @lint *ARGS:
  23. # -uv --quiet tool run curlylint _layouts/
  24. # -bunx awesome-lint README.md
  25. uv tool run --with pre-commit-uv pre-commit run {{ ARGS }} --all-files
  26. # Start local development server
  27. @serve:
  28. # modd --file=modd.conf
  29. just up ""
  30. # Start containers (detached by default)
  31. @start *ARGS="--detach":
  32. just up {{ ARGS }}
  33. # Start Docker containers with optional arguments
  34. @up *ARGS:
  35. docker compose up {{ ARGS }}