rapidkit 0.24.2 → 0.25.1
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 +61 -23
- package/dist/chunk-3MJ2BD56.js +786 -0
- package/dist/chunk-UOGFCKQ5.js +33 -0
- package/dist/chunk-Z5LKRG57.js +1 -0
- package/dist/{create-3OT5GA5W.js → create-PELQEDCF.js} +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +223 -195
- package/dist/package.json +8 -3
- package/dist/{pythonRapidkitExec-EXCX5QGH.js → pythonRapidkitExec-K2SFGAYJ.js} +1 -1
- package/dist/{workspace-6SADFTND.js → workspace-PIBFBNRA.js} +52 -49
- package/package.json +8 -3
- package/dist/chunk-5JB4MOC5.js +0 -33
- package/dist/chunk-XP4GTL4L.js +0 -776
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# RapidKit NPM CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> RapidKit is an open-source workspace platform that standardizes how teams build, scale, and deploy backend services.
|
|
4
4
|
|
|
5
5
|
FastAPI, NestJS, Go/Fiber, and Go/Gin scaffolding with production-ready defaults.
|
|
6
6
|
**27+ plug-and-play modules** are available for FastAPI & NestJS projects.
|
|
@@ -10,6 +10,7 @@ Clean architecture • Zero boilerplate • Instant deployment.
|
|
|
10
10
|
[](https://www.npmjs.com/package/rapidkit)
|
|
11
11
|
[](https://opensource.org/licenses/MIT)
|
|
12
12
|
[](https://github.com/getrapidkit/rapidkit-npm/stargazers)
|
|
13
|
+
[](https://github.com/getrapidkit/rapidkit)
|
|
13
14
|
|
|
14
15
|
Official CLI for creating and operating RapidKit workspaces and projects.
|
|
15
16
|
|
|
@@ -18,6 +19,17 @@ Official CLI for creating and operating RapidKit workspaces and projects.
|
|
|
18
19
|
- Profile + policy enforcement (`warn` / `strict`)
|
|
19
20
|
- Cache and mirror lifecycle commands for stable environments
|
|
20
21
|
|
|
22
|
+
## Part of the RapidKit Ecosystem
|
|
23
|
+
|
|
24
|
+
RapidKit NPM CLI is the developer entrypoint layer of the platform.
|
|
25
|
+
|
|
26
|
+
| Layer | Repository |
|
|
27
|
+
|---|---|
|
|
28
|
+
| Ecosystem Hub | [getrapidkit/rapidkit](https://github.com/getrapidkit/rapidkit) |
|
|
29
|
+
| IDE | [getrapidkit/rapidkit-vscode](https://github.com/getrapidkit/rapidkit-vscode) |
|
|
30
|
+
| Core Engine | [getrapidkit/rapidkit-core](https://github.com/getrapidkit/rapidkit-core) |
|
|
31
|
+
| Examples | [getrapidkit/rapidkit-examples](https://github.com/getrapidkit/rapidkit-examples) |
|
|
32
|
+
|
|
21
33
|
## Requirements
|
|
22
34
|
|
|
23
35
|
- Node.js `>= 20.19.6`
|
|
@@ -36,30 +48,32 @@ Or run directly with `npx`:
|
|
|
36
48
|
npx rapidkit --help
|
|
37
49
|
```
|
|
38
50
|
|
|
51
|
+
All three commands above render the same root help output.
|
|
52
|
+
|
|
39
53
|
## Quick Start (Recommended)
|
|
40
54
|
|
|
41
55
|
### 1) Create a workspace
|
|
42
56
|
|
|
43
57
|
```bash
|
|
44
|
-
rapidkit create workspace my-workspace --yes --profile polyglot
|
|
58
|
+
npx rapidkit create workspace my-workspace --yes --profile polyglot
|
|
45
59
|
cd my-workspace
|
|
46
60
|
```
|
|
47
61
|
|
|
48
62
|
### 2) Bootstrap and setup runtimes
|
|
49
63
|
|
|
50
64
|
```bash
|
|
51
|
-
rapidkit bootstrap --profile polyglot
|
|
52
|
-
rapidkit setup python
|
|
53
|
-
rapidkit setup node --warm-deps
|
|
54
|
-
rapidkit setup go --warm-deps
|
|
65
|
+
npx rapidkit bootstrap --profile polyglot
|
|
66
|
+
npx rapidkit setup python
|
|
67
|
+
npx rapidkit setup node --warm-deps
|
|
68
|
+
npx rapidkit setup go --warm-deps
|
|
55
69
|
```
|
|
56
70
|
|
|
57
71
|
### 3) Create projects
|
|
58
72
|
|
|
59
73
|
```bash
|
|
60
|
-
rapidkit create project fastapi.standard my-api --yes --skip-install
|
|
61
|
-
rapidkit create project nestjs.standard my-nest --yes --skip-install
|
|
62
|
-
rapidkit create project gofiber.standard my-fiber --yes --skip-install
|
|
74
|
+
npx rapidkit create project fastapi.standard my-api --yes --skip-install
|
|
75
|
+
npx rapidkit create project nestjs.standard my-nest --yes --skip-install
|
|
76
|
+
npx rapidkit create project gofiber.standard my-fiber --yes --skip-install
|
|
63
77
|
```
|
|
64
78
|
|
|
65
79
|
## Core Commands
|
|
@@ -67,28 +81,32 @@ rapidkit create project gofiber.standard my-fiber --yes --skip-install
|
|
|
67
81
|
### Workspace lifecycle
|
|
68
82
|
|
|
69
83
|
```bash
|
|
70
|
-
rapidkit create
|
|
71
|
-
rapidkit
|
|
72
|
-
rapidkit
|
|
73
|
-
rapidkit
|
|
84
|
+
npx rapidkit create # Prompts: workspace | project
|
|
85
|
+
npx rapidkit create workspace <name> [--profile <profile>] [--author <name>] [--yes]
|
|
86
|
+
npx rapidkit bootstrap [--profile <profile>] [--json]
|
|
87
|
+
npx rapidkit setup <python|node|go> [--warm-deps]
|
|
88
|
+
npx rapidkit workspace policy show
|
|
89
|
+
npx rapidkit workspace policy set <key> <value>
|
|
90
|
+
npx rapidkit doctor workspace [--fix]
|
|
91
|
+
npx rapidkit workspace list # Display all workspaces created on this system
|
|
74
92
|
```
|
|
75
93
|
|
|
76
94
|
### Project lifecycle
|
|
77
95
|
|
|
78
96
|
```bash
|
|
79
|
-
rapidkit create project <kit> <name> [--yes] [--skip-install]
|
|
80
|
-
rapidkit init
|
|
81
|
-
rapidkit dev
|
|
82
|
-
rapidkit test
|
|
83
|
-
rapidkit build
|
|
84
|
-
rapidkit start
|
|
97
|
+
npx rapidkit create project <kit> <name> [--yes] [--skip-install]
|
|
98
|
+
npx rapidkit init
|
|
99
|
+
npx rapidkit dev
|
|
100
|
+
npx rapidkit test
|
|
101
|
+
npx rapidkit build
|
|
102
|
+
npx rapidkit start
|
|
85
103
|
```
|
|
86
104
|
|
|
87
105
|
### Operations
|
|
88
106
|
|
|
89
107
|
```bash
|
|
90
|
-
rapidkit cache <status|clear|prune|repair>
|
|
91
|
-
rapidkit mirror <status|sync|verify|rotate>
|
|
108
|
+
npx rapidkit cache <status|clear|prune|repair>
|
|
109
|
+
npx rapidkit mirror <status|sync|verify|rotate>
|
|
92
110
|
```
|
|
93
111
|
|
|
94
112
|
## Profiles
|
|
@@ -107,6 +125,26 @@ rapidkit mirror <status|sync|verify|rotate>
|
|
|
107
125
|
- `warn` (default): report violations, continue
|
|
108
126
|
- `strict`: block incompatible operations
|
|
109
127
|
|
|
128
|
+
## Workspace Policy Management
|
|
129
|
+
|
|
130
|
+
Manage `.rapidkit/policies.yml` via CLI (recommended, avoids manual YAML edits):
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
npx rapidkit workspace policy show
|
|
134
|
+
npx rapidkit workspace policy set mode strict
|
|
135
|
+
npx rapidkit workspace policy set dependency_sharing_mode shared-runtime-caches
|
|
136
|
+
npx rapidkit workspace policy set rules.enforce_toolchain_lock true
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Supported keys:
|
|
140
|
+
- `mode`
|
|
141
|
+
- `dependency_sharing_mode`
|
|
142
|
+
- `rules.enforce_workspace_marker`
|
|
143
|
+
- `rules.enforce_toolchain_lock`
|
|
144
|
+
- `rules.disallow_untrusted_tool_sources`
|
|
145
|
+
- `rules.enforce_compatibility_matrix`
|
|
146
|
+
- `rules.require_mirror_lock_for_offline`
|
|
147
|
+
|
|
110
148
|
## Setup and Warm Dependencies
|
|
111
149
|
|
|
112
150
|
`setup <runtime>` validates toolchain and updates `.rapidkit/toolchain.lock`.
|
|
@@ -170,12 +208,12 @@ Link local CLI globally for manual testing:
|
|
|
170
208
|
|
|
171
209
|
```bash
|
|
172
210
|
npm run install:local
|
|
173
|
-
rapidkit --version
|
|
211
|
+
npx rapidkit --version
|
|
174
212
|
```
|
|
175
213
|
|
|
176
214
|
## Troubleshooting
|
|
177
215
|
|
|
178
|
-
- If setup output looks stale, run `rapidkit setup <runtime>` again to refresh `.rapidkit/toolchain.lock`.
|
|
216
|
+
- If setup output looks stale, run `npx rapidkit setup <runtime>` again to refresh `.rapidkit/toolchain.lock`.
|
|
179
217
|
- If dependency warm-up is skipped, verify you are inside the corresponding project directory (`package.json` for Node, `go.mod` for Go).
|
|
180
218
|
- For strict-mode blocks, inspect `.rapidkit/policies.yml` and workspace profile in `.rapidkit/workspace.json`.
|
|
181
219
|
|