Skip to content

Commit 6965917

Browse files
authored
Merge pull request OtterMind#350 from sakka6868/patch-1
Update readme.md
2 parents 3247005 + b1ca4d0 commit 6965917

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

chat2db-client/readme.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@
1010

1111
## 启动项目
1212

13+
1314
强制使用 yarn,因为环境变量、lock 文件只维护了 yarn,npm/pnpm 可能会产生意想不到的 bug node 版本要求 16 以上 `npm i -g yarn` `yarn` `yarn run build:web:prod` `cp -r dist ../chat2db-server/chat2db-server-start/src/main/resources/static/front` (复制打包结果到指定目录。windows 可能命令不一样,可以手动复制下) 之后就可以启动后端了 `mvn clean package -B '-Dmaven.test.skip=true' -f chat2db-server/pom.xml`
1415

1516
启动前端项目调试 `yarn run start:web` 注意:因为 electron 包比较难下载,如果 yarn 时 electron 下载失败或超时,可以删除掉 chat2db-client/package.json 下的 electron,再次 yarn
1617

17-
## TS 书写规范
18+
## TS书写规范
1819

19-
1. 所有的 interface 与 type 必须已 I 开头 `interface IState { name: string }` // good `interface State { name: string }` // bad
20+
1. 所有的interface 与 type 必须已I开头
21+
`interface IState { name: string }` // good
22+
`interface State { name: string }` // bad
2023

2124
## 如何在 js 与 css 中使用颜色
2225

0 commit comments

Comments
 (0)