kira-kit 0.2.0
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 +87 -0
- package/bin/kira-kit.js +27329 -0
- package/bun.lock +247 -0
- package/package.json +43 -0
- package/src/commands/add.ts +146 -0
- package/src/commands/build.ts +212 -0
- package/src/commands/init.ts +160 -0
- package/src/commands/list.ts +31 -0
- package/src/index.ts +118 -0
- package/src/lib/build-config.ts +81 -0
- package/src/lib/config.ts +109 -0
- package/src/lib/deps.ts +135 -0
- package/src/lib/file.ts +64 -0
- package/src/lib/logger.ts +102 -0
- package/src/lib/registry.ts +81 -0
- package/src/lib/templates.ts +123 -0
- package/src/lib/theme-generator.ts +246 -0
- package/src/prompts/base-color.ts +20 -0
- package/src/prompts/primary-color.ts +23 -0
- package/src/prompts/project-type.ts +71 -0
- package/src/types.ts +61 -0
- package/tsconfig.json +22 -0
package/README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Kira Kit CLI
|
|
2
|
+
|
|
3
|
+
CLI tool for adding Kira Kit components to your React project.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Global install
|
|
9
|
+
npm install -g kira-kit
|
|
10
|
+
|
|
11
|
+
# Or use with npx
|
|
12
|
+
npx kira-kit add button
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
### Initialize
|
|
18
|
+
|
|
19
|
+
Initialize Kira Kit in your project with interactive color selection:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
kira-kit init
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Options:
|
|
26
|
+
- `--base-color <color>` - Base color (slate, gray, zinc, neutral, stone)
|
|
27
|
+
- `--primary-color <color>` - Primary color (blue, green, orange, pink, purple, red, violet, yellow)
|
|
28
|
+
- `--cwd <directory>` - Working directory
|
|
29
|
+
- `-y, --yes` - Skip prompts and use defaults
|
|
30
|
+
|
|
31
|
+
### Add Components
|
|
32
|
+
|
|
33
|
+
Add one or more components to your project:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Add single component
|
|
37
|
+
kira-kit add button
|
|
38
|
+
|
|
39
|
+
# Add multiple components
|
|
40
|
+
kira-kit add button card dialog
|
|
41
|
+
|
|
42
|
+
# Add all components
|
|
43
|
+
kira-kit add --all
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Options:
|
|
47
|
+
- `--cwd <directory>` - Working directory
|
|
48
|
+
- `-o, --overwrite` - Overwrite existing files
|
|
49
|
+
- `-y, --yes` - Skip prompts
|
|
50
|
+
|
|
51
|
+
### Build Registry
|
|
52
|
+
|
|
53
|
+
Build registry JSON files (used for distribution):
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
kira-kit build
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### List Components
|
|
60
|
+
|
|
61
|
+
List all available components:
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
kira-kit list
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Examples
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# Initialize with specific colors
|
|
71
|
+
kira-kit init --base-color neutral --primary-color blue
|
|
72
|
+
|
|
73
|
+
# Add components
|
|
74
|
+
kira-kit add button checkbox input --overwrite
|
|
75
|
+
|
|
76
|
+
# List available components
|
|
77
|
+
kira-kit list
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Requirements
|
|
81
|
+
|
|
82
|
+
- Node.js 18+
|
|
83
|
+
- Bun (recommended) or npm/pnpm/yarn
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
MIT
|