File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments