shadcn-scaffold 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,15 +1,73 @@
1
- # cli-tool
1
+ # shadcn-scaffold
2
2
 
3
- To install dependencies:
3
+ Scaffold Vite + React + shadcn/ui apps from the terminal.
4
+
5
+ ## Install
6
+
7
+ Install globally:
8
+
9
+ ```bash
10
+ npm install -g shadcn-scaffold
11
+ ```
12
+
13
+ Or use Bun:
14
+
15
+ ```bash
16
+ bun add -g shadcn-scaffold
17
+ ```
18
+
19
+ Run it without a global install:
20
+
21
+ ```bash
22
+ npx shadcn-scaffold my-app
23
+ bunx shadcn-scaffold my-app
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ Create a new app:
29
+
30
+ ```bash
31
+ scaffold my-app
32
+ ```
33
+
34
+ The CLI will:
35
+
36
+ - create a Vite React app
37
+ - configure Tailwind CSS
38
+ - initialize shadcn/ui
39
+ - add the `button` component
40
+ - set up a theme provider and theme toggle
41
+ - let you optionally install extra packages
42
+
43
+ ## Development
44
+
45
+ Install dependencies:
4
46
 
5
47
  ```bash
6
48
  bun install
7
49
  ```
8
50
 
9
- To run:
51
+ Run the CLI locally:
10
52
 
11
53
  ```bash
12
- bun run index.ts
54
+ bun run dev -- my-app
13
55
  ```
14
56
 
15
- This project was created using `bun init` in bun v1.3.10. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
57
+ Build the publishable output:
58
+
59
+ ```bash
60
+ bun run build
61
+ ```
62
+
63
+ ## Publish
64
+
65
+ This package publishes a `scaffold` command, even though the npm package name is `shadcn-scaffold`.
66
+
67
+ ```json
68
+ {
69
+ "bin": {
70
+ "scaffold": "./dist/index.js"
71
+ }
72
+ }
73
+ ```
package/dist/create.js CHANGED
@@ -3,7 +3,7 @@ import { execa } from "execa";
3
3
  import chalk from "chalk";
4
4
  import fs from "fs";
5
5
  import path from "path";
6
- import { appTsxCode, indexCss, mainTsxCode, modeToggleCode, themeProviderCode, viteConfig, } from "./templates";
6
+ import { appTsxCode, indexCss, mainTsxCode, modeToggleCode, themeProviderCode, viteConfig, } from "./templates.js";
7
7
  export async function create(projectName, packages) {
8
8
  const spinner = ora("Scaffolding Vite React app...").start();
9
9
  try {
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "shadcn-scaffold",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
+ "description": "Scaffold Vite + React + shadcn/ui apps from the terminal",
5
+ "keywords": [
6
+ "cli",
7
+ "scaffold",
8
+ "shadcn",
9
+ "vite",
10
+ "react"
11
+ ],
12
+ "license": "MIT",
4
13
  "bin": {
5
14
  "scaffold": "./dist/index.js"
6
15
  },