@minus-ai/create-skill 0.1.0-beta.3 → 0.1.0-beta.4
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/package.json
CHANGED
package/templates/README.md.tpl
CHANGED
|
@@ -6,7 +6,7 @@ Minus Skill 项目,由 `create-skill` 脚手架生成。
|
|
|
6
6
|
|
|
7
7
|
| 依赖 | 最低版本 | 说明 |
|
|
8
8
|
|---|---|---|
|
|
9
|
-
| Node.js | >=
|
|
9
|
+
| Node.js | >= 24 | 前端构建和开发服务 |
|
|
10
10
|
| pnpm | >= 9 | 包管理(全局 store 共享,多 skill 不重复下载) |
|
|
11
11
|
| Python | >= 3.12 | 后端 Pipeline 运行时 |
|
|
12
12
|
| uv | >= 0.4 | Python 包管理(全局缓存,秒级安装) |
|
|
@@ -72,7 +72,7 @@ pnpm run dev
|
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
这会同时启动:
|
|
75
|
-
- **后端** — `uvicorn` 监听 `http://
|
|
75
|
+
- **后端** — `uvicorn` 监听 `http://127.0.0.1:{{port}}`,修改 `.py` 文件自动重载
|
|
76
76
|
- **前端** — `vite` 开发服务,修改前端代码自动热更新
|
|
77
77
|
|
|
78
78
|
单独启动前端:
|
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
"description": "{{description}}",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=24"
|
|
8
|
+
},
|
|
9
|
+
"volta": {
|
|
10
|
+
"node": "24.16.0",
|
|
11
|
+
"pnpm": "11.4.0"
|
|
12
|
+
},
|
|
6
13
|
"workspaces": ["frontend"],
|
|
7
14
|
"scripts": {
|
|
8
15
|
"dev": "minus-dev-cleanup && mkdir -p .minus && echo $$ > .minus/dev.pid && concurrently -n skill,fe \".venv/bin/uvicorn server:app --port {{port}} --reload --reload-include '*.py' --reload-include '.env.local' --env-file .env.local\" \"cd frontend && pnpm exec vite\"",
|
|
@@ -12,8 +19,5 @@
|
|
|
12
19
|
"devDependencies": {
|
|
13
20
|
"@minus-ai/dev-vite-plugin": "^0.1.0-beta.1",
|
|
14
21
|
"concurrently": "^9.1.2"
|
|
15
|
-
},
|
|
16
|
-
"pnpm": {
|
|
17
|
-
"onlyBuiltDependencies": ["esbuild"]
|
|
18
22
|
}
|
|
19
23
|
}
|
|
@@ -4,7 +4,7 @@ import path from 'node:path';
|
|
|
4
4
|
import { minusDev } from '@minus-ai/dev-vite-plugin';
|
|
5
5
|
|
|
6
6
|
export default defineConfig({
|
|
7
|
-
plugins: [react(), ...minusDev({ localBackend: 'http://
|
|
7
|
+
plugins: [react(), ...minusDev({ localBackend: 'http://127.0.0.1:{{port}}' })],
|
|
8
8
|
build: {
|
|
9
9
|
target: 'esnext',
|
|
10
10
|
outDir: path.resolve(__dirname, '../static'),
|