A minimal static site starter for GitHub Pages. Uses Vite + TypeScript, run entirely through Deno's Node compatibility. Works out of the box inside the provided nix flake dev shell.
- Deno 2.x (Node compat for npm specifiers)
- Vite 7 + TypeScript 5.9
- Nix flake dev shell for repeatable tooling
# enter dev shell (recommended)
nix develop
# start dev server (http://localhost:5173)
deno task devdeno task dev- Vite dev serverdeno task build- Production build todist/deno task preview- Preview the built sitedeno task typecheck- TypeScript--noEmitdeno task fmt- Formatdeno task lint- Lintdeno task test- Deno tests
Run before pushing:
deno task fmt --check
deno task lint
deno task typecheck
deno task test # optional until tests exist
deno task builddeno task build(outputs todist/).- Publish
dist/to agh-pagesbranch (example):
git worktree add -B gh-pages dist
cd dist && git add . && git commit -m "Publish" && git push origin gh-pages
cd .. && git worktree remove dist- In repository settings, configure Pages to serve from the
gh-pagesbranch root.