Minimal frontend baseline for a browser-only diagram/editor app.
Stack:
- Vite + React + TypeScript
- Tailwind CSS v4 via
@tailwindcss/vite shadcn/uiprimitives@xyflow/reactfor diagram/canvas work- ESLint, TypeScript project references, and
knip
npm install
npm run devThe app uses the @ alias for src, so imports such as @/components/ui/button and @/lib/utils resolve in both Vite and TypeScript.
npm run lint
npm run typecheck
npm run knip
npm run checknpm run check runs the full validation pass expected for the bootstrap baseline.
npm run buildPreview the generated bundle locally with:
npm run previewThis project is client-side only and produces static assets in dist/.
For static hosts that serve from the root path, use the normal build:
npm run buildFor GitHub Pages, build with the repository name as the base path:
npm run build:pagesThis repository also includes a GitHub Actions workflow at .github/workflows/deploy-pages.yml that deploys main to GitHub Pages automatically.
One-time repository setup in GitHub:
- Open
Settings->Pages - Set
SourcetoGitHub Actions - Push to
mainor rerun theDeploy GitHub Pagesworkflow from theActionstab
If the site is deployed under a different subpath, override the base path at build time:
BASE_PATH=/your-subpath/ npm run buildThen publish the contents of dist/ with your preferred static host or CI workflow.