@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 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",
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,4 +1,4 @@
1
- <!doctype html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "name": "web",
3
3
  "private": true,
4
4
  "version": "0.0.0",
@@ -1,4 +1,4 @@
1
- import type { KeystoneWebConfig } from '@robsun/keystone-web-core'
1
+ import type { KeystoneWebConfig } from '@robsun/keystone-web-core'
2
2
 
3
3
  export const appConfig: Partial<KeystoneWebConfig> = {
4
4
  brand: {
@@ -1,4 +1,4 @@
1
- import { StrictMode } from 'react'
1
+ import { StrictMode } from 'react'
2
2
  import { createRoot } from 'react-dom/client'
3
3
  import dayjs from 'dayjs'
4
4
  import { KeystoneApp, getKeystoneConfig, setKeystoneConfig } from '@robsun/keystone-web-core'
@@ -1 +1 @@
1
- /// <reference types="vite/client" />
1
+ /// <reference types="vite/client" />
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "compilerOptions": {
3
3
  "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
4
  "target": "ES2022",
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "files": [],
3
3
  "references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
4
4
  }
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "compilerOptions": {
3
3
  "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
4
  "target": "ES2023",
@@ -1,4 +1,4 @@
1
- import { createKeystoneViteConfig } from '@robsun/keystone-web-core/vite'
1
+ import { createKeystoneViteConfig } from '@robsun/keystone-web-core/vite'
2
2
 
3
3
  export default createKeystoneViteConfig({
4
4
  server: {
@@ -1,4 +1,4 @@
1
- server:
1
+ server:
2
2
  port: "8080"
3
3
  mode: "debug"
4
4
  database:
@@ -1,4 +1,4 @@
1
- {
1
+ {
2
2
  "name": "__APP_NAME__",
3
3
  "private": true,
4
4
  "version": "0.1.0",
@@ -1,2 +1,2 @@
1
- packages:
1
+ packages:
2
2
  - "apps/*"