@robsun/create-keystone-app 0.1.3 → 0.1.5
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 +10 -0
- package/package.json +3 -2
- package/template/apps/web/index.html +1 -1
- package/template/apps/web/package.json +1 -1
- package/template/apps/web/src/app.config.ts +1 -1
- package/template/apps/web/src/main.tsx +1 -1
- package/template/apps/web/src/vite-env.d.ts +1 -1
- package/template/apps/web/tsconfig.app.json +1 -1
- package/template/apps/web/tsconfig.json +1 -1
- package/template/apps/web/tsconfig.node.json +1 -1
- package/template/apps/web/vite.config.ts +1 -1
- package/template/config.yaml +1 -1
- package/template/package.json +1 -1
- package/template/pnpm-workspace.yaml +1 -1
package/README.md
CHANGED
|
@@ -10,3 +10,13 @@ pnpm dlx @robsun/create-keystone-app <dir> [--demo]
|
|
|
10
10
|
- `<dir>`:目标目录(必填)。新目录名或 `.`(当前目录)。
|
|
11
11
|
- `--demo`:生成 Demo 模块(默认不生成)。
|
|
12
12
|
- 目标目录必须为空;不为空会退出。
|
|
13
|
+
|
|
14
|
+
## 初始化后操作
|
|
15
|
+
```bash
|
|
16
|
+
cd <dir>
|
|
17
|
+
pnpm install
|
|
18
|
+
pnpm server:dev
|
|
19
|
+
pnpm dev
|
|
20
|
+
```
|
|
21
|
+
- Web 默认端口:`3000`,后端默认端口:`8080`。
|
|
22
|
+
- `--demo` 模式下:Demo API 为 `/api/v1/demo/tasks`。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robsun/create-keystone-app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"bin",
|
|
12
|
-
"template"
|
|
12
|
+
"template",
|
|
13
|
+
"README.md"
|
|
13
14
|
],
|
|
14
15
|
"engines": {
|
|
15
16
|
"node": ">=18"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="vite/client" />
|
package/template/config.yaml
CHANGED
package/template/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
packages:
|
|
2
2
|
- "apps/*"
|