create-bdpa-react-scaffold
v1.7.5
Published
Scaffold a React + Tailwind UI library demo via Vite.
Maintainers
Readme
create-bdpa-react-scaffold
Scaffold a ready-to-run React + Tailwind UI library demo built with Vite. This CLI creates a project with common UI components and a demo app.
Quick Start
Run with npx (no global install needed):
npx create-bdpa-react-scaffold my-appThen start the dev server:
cd my-app
npm install
npm run devOptions
--pm <npm|yarn|pnpm>: Choose package manager (default:npm).--no-install: Skip dependency installation.--force: Allow writing into a non-empty directory.
Examples:
npx create-bdpa-react-scaffold my-app --pm pnpm
npx create-bdpa-react-scaffold . --force --no-installWhat You Get
- Vite + React 18 project
- Tailwind CSS configured (
postcss.config.cjs,tailwind.config.cjs) - Example UI components (Button, Card, Input, FormField, Table, Navbar, Sidebar, Modal, Tabs, Toast)
- Simple Auth pages (Login, Register)
- Demo app and wiring
- Axios-based API client with CRUD helpers (
src/utils/api.js)
Local Development (for this CLI)
Link the CLI locally to test changes without publishing:
npm install
npm link
# Now you can run it from anywhere
create-bdpa-react-scaffold my-test-app --no-installTo unlink later:
npm unlink -g create-bdpa-react-scaffoldPublishing to npm
Pick a unique package name. This repo uses
create-bdpa-react-scaffold.Login to npm:
npm login- Publish (public):
npm publish --access publicIf your package name is scoped (e.g. @yourname/create-bdpa-react-scaffold), include --access public on first publish.
After publishing, users can run:
npx create-bdpa-react-scaffold my-appDocumentation
- How-To Guides - Learn how to add pages and make API calls
License
UNLICENSED (update as desired).
