kimu-cli 0.1.0 → 1.0.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/CHANGELOG.md +47 -2
- package/README.md +21 -10
- package/bin/kimu.js +6 -4
- package/dist/commands/install.d.ts +3 -0
- package/dist/commands/install.d.ts.map +1 -0
- package/dist/commands/install.js +58 -0
- package/dist/commands/install.js.map +1 -0
- package/dist/commands/list.d.ts +3 -0
- package/dist/commands/list.d.ts.map +1 -0
- package/dist/commands/list.js +167 -0
- package/dist/commands/list.js.map +1 -0
- package/dist/commands/new.d.ts +16 -0
- package/dist/commands/new.d.ts.map +1 -0
- package/dist/commands/new.js +316 -0
- package/dist/commands/new.js.map +1 -0
- package/dist/config/constants.d.ts +1 -1
- package/dist/config/constants.d.ts.map +1 -1
- package/dist/config/constants.js +6 -1
- package/dist/config/constants.js.map +1 -1
- package/dist/types/cli-types.d.ts +7 -0
- package/dist/types/cli-types.d.ts.map +1 -1
- package/dist/utils/module-installer.d.ts +11 -0
- package/dist/utils/module-installer.d.ts.map +1 -0
- package/dist/utils/module-installer.js +21 -0
- package/dist/utils/module-installer.js.map +1 -0
- package/dist/utils/registry.d.ts +8 -0
- package/dist/utils/registry.d.ts.map +1 -0
- package/dist/utils/registry.js +109 -0
- package/dist/utils/registry.js.map +1 -0
- package/docs/README.md +126 -0
- package/docs/command-kimu.md +14 -0
- package/docs/commands/create.md +60 -15
- package/docs/commands/install.md +52 -8
- package/docs/commands/list.md +39 -51
- package/docs/commands/new.md +626 -0
- package/docs/configuration-files.md +192 -0
- package/docs/getting-started.md +386 -0
- package/docs/index.md +57 -27
- package/docs/intro.md +30 -8
- package/docs/quick-reference.md +335 -0
- package/package.json +101 -101
- package/templates/generators/README.md +76 -0
- package/templates/generators/extension/config.json +45 -0
- package/templates/generators/extension/templates/component.ts.template +66 -0
- package/templates/generators/extension/templates/style.css.template +40 -0
- package/templates/generators/extension/templates/view.html.template +9 -0
- package/templates/generators/module/config.json +35 -0
- package/templates/generators/module/templates/README.md.template +62 -0
- package/templates/generators/module/templates/module.ts.template +36 -0
- package/templates/generators/module/templates/service.ts.template +41 -0
- package/docs/command-kimu-new.md +0 -207
- package/docs/command-kimu-old.md +0 -51
package/docs/index.md
CHANGED
|
@@ -5,8 +5,10 @@ Welcome to the complete documentation for KIMU-CLI, the official command-line in
|
|
|
5
5
|
## 📖 Getting Started
|
|
6
6
|
|
|
7
7
|
### Essential Reading
|
|
8
|
+
- [**Getting Started Guide**](getting-started.md) - ⭐ **Start here!** Complete installation and first project tutorial
|
|
9
|
+
- [**Quick Reference**](quick-reference.md) - 🚀 Common commands and workflows at a glance
|
|
8
10
|
- [Introduction to KIMU-CLI](intro.md) - Overview and core concepts
|
|
9
|
-
- [Distribution & Installation Guide](distribution.md) -
|
|
11
|
+
- [Distribution & Installation Guide](distribution.md) - Advanced installation, building, and publishing
|
|
10
12
|
- [Command Reference](command-kimu.md) - Complete command overview and usage
|
|
11
13
|
|
|
12
14
|
## ⚡ Quick References
|
|
@@ -15,6 +17,9 @@ Welcome to the complete documentation for KIMU-CLI, the official command-line in
|
|
|
15
17
|
| Command | Description | Documentation |
|
|
16
18
|
|---------|-------------|---------------|
|
|
17
19
|
| `create` | Create new KIMU projects | [📖 docs](commands/create.md) |
|
|
20
|
+
| `new` | Create components from templates | [📖 docs](commands/new.md) |
|
|
21
|
+
| `install` | Install modules and extensions | [📖 docs](commands/install.md) ✅ |
|
|
22
|
+
| `list` | Browse and discover packages | [📖 docs](commands/list.md) ✅ |
|
|
18
23
|
| `info` | Show project information | [📖 docs](commands/info.md) |
|
|
19
24
|
| `version` | Show version information | [📖 docs](commands/version.md) |
|
|
20
25
|
| `help` | Command help system | [📖 docs](commands/help.md) |
|
|
@@ -22,9 +27,7 @@ Welcome to the complete documentation for KIMU-CLI, the official command-line in
|
|
|
22
27
|
### Planned Commands (Coming Soon)
|
|
23
28
|
| Command | Description | Documentation |
|
|
24
29
|
|---------|-------------|---------------|
|
|
25
|
-
| `install` | Install modules and extensions | [📖 docs](commands/install.md) ⏳ |
|
|
26
30
|
| `remove` | Remove modules and extensions | [📖 docs](commands/remove.md) ⏳ |
|
|
27
|
-
| `list` | Browse available packages | [📖 docs](commands/list.md) ⏳ |
|
|
28
31
|
| `build` | Build for production | [📖 docs](commands/build.md) ⏳ |
|
|
29
32
|
| `dev` | Development server | [📖 docs](commands/dev.md) ⏳ |
|
|
30
33
|
| `serve` | Serve built project | [📖 docs](commands/serve.md) ⏳ |
|
|
@@ -33,16 +36,18 @@ Welcome to the complete documentation for KIMU-CLI, the official command-line in
|
|
|
33
36
|
## 🎯 Use Case Guides
|
|
34
37
|
|
|
35
38
|
### For New Users
|
|
36
|
-
1. **First Time Setup**: Start with [
|
|
37
|
-
2. **
|
|
38
|
-
3. **
|
|
39
|
-
4. **
|
|
39
|
+
1. **First Time Setup**: Start with [**Getting Started Guide**](getting-started.md) ⭐
|
|
40
|
+
2. **Understand the Tool**: Read the [Introduction](intro.md) to understand KIMU-CLI
|
|
41
|
+
3. **Installation Methods**: Follow the [Distribution Guide](distribution.md) for advanced options
|
|
42
|
+
4. **Create Your First Project**: Use [`kimu create`](commands/create.md)
|
|
43
|
+
5. **Learn the Commands**: Browse the [Command Reference](command-kimu.md)
|
|
40
44
|
|
|
41
45
|
### For Developers
|
|
42
|
-
1. **
|
|
43
|
-
2. **
|
|
44
|
-
3. **
|
|
45
|
-
4. **
|
|
46
|
+
1. **Quick Start**: Follow [Getting Started](getting-started.md) for complete workflow
|
|
47
|
+
2. **Project Setup**: Use [`kimu create`](commands/create.md) and [`kimu info`](commands/info.md)
|
|
48
|
+
3. **Development**: Use `npm run dev` for hot reload development
|
|
49
|
+
4. **Building**: Use `npm run build` for production builds
|
|
50
|
+
5. **Package Management**: Future [`kimu install`](commands/install.md) and [`kimu list`](commands/list.md)
|
|
46
51
|
|
|
47
52
|
### For Maintainers
|
|
48
53
|
1. **Building and Distribution**: Follow [Distribution Guide](distribution.md)
|
|
@@ -54,36 +59,51 @@ Welcome to the complete documentation for KIMU-CLI, the official command-line in
|
|
|
54
59
|
```
|
|
55
60
|
docs/
|
|
56
61
|
├── index.md # This file - documentation index
|
|
62
|
+
├── getting-started.md # ⭐ Complete installation and tutorial
|
|
57
63
|
├── intro.md # Introduction and overview
|
|
58
64
|
├── command-kimu.md # Complete command reference
|
|
59
|
-
├── distribution.md #
|
|
65
|
+
├── distribution.md # Advanced installation and distribution
|
|
60
66
|
└── commands/ # Individual command documentation
|
|
61
|
-
├── create.md # ✅ Available
|
|
62
|
-
├── info.md # ✅ Available
|
|
63
|
-
├── version.md # ✅ Available
|
|
64
|
-
├── help.md # ✅ Available
|
|
65
|
-
├── install.md # ⏳ Planned
|
|
66
|
-
├── remove.md # ⏳ Planned
|
|
67
|
-
├── list.md # ⏳ Planned
|
|
68
|
-
├── build.md # ⏳ Planned
|
|
69
|
-
├── dev.md # ⏳ Planned
|
|
70
|
-
├── serve.md # ⏳ Planned
|
|
71
|
-
└── doctor.md # ⏳ Planned
|
|
67
|
+
├── create.md # ✅ Available - Create new projects
|
|
68
|
+
├── info.md # ✅ Available - Project information
|
|
69
|
+
├── version.md # ✅ Available - Version information
|
|
70
|
+
├── help.md # ✅ Available - Help system
|
|
71
|
+
├── install.md # ⏳ Planned - Install modules/extensions
|
|
72
|
+
├── remove.md # ⏳ Planned - Remove packages
|
|
73
|
+
├── list.md # ⏳ Planned - List packages
|
|
74
|
+
├── build.md # ⏳ Planned - Build for production
|
|
75
|
+
├── dev.md # ⏳ Planned - Development server
|
|
76
|
+
├── serve.md # ⏳ Planned - Serve built project
|
|
77
|
+
└── doctor.md # ⏳ Planned - Project diagnostics
|
|
72
78
|
```
|
|
73
79
|
|
|
74
80
|
## 🚀 Quick Start Examples
|
|
75
81
|
|
|
76
|
-
###
|
|
82
|
+
### Installation
|
|
83
|
+
|
|
84
|
+
**Global Installation (Recommended)**
|
|
77
85
|
```bash
|
|
78
|
-
# Install KIMU-CLI globally
|
|
79
86
|
npm install -g kimu-cli
|
|
87
|
+
```
|
|
80
88
|
|
|
89
|
+
**Using npx (No Installation)**
|
|
90
|
+
```bash
|
|
91
|
+
npx kimu-cli create my-awesome-app
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Create and Setup New Project
|
|
95
|
+
```bash
|
|
81
96
|
# Create new project
|
|
82
97
|
kimu create my-awesome-app --git
|
|
83
98
|
|
|
84
|
-
# Navigate
|
|
99
|
+
# Navigate to project
|
|
85
100
|
cd my-awesome-app
|
|
101
|
+
|
|
102
|
+
# Check project info
|
|
86
103
|
kimu info --verbose
|
|
104
|
+
|
|
105
|
+
# Start development server
|
|
106
|
+
npm run dev
|
|
87
107
|
```
|
|
88
108
|
|
|
89
109
|
### Get Help and Information
|
|
@@ -94,10 +114,20 @@ kimu help
|
|
|
94
114
|
# Get specific command help
|
|
95
115
|
kimu create --help
|
|
96
116
|
|
|
97
|
-
# Check
|
|
117
|
+
# Check CLI version
|
|
118
|
+
kimu --version
|
|
119
|
+
|
|
120
|
+
# Detailed version info
|
|
98
121
|
kimu version --verbose
|
|
99
122
|
```
|
|
100
123
|
|
|
124
|
+
## 📦 NPM Package
|
|
125
|
+
|
|
126
|
+
- **Package**: [kimu-cli on npm](https://www.npmjs.com/package/kimu-cli)
|
|
127
|
+
- **Repository**: [GitHub - UnicoVerso/kimu-cli](https://github.com/UnicoVerso/kimu-cli)
|
|
128
|
+
- **Current Version**: Check with `kimu --version`
|
|
129
|
+
- **License**: MPL-2.0
|
|
130
|
+
|
|
101
131
|
## 🔄 Status Legend
|
|
102
132
|
|
|
103
133
|
- ✅ **Available**: Command is implemented and ready to use
|
package/docs/intro.md
CHANGED
|
@@ -27,6 +27,7 @@ KIMU-CLI follows these principles:
|
|
|
27
27
|
|
|
28
28
|
### Project Management
|
|
29
29
|
- `kimu create` - Create new KIMU projects
|
|
30
|
+
- `kimu new` - Create components from templates (extensions, modules)
|
|
30
31
|
- `kimu info` - Show project information and status
|
|
31
32
|
- `kimu doctor` - Run project health diagnostics
|
|
32
33
|
|
|
@@ -46,25 +47,46 @@ KIMU-CLI follows these principles:
|
|
|
46
47
|
|
|
47
48
|
## Getting Started
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
### Installation
|
|
51
|
+
|
|
52
|
+
**Option 1: Global Installation (Recommended)**
|
|
53
|
+
```bash
|
|
54
|
+
npm install -g kimu-cli
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Option 2: Use with npx (No Installation)**
|
|
58
|
+
```bash
|
|
59
|
+
npx kimu-cli create my-first-app
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Verify Installation**
|
|
63
|
+
```bash
|
|
64
|
+
kimu --version
|
|
65
|
+
kimu --help
|
|
66
|
+
```
|
|
53
67
|
|
|
54
|
-
|
|
68
|
+
### Quick Start
|
|
69
|
+
|
|
70
|
+
1. **Create your first project**:
|
|
55
71
|
```bash
|
|
56
72
|
kimu create my-first-app
|
|
57
73
|
cd my-first-app
|
|
58
74
|
```
|
|
59
75
|
|
|
60
|
-
|
|
76
|
+
2. **Install dependencies** (if not done automatically):
|
|
77
|
+
```bash
|
|
78
|
+
npm install
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
3. **Start development server**:
|
|
61
82
|
```bash
|
|
62
|
-
|
|
83
|
+
npm run dev
|
|
63
84
|
```
|
|
85
|
+
Your app will be available at `http://localhost:5173/`
|
|
64
86
|
|
|
65
87
|
4. **Build for production**:
|
|
66
88
|
```bash
|
|
67
|
-
|
|
89
|
+
npm run build
|
|
68
90
|
```
|
|
69
91
|
|
|
70
92
|
## System Requirements
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
# KIMU-CLI Quick Reference
|
|
2
|
+
|
|
3
|
+
A quick reference guide for the most common KIMU-CLI commands and workflows.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Global installation (recommended)
|
|
9
|
+
npm install -g kimu-cli
|
|
10
|
+
|
|
11
|
+
# Check installation
|
|
12
|
+
kimu --version
|
|
13
|
+
|
|
14
|
+
# Update to latest version
|
|
15
|
+
npm update -g kimu-cli
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Project Creation
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# Basic project creation
|
|
22
|
+
kimu create my-app
|
|
23
|
+
|
|
24
|
+
# With git initialization
|
|
25
|
+
kimu create my-app --git
|
|
26
|
+
|
|
27
|
+
# Skip npm install (manual installation later)
|
|
28
|
+
kimu create my-app --no-install
|
|
29
|
+
|
|
30
|
+
# Force overwrite existing directory
|
|
31
|
+
kimu create my-app --force
|
|
32
|
+
|
|
33
|
+
# Using npx (no global installation)
|
|
34
|
+
npx kimu-cli create my-app
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Component Generation
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
# Create new extension
|
|
41
|
+
kimu new extension my-feature
|
|
42
|
+
|
|
43
|
+
# Create new module
|
|
44
|
+
kimu new module analytics
|
|
45
|
+
|
|
46
|
+
# With custom path
|
|
47
|
+
kimu new extension my-feature --path src/extensions/custom
|
|
48
|
+
|
|
49
|
+
# Force overwrite
|
|
50
|
+
kimu new extension my-feature --force
|
|
51
|
+
|
|
52
|
+
# Skip auto-registration
|
|
53
|
+
kimu new module analytics --no-register
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Project Information
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# Basic project info
|
|
60
|
+
kimu info
|
|
61
|
+
|
|
62
|
+
# Detailed information
|
|
63
|
+
kimu info --verbose
|
|
64
|
+
|
|
65
|
+
# JSON output (for scripts)
|
|
66
|
+
kimu info --json
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Version Information
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# CLI version
|
|
73
|
+
kimu --version
|
|
74
|
+
|
|
75
|
+
# Detailed version info
|
|
76
|
+
kimu version --verbose
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Help System
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
# General help
|
|
83
|
+
kimu --help
|
|
84
|
+
|
|
85
|
+
# Command-specific help
|
|
86
|
+
kimu create --help
|
|
87
|
+
kimu info --help
|
|
88
|
+
kimu version --help
|
|
89
|
+
|
|
90
|
+
# Help command
|
|
91
|
+
kimu help
|
|
92
|
+
kimu help create
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## NPM Scripts (After Project Creation)
|
|
96
|
+
|
|
97
|
+
Once you've created a project with `kimu create`, use these npm scripts:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
# Start development server
|
|
101
|
+
npm run dev
|
|
102
|
+
|
|
103
|
+
# Build for production
|
|
104
|
+
npm run build
|
|
105
|
+
|
|
106
|
+
# Preview production build
|
|
107
|
+
npm run preview
|
|
108
|
+
|
|
109
|
+
# Run linter
|
|
110
|
+
npm run lint
|
|
111
|
+
|
|
112
|
+
# Generate dev build config
|
|
113
|
+
npm run generate-config:dev
|
|
114
|
+
|
|
115
|
+
# Generate production build config
|
|
116
|
+
npm run generate-config:prod
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Common Workflows
|
|
120
|
+
|
|
121
|
+
### 1. Start a New Project
|
|
122
|
+
```bash
|
|
123
|
+
# Create project
|
|
124
|
+
kimu create my-project --git
|
|
125
|
+
|
|
126
|
+
# Navigate to it
|
|
127
|
+
cd my-project
|
|
128
|
+
|
|
129
|
+
# Start development
|
|
130
|
+
npm run dev
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### 2. Check Project Details
|
|
134
|
+
```bash
|
|
135
|
+
# Navigate to project
|
|
136
|
+
cd my-project
|
|
137
|
+
|
|
138
|
+
# View project information
|
|
139
|
+
kimu info --verbose
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### 3. Build and Deploy
|
|
143
|
+
```bash
|
|
144
|
+
# Navigate to project
|
|
145
|
+
cd my-project
|
|
146
|
+
|
|
147
|
+
# Generate production config
|
|
148
|
+
npm run generate-config:prod
|
|
149
|
+
|
|
150
|
+
# Build for production
|
|
151
|
+
npm run build
|
|
152
|
+
|
|
153
|
+
# Test production build locally
|
|
154
|
+
npm run preview
|
|
155
|
+
|
|
156
|
+
# Deploy dist/ folder to your hosting
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### 4. Update KIMU CLI
|
|
160
|
+
```bash
|
|
161
|
+
# Check current version
|
|
162
|
+
kimu --version
|
|
163
|
+
|
|
164
|
+
# Update to latest
|
|
165
|
+
npm update -g kimu-cli
|
|
166
|
+
|
|
167
|
+
# Verify update
|
|
168
|
+
kimu --version
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## Project Structure Reference
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
my-project/
|
|
175
|
+
├── src/
|
|
176
|
+
│ ├── core/ # KIMU framework core
|
|
177
|
+
│ ├── extensions/ # UI extensions
|
|
178
|
+
│ ├── modules/ # Modules (router, i18n)
|
|
179
|
+
│ └── main.ts # Application entry
|
|
180
|
+
├── public/ # Static assets
|
|
181
|
+
├── scripts/ # Build scripts
|
|
182
|
+
├── dist/ # Build output
|
|
183
|
+
├── kimu.config.json # KIMU configuration
|
|
184
|
+
├── kimu-build-config.ts # Build config (generated)
|
|
185
|
+
├── package.json # Dependencies
|
|
186
|
+
├── tsconfig.json # TypeScript config
|
|
187
|
+
├── vite.config.ts # Vite config
|
|
188
|
+
└── README.md # Project docs
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Key Configuration Files
|
|
192
|
+
|
|
193
|
+
### kimu.config.json
|
|
194
|
+
```json
|
|
195
|
+
{
|
|
196
|
+
"name": "my-project",
|
|
197
|
+
"version": "1.0.0",
|
|
198
|
+
"kimuCore": "^0.4.0",
|
|
199
|
+
"modules": {
|
|
200
|
+
"installed": [],
|
|
201
|
+
"registry": "https://github.com/unicoverso/kimu-modules"
|
|
202
|
+
},
|
|
203
|
+
"extensions": {
|
|
204
|
+
"installed": ["kimu-home"],
|
|
205
|
+
"main": "kimu-home"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### package.json (key scripts)
|
|
211
|
+
```json
|
|
212
|
+
{
|
|
213
|
+
"scripts": {
|
|
214
|
+
"dev": "vite",
|
|
215
|
+
"build": "vite build",
|
|
216
|
+
"preview": "vite preview",
|
|
217
|
+
"lint": "eslint src/**/*.ts"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
## Environment Variables
|
|
223
|
+
|
|
224
|
+
Create a `.env` file in your project root:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
# Development
|
|
228
|
+
VITE_API_URL=http://localhost:3000
|
|
229
|
+
VITE_ENV=development
|
|
230
|
+
|
|
231
|
+
# Production
|
|
232
|
+
VITE_API_URL=https://api.myapp.com
|
|
233
|
+
VITE_ENV=production
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
Access in code:
|
|
237
|
+
```typescript
|
|
238
|
+
const apiUrl = import.meta.env.VITE_API_URL;
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
## Troubleshooting
|
|
242
|
+
|
|
243
|
+
### Command not found: kimu
|
|
244
|
+
```bash
|
|
245
|
+
# Check npm global bin location
|
|
246
|
+
npm config get prefix
|
|
247
|
+
|
|
248
|
+
# Add to PATH (bash/zsh)
|
|
249
|
+
echo 'export PATH="$(npm config get prefix)/bin:$PATH"' >> ~/.zshrc
|
|
250
|
+
source ~/.zshrc
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Port already in use
|
|
254
|
+
```bash
|
|
255
|
+
# Kill process on port 5173
|
|
256
|
+
lsof -ti:5173 | xargs kill -9
|
|
257
|
+
|
|
258
|
+
# Or use different port
|
|
259
|
+
vite --port 3000
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
### Clean install
|
|
263
|
+
```bash
|
|
264
|
+
# Remove dependencies and build
|
|
265
|
+
rm -rf node_modules dist
|
|
266
|
+
|
|
267
|
+
# Reinstall
|
|
268
|
+
npm install
|
|
269
|
+
|
|
270
|
+
# Rebuild
|
|
271
|
+
npm run build
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Update dependencies
|
|
275
|
+
```bash
|
|
276
|
+
# Check for updates
|
|
277
|
+
npm outdated
|
|
278
|
+
|
|
279
|
+
# Update all dependencies
|
|
280
|
+
npm update
|
|
281
|
+
|
|
282
|
+
# Update specific package
|
|
283
|
+
npm update kimu-core
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
## Tips and Tricks
|
|
287
|
+
|
|
288
|
+
### Faster npm installs
|
|
289
|
+
```bash
|
|
290
|
+
# Use npm ci for clean installs (faster)
|
|
291
|
+
npm ci
|
|
292
|
+
|
|
293
|
+
# Or use pnpm (faster alternative)
|
|
294
|
+
npm install -g pnpm
|
|
295
|
+
pnpm install
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
### Development mode with custom port
|
|
299
|
+
```bash
|
|
300
|
+
# Edit package.json
|
|
301
|
+
"dev": "vite --port 3000 --host"
|
|
302
|
+
|
|
303
|
+
# Or use CLI flag
|
|
304
|
+
npm run dev -- --port 3000
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
### Production build analysis
|
|
308
|
+
```bash
|
|
309
|
+
# Install bundle analyzer
|
|
310
|
+
npm install --save-dev rollup-plugin-visualizer
|
|
311
|
+
|
|
312
|
+
# Add to vite.config.ts for build stats
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
### Git workflow
|
|
316
|
+
```bash
|
|
317
|
+
# Initial commit (if created with --git)
|
|
318
|
+
git add .
|
|
319
|
+
git commit -m "Initial commit"
|
|
320
|
+
|
|
321
|
+
# Add remote and push
|
|
322
|
+
git remote add origin <your-repo-url>
|
|
323
|
+
git push -u origin main
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
## Next Steps
|
|
327
|
+
|
|
328
|
+
- **Documentation**: [Full Docs](../docs/index.md)
|
|
329
|
+
- **Getting Started**: [Complete Tutorial](getting-started.md)
|
|
330
|
+
- **Commands**: [Command Reference](command-kimu.md)
|
|
331
|
+
- **Examples**: [KIMU Examples](https://github.com/UnicoVerso/kimu-extensions-example)
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
Need more help? Check the [complete documentation](index.md) or [open an issue](https://github.com/UnicoVerso/kimu-cli/issues).
|