A minimal Vue + Vite full-stack framework built around doofpi
File-based pages, SSR or SPA, a built-in doofpi server and a doofpi client with four fetch modes.
bun create noofpi my-app
cd my-app
bun install
bun run devTo add noofpi to an existing project:
bun add noofpi doofpiRequires Node.js 20 or newer (or Bun). doofpi is a peer dependency (>=1.3.1).
tailwindcss, @tailwindcss/vite and sharp are optional peer dependencies, install them when you use the feature:
bun add tailwindcss @tailwindcss/vite # tailwind: true
bun add sharp # importing images with ?imagenoofpi dev Start the dev server with live reload
noofpi build Build for production into .output/
noofpi start Run the production build
noofpi preview Build, then run the production build
noofpi prepare Generate the .noofpi/ type declarations
noofpi typecheck Run prepare, then vue-tsc --noEmit
Options: --root <dir>, --port <port>, --host <host>, --open, --preset <name>, -h, --help and -v, --version. Options accept --port 3000 and --port=3000.
noofpi prepare writes the .noofpi/*.d.ts files without starting a server, so editor types work right after install. Run it from a postinstall script: "postinstall": "noofpi prepare".
noofpi typecheck needs vue-tsc and typescript in the project. Arguments after -- go to vue-tsc: noofpi typecheck -- --project tsconfig.app.json.
noofpi preview works with the node, bun and docker presets.
https://liorcodev.github.io/noofpi-docs/
MIT