Static text-first personal site and npm package powered by markdown content.
content/: markdown source of truthgenerated/: built manifest and generated text indexesdist/web/: generated static text site for Vercelvercel.json: redirects, rewrites, and text headerspackages/wangenius/: CLI package
- Install dependencies:
pnpm install - Build and preview the static text service:
pnpm dev - Open the local site:
http://localhost:3000
Useful commands:
pnpm build:contentpnpm dev:webpnpm test
Build everything:
pnpm build
Start the local preview server after build:
pnpm start
The production web service is a static Vercel output in dist/web. It consumes generated/manifest.json and is deployed with the root vercel.json.
Build the npm package data snapshot:
pnpm build:package
Create a tarball locally:
pnpm pack:package
After that you can test the CLI locally with:
node packages/wangenius/bin/wangenius.mjs
node packages/wangenius/bin/wangenius.mjs resume
node packages/wangenius/bin/wangenius.mjs project
To publish for real later, run pnpm build:content, pnpm --filter wangenius build, then publish from packages/wangenius.
- Edit markdown in
content/en/*orcontent/zh/* - Rebuild generated resources with
pnpm build:content - Static web output and the npm package both read from the generated manifest
Editor-only files such as content/.obsidian are ignored by the build pipeline.