|
@@ -1,60 +1 @@
|
|
|
-# 开发流程说明
|
|
|
-
|
|
|
-## 安装 **yarn**
|
|
|
-```
|
|
|
-npm install yarn -g
|
|
|
-```
|
|
|
-
|
|
|
-## 初始化项目
|
|
|
-```
|
|
|
-yarn install
|
|
|
-```
|
|
|
-
|
|
|
-## 开发(如:kankan-sdk)
|
|
|
-```
|
|
|
-yarn run sdk:dev
|
|
|
-```
|
|
|
-## 删除包
|
|
|
-```
|
|
|
-yarn workspace @kankan/sdk remove pkg
|
|
|
-```
|
|
|
-## 添加包
|
|
|
-```
|
|
|
-yarn workspace @kankan/sdk add pkg
|
|
|
-```
|
|
|
-
|
|
|
-## 启动
|
|
|
-yarn start
|
|
|
-
|
|
|
-## git 提交规范
|
|
|
-```
|
|
|
-feat: 新功能(feature)
|
|
|
-fix: 修补bug
|
|
|
-docs: 文档(documentation)
|
|
|
-style: 格式(不影响代码运行的变动)
|
|
|
-refactor: 重构(即不是新增功能,也不是修改bug的代码变动)
|
|
|
-test:增加测试
|
|
|
-chore:构建过程或辅助工具的变动
|
|
|
-```
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-无法加载文件 C:\Program Files\nodejs\yarn.ps1
|
|
|
-1.以管理员身份运行power shell
|
|
|
-2.输入命令:set-executionpolicy remotesigned
|
|
|
-
|
|
|
-https://www.jianshu.com/p/db3ee301af47
|
|
|
-
|
|
|
-
|
|
|
-[
|
|
|
- "> 0.5%",
|
|
|
- "not dead",
|
|
|
- "chrome 50",
|
|
|
- "not IE 11",
|
|
|
- "not IE_Mob 11",
|
|
|
- "node 14",
|
|
|
- "iOS 10"
|
|
|
-]
|
|
|
-
|
|
|
-3. 开发地址:http://localhost:5000/__test__/sdk
|
|
|
+中免项目后台代码位于/packages/app-cdfg,但要用到其他路径下的资源。
|