create-pracht
v0.2.5
Published
Interactive and scriptable starter CLI for creating full-stack Preact apps with Pracht.
Maintainers
Readme
create-pracht
Interactive starter CLI for bootstrapping a new pracht app.
Quickstart
npm create pracht@latest my-app
cd my-app
npm install
npm run devWhat It Does
- Prompts for the target folder.
- Detects the active package manager from the current environment.
- Lets the user choose between the Node.js, Cloudflare, and Vercel adapters.
- Scaffolds a minimal app with a route manifest or pages router, shell, home route, sample API route, runnable project README, and agent instructions.
--dry-runuses pinned fallback versions and does not require npm registry access.
Usage
node ./packages/start/bin/create-pracht.js
node ./packages/start/bin/create-pracht.js my-app --adapter=node --skip-install
node ./packages/start/bin/create-pracht.js my-app --adapter=vercel --skip-installGenerated Files
package.jsonvite.config.tssrc/routes.tssrc/routes/home.tsxsrc/shells/public.tsxsrc/api/health.ts
Cloudflare scaffolds also include:
wrangler.jsonc
Generated Scripts
dev->pracht devbuild->pracht build
Node starters also include:
start->node dist/server/server.js
Cloudflare starters also include:
deploy->pracht build && wrangler deploy
Vercel starters also include:
deploy->pracht build && vercel deploy --prebuilt
