create-davepi-ui
v0.4.0
Published
Scaffolder for new davepi-ui projects. Run: npx create-davepi-ui <name> [--api-url <url>] [--auth oauth]
Maintainers
Readme
create-davepi-ui
Scaffolder for new davepi-ui admin projects against a running davepi backend.
Usage
npx create-davepi-ui my-admin --api-url http://localhost:4001
cd my-admin
npm run devFlags
| Flag | Default | Purpose |
|---|---|---|
| --api-url <url> | http://localhost:4001 | davepi backend base URL written to .env |
| --no-install | off | Skip post-scaffold npm install |
What it does
- Copies the bundled template (Vite + React Router + shadcn +
@davepi/ui-react). Lock files are filtered out so the scaffolded project picks its own package manager — npm by default, matching the davepi backend. - Rewrites
package.json— pins@davepi/ui-*deps to the published versions matching this scaffolder, setsprivate: true, drops upstream repo metadata. - Writes
.envwithVITE_API_URL. - Runs
npm install(unless--no-install).
License
MIT
