2 Commits

Author SHA1 Message Date
jbrechtel d52de3679e scripts/run: mount recipe directory and publish port
- scripts/run now takes a recipe directory as its first argument,
  resolves it to an absolute path, and mounts it at /recipes in the
  Docker container
- Parses --port flag to map container port 8080 to the requested
  host port (default 8080)
- Passes --recipe-dir /recipes --port 8080 to the server
- Passes --host and any additional args through to the server
- Exits with an error if the recipe directory doesn't exist
- Also accept --host flag and pass remaining args through

Example: ./scripts/run ~/my-recipes --port 9090
2026-05-19 07:29:04 -04:00
jbrechtel 9759a4c3a3 Add fourmolu + hlint with scripts and git hooks (Atlas-style)
- Create scripts/build, scripts/test, scripts/run, scripts/install-hooks
- Create git-hooks/pre-commit (auto-format staged .hs files)
- Create git-hooks/pre-push (check formatting + hlint before push)
- Handle git worktrees correctly in hook installation
- Run fourmolu on all source files to fix existing formatting
2026-05-18 22:24:59 -04:00