Repository navigation
Nix dev shell and the unified preview (wt, review.t7d.dev) - #34
Merged
Merged
Conversation
- flake.nix: Python with Playwright and markdown, Node 22, gh, uv; .envrc loads it with direnv. - compose.preview.yml: the review site of the current worktree and its papercuts relay, for `wt up`. Approve writes to .review/approve/ of the main checkout, as before. - README: development in the dev VM with direnv and wt. Tests in the dev shell: 72 Python and 12 Node tests pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KFxuEvbkaAsJXeJAcQhGr6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
All repos get the same dev experience in the dev VM: a Nix dev shell loaded by direnv, and previews through
wt. Every worktree has its own address, so branches can be compared side by side.What changes
flake.nix+.envrc: Python with Playwright and markdown, Node 22, gh, uv.compose.preview.yml: the review site of the current worktree plus its papercuts relay, started withwt up:https://<branch>--t7d.review.t7d.dev: the review sitehttps://pc-<branch>--t7d.review.t7d.dev: the papercuts relayhttps://t7d.review.t7d.dev: the current worktree (wt switch).review/approve/of the main checkout, andapprove-host.shpublishes it. It is installed in the dev VM withapprove-install.sh.docker-compose.dev.ymlstays until a follow-up removes it.Checks
python3 -m unittest discover -s scripts/review -p 'test_*.py'passes (72 tests), andnode --test scripts/review/test_*.mjspasses (12 tests).wt upin the worktree of this branch: the review site answers 200, and the relay answers/healthzwith 200 through the dev VM gateway.🤖 Generated with Claude Code
https://claude.ai/code/session_01KFxuEvbkaAsJXeJAcQhGr6