{"_id":"@beststar/create-react-scaffold","_rev":"4-7694cca1e0d778e54c4346572655f1de","name":"@beststar/create-react-scaffold","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@beststar/create-react-scaffold","version":"1.0.0","keywords":["react","vite","tailwindcss","shadcn","typescript","scaffold","cli"],"license":"MIT","_id":"@beststar/create-react-scaffold@1.0.0","maintainers":[{"name":"beststar","email":"1023039317@qq.com"}],"homepage":"https://github.com/BestStarLi/react-scaffold#readme","bugs":{"url":"https://github.com/BestStarLi/react-scaffold/issues"},"bin":{"create-react-scaffold":"bin/index.js"},"dist":{"shasum":"b760e0aa20f32861f08d8c4a05f3d607a3302e32","tarball":"https://registry.npmjs.org/@beststar/create-react-scaffold/-/create-react-scaffold-1.0.0.tgz","fileCount":18,"integrity":"sha512-srPf4Oubrhi+Uv/Jzy1oj08vGujGv31CteAEPfugu/6pMToIgSvioGlKyvRfoiBCtssaqZUSazCUkYmRkTNeeg==","signatures":[{"sig":"MEYCIQCDmcYtxsuRaRbelfmKxwEWa9+pnYgCMBF+vNtlZI1jMwIhANWt5T+YyzgQU+2meYkYXxthoJX9gtHBbEuijou3XLjv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":121825},"type":"module","engines":{"node":">=18"},"gitHead":"b76439c39e646bac0a0b75de6f7a1d4752c0971b","private":false,"_npmUser":{"name":"beststar","email":"1023039317@qq.com"},"repository":{"url":"git+https://github.com/BestStarLi/react-scaffold.git","type":"git"},"_npmVersion":"10.9.0","description":"A modern React scaffolding CLI tool — React + TypeScript + Vite + Tailwind CSS + shadcn/ui","directories":{},"_nodeVersion":"22.12.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/create-react-scaffold_1.0.0_1783083415909_0.8296714002755061","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@beststar/create-react-scaffold","version":"1.0.1","keywords":["react","vite","tailwindcss","shadcn","typescript","scaffold","cli"],"license":"MIT","_id":"@beststar/create-react-scaffold@1.0.1","maintainers":[{"name":"beststar","email":"1023039317@qq.com"}],"homepage":"https://github.com/BestStarLi/react-scaffold#readme","bugs":{"url":"https://github.com/BestStarLi/react-scaffold/issues"},"bin":{"create-react-scaffold":"bin/index.js"},"dist":{"shasum":"4b4aedb075d26fdabc48beda91d1fbf708d146ee","tarball":"https://registry.npmjs.org/@beststar/create-react-scaffold/-/create-react-scaffold-1.0.1.tgz","fileCount":18,"integrity":"sha512-i5tkueCLvos3HwhmbS/QCo+cJ5+sfODjWJz2/ZAuttrR9mBOxr9YZEHEr7SbAc8BGjpfMUjO9N84oXvr0KZOIA==","signatures":[{"sig":"MEUCIHhH28sq+D3G/kGHCZs4O4gLY+H8xm3JIRx6g05eOksNAiEAxgOkrbmHuMaC/rRGc4EU9nLOInNvacutt7U6xQSSHH0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":122773},"type":"module","engines":{"node":">=18"},"gitHead":"ce3074170ebbec69c22116c7d1041d92ae712228","private":false,"scripts":{"dev":"vite template","lint":"eslint template/src","build":"tsc -b template/tsconfig.json && vite build template","preview":"vite preview template"},"_npmUser":{"name":"beststar","email":"1023039317@qq.com"},"repository":{"url":"git+https://github.com/BestStarLi/react-scaffold.git","type":"git"},"_npmVersion":"10.9.0","description":"A modern React scaffolding CLI tool — React + TypeScript + Vite + Tailwind CSS + shadcn/ui","directories":{},"_nodeVersion":"22.12.0","dependencies":{"clsx":"^2.1.1","react":"^19.1.1","react-dom":"^19.1.1","tailwindcss":"^4.1.12","lucide-react":"^0.542.0","tailwind-merge":"^3.3.1","@tailwindcss/vite":"^4.1.12","@radix-ui/react-slot":"^1.2.3","class-variance-authority":"^0.7.1"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.1.2","eslint":"^9.33.0","globals":"^16.3.0","@eslint/js":"^9.33.0","typescript":"~5.8.3","@types/node":"^24.3.0","@types/react":"^19.1.10","tw-animate-css":"^1.3.7","@types/react-dom":"^19.1.7","typescript-eslint":"^8.39.1","@vitejs/plugin-react":"^5.0.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.20"},"_npmOperationalInternal":{"tmp":"tmp/create-react-scaffold_1.0.1_1783084401982_0.19612523781476643","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@beststar/create-react-scaffold","version":"1.0.2","keywords":["react","vite","tailwindcss","shadcn","typescript","scaffold","cli"],"license":"MIT","_id":"@beststar/create-react-scaffold@1.0.2","maintainers":[{"name":"beststar","email":"1023039317@qq.com"}],"homepage":"https://github.com/BestStarLi/react-scaffold#readme","bugs":{"url":"https://github.com/BestStarLi/react-scaffold/issues"},"bin":{"create-react-scaffold":"bin/index.js"},"dist":{"shasum":"b27bd7941117e50fc61396c8e2ee9d37c7d829c9","tarball":"https://registry.npmjs.org/@beststar/create-react-scaffold/-/create-react-scaffold-1.0.2.tgz","fileCount":18,"integrity":"sha512-iLgJcJh/l0bdVyDKYDswWDduKYea4IEGsGjGaDlEOJ8rS9CUQSb4xpEsIhM4F513JIJ+PtwAC1cP6jY5ea/BMQ==","signatures":[{"sig":"MEUCIDpc6Hkp8A88oxiUaZ/2Mg59bxc7gFvu7kzoa+LoKfxpAiEAvoClBp+I2cbJS1Try1bS3ahf7FJonNGLk2w9JCN85/k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":122922},"type":"module","engines":{"node":">=18"},"gitHead":"a5c5eef6480c991c11571d380a46c2e2cf717d69","private":false,"scripts":{"dev":"vite template","lint":"eslint template/src","build":"tsc -b template/tsconfig.json && vite build template","preview":"vite preview template"},"_npmUser":{"name":"beststar","email":"1023039317@qq.com"},"repository":{"url":"git+https://github.com/BestStarLi/react-scaffold.git","type":"git"},"_npmVersion":"10.9.0","description":"A modern React scaffolding CLI tool — React + TypeScript + Vite + Tailwind CSS + shadcn/ui","directories":{},"_nodeVersion":"22.12.0","dependencies":{"clsx":"^2.1.1","react":"^19.1.1","react-dom":"^19.1.1","tailwindcss":"^4.1.12","lucide-react":"^0.542.0","tailwind-merge":"^3.3.1","@tailwindcss/vite":"^4.1.12","@radix-ui/react-slot":"^1.2.3","class-variance-authority":"^0.7.1"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.1.2","eslint":"^9.33.0","globals":"^16.3.0","@eslint/js":"^9.33.0","typescript":"~5.8.3","@types/node":"^24.3.0","@types/react":"^19.1.10","tw-animate-css":"^1.3.7","@types/react-dom":"^19.1.7","typescript-eslint":"^8.39.1","@vitejs/plugin-react":"^5.0.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.20"},"_npmOperationalInternal":{"tmp":"tmp/create-react-scaffold_1.0.2_1783087400306_0.8795732282657494","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@beststar/create-react-scaffold","private":false,"version":"1.0.3","type":"module","description":"A modern React scaffolding CLI tool — React + TypeScript + Vite + Tailwind CSS + shadcn/ui","bin":{"create-react-scaffold":"bin/index.js"},"scripts":{"dev":"vite template","build":"tsc -b template/tsconfig.json && vite build template","preview":"vite preview template","lint":"eslint template/src"},"engines":{"node":">=18"},"repository":{"type":"git","url":"git+https://github.com/BestStarLi/react-scaffold.git"},"keywords":["react","vite","tailwindcss","shadcn","typescript","scaffold","cli"],"license":"MIT","dependencies":{"@radix-ui/react-slot":"^1.2.3","@tailwindcss/vite":"^4.1.12","class-variance-authority":"^0.7.1","clsx":"^2.1.1","lucide-react":"^0.542.0","react":"^19.1.1","react-dom":"^19.1.1","tailwind-merge":"^3.3.1","tailwindcss":"^4.1.12"},"devDependencies":{"@eslint/js":"^9.33.0","@types/node":"^24.3.0","@types/react":"^19.1.10","@types/react-dom":"^19.1.7","@vitejs/plugin-react":"^5.0.0","eslint":"^9.33.0","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-react-refresh":"^0.4.20","globals":"^16.3.0","tw-animate-css":"^1.3.7","typescript":"~5.8.3","typescript-eslint":"^8.39.1","vite":"^7.1.2"},"_id":"@beststar/create-react-scaffold@1.0.3","gitHead":"64ea1904a8d44cabaf60ee701de46f526687bb87","bugs":{"url":"https://github.com/BestStarLi/react-scaffold/issues"},"homepage":"https://github.com/BestStarLi/react-scaffold#readme","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-XJHD7guSyNQsttjitCMvej+9ZFW1+m2AMBrVs3AeF1mDf2flUUThkM1Ms8WzGc6BZa96C8KLJfX+bFHZ2tQFKQ==","shasum":"3df7b9ef4fe9b1f1c83f014d8b2cdbd0f86f9969","tarball":"https://registry.npmjs.org/@beststar/create-react-scaffold/-/create-react-scaffold-1.0.3.tgz","fileCount":18,"unpackedSize":122922,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDjVX0cFKqv/ACxdBiNFrfnizeD3PBB9yYNegFt1HW32gIgeLMBEZf8ENk4qMOD1DsEuQIBu49NlOnXVOoAfVHbg2Q="}]},"_npmUser":{"name":"beststar","email":"1023039317@qq.com"},"directories":{},"maintainers":[{"name":"beststar","email":"1023039317@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/create-react-scaffold_1.0.3_1783087827621_0.5395815970862026"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-03T12:56:55.775Z","modified":"2026-07-03T14:10:27.872Z","1.0.0":"2026-07-03T12:56:56.039Z","1.0.1":"2026-07-03T13:13:22.125Z","1.0.2":"2026-07-03T14:03:20.435Z","1.0.3":"2026-07-03T14:10:27.763Z"},"bugs":{"url":"https://github.com/BestStarLi/react-scaffold/issues"},"license":"MIT","homepage":"https://github.com/BestStarLi/react-scaffold#readme","keywords":["react","vite","tailwindcss","shadcn","typescript","scaffold","cli"],"repository":{"type":"git","url":"git+https://github.com/BestStarLi/react-scaffold.git"},"description":"A modern React scaffolding CLI tool — React + TypeScript + Vite + Tailwind CSS + shadcn/ui","maintainers":[{"name":"beststar","email":"1023039317@qq.com"}],"readme":"# @beststar/create-react-scaffold\n\nA modern React project scaffolding CLI tool — instantly create a project with **React 19** + **TypeScript** + **Vite** + **Tailwind CSS v4** + **shadcn/ui** pre-configured and ready to code.\n\n## Quick Start\n\n```bash\nnpx @beststar/create-react-scaffold my-app\ncd my-app\nnpm run dev\n```\n\nOr use the shorthand:\n\n```bash\nnpm create @beststar/react-scaffold my-app\n```\n\nYou can also use `yarn create` or `pnpm create`:\n\n```bash\n# Yarn\nyarn create @beststar/react-scaffold my-app\n\n# pnpm\npnpm create @beststar/react-scaffold my-app\n```\n\n## What's Included\n\n| Feature | Technology |\n|---|---|\n| ⚛️ **UI Framework** | React 19 with TypeScript |\n| ⚡ **Build Tool** | Vite 7 |\n| 🎨 **Styling** | Tailwind CSS v4 |\n| 🧩 **Components** | shadcn/ui (button components pre-installed) |\n| 🔤 **Icons** | lucide-react |\n| 📦 **Utilities** | clsx, tailwind-merge, class-variance-authority |\n| 🧹 **Linting** | ESLint with TypeScript rules |\n| 🔧 **Path Aliases** | `@/` mapped to `src/` |\n\nFor a complete list, see the generated project's `package.json`.\n\n## Prerequisites\n\n- **Node.js** >= 18\n- **npm**, **yarn**, or **pnpm**\n\n## Usage\n\n### Create a new project\n\n```bash\nnpx @beststar/create-react-scaffold <project-name>\n```\n\n### Options\n\n| Option | Description |\n|--------|-------------|\n| `-y`, `--yes` | Skip confirmation prompt |\n\n### Example\n\n```bash\nnpx @beststar/create-react-scaffold my-awesome-app\ncd my-awesome-app\nnpm run dev\n```\n\nThen open [http://localhost:5173](http://localhost:5173) in your browser.\n\n## Project Structure\n\nThe generated project follows a clean, opinionated structure:\n\n```\nmy-app/\n├── public/               # Static assets\n│   └── beststar.png\n├── src/\n│   ├── components/       # React components\n│   │   └── ui/          # shadcn/ui components\n│   ├── utils/           # Utility functions\n│   ├── App.css          # Tailwind CSS entry + theme variables\n│   ├── App.tsx          # Root component\n│   ├── main.tsx         # Application entry point\n│   └── vite-env.d.ts   # Vite type declarations\n├── index.html\n├── vite.config.ts       # Vite configuration (with @ alias)\n├── tsconfig.json        # TypeScript configuration\n├── tsconfig.app.json\n├── tsconfig.node.json\n├── eslint.config.js\n├── components.json      # shadcn/ui configuration\n└── package.json\n```\n\n## Adding shadcn/ui Components\n\nSince shadcn/ui is already configured, you can add more components:\n\n```bash\nnpx shadcn@latest add button\nnpx shadcn@latest add card\nnpx shadcn@latest add dialog\n# ... and any other shadcn/ui component\n```\n\n## Development\n\n### Commands\n\n| Command | Description |\n|---------|-------------|\n| `npm run dev` | Start development server with HMR |\n| `npm run build` | Type-check and build for production |\n| `npm run preview` | Preview the production build |\n| `npm run lint` | Run ESLint |\n\n### Path Alias\n\nThe `@/` alias maps to `src/`. Use it for clean imports:\n\n```ts\nimport { Button } from \"@/components/ui/button\"\nimport { cn } from \"@/utils/utils\"\n```\n\n## Local Development of This CLI Tool\n\nClone the repo and link it locally to test changes:\n\n```bash\ngit clone https://github.com/BestStarLi/react-scaffold.git\ncd react-scaffold\nnpm link\ncreate-react-scaffold test-app\n```\n\nOr run directly:\n\n```bash\nnode bin/index.js test-app\n```\n\n### How It Works\n\n1. The CLI copies the `template/` directory to your target folder\n2. Updates the project name in `package.json`\n3. Initializes a git repository\n4. Runs `npm install` to install dependencies\n\n## Publishing\n\nTo publish a new version to npm:\n\n```bash\nnpm publish --access public\n```\n\n## License\n\nMIT\n\n---\n\n<p align=\"center\">Built with ❤️ by <a href=\"https://github.com/BestStarLi\">BestStar</a></p>\n","readmeFilename":"README.md"}