Comments (2)
关于改造建议
关于发布流程优化
现有
流程:cd 到需要发布的包通过 tsc 进行 build,然后 lerna publish 进行发布。
缺点:
1、手动操作过多,现在只继承两个包还好,如果管理数十个包这个流程会疯掉的。
2、忘操作,记不清是不是打过包了,可能出现漏打包进行发布。
优化
流程:引入 father-build(蚂蚁云谦开发,umi 同为 lerna 架构)进行打包。
优化优点:一条对命令 package 所有包进行打包,在加上 npm run build && lerna publish
进行发布
关于持续集成流程移动到根目录建议
现状
core 中有提交检查,但是这个提交检查需要 core 安装了 modules 才能生效。
优化
将提交检查移动到目录,在本项目装包后就能进行检查,更符合直觉。
关于根目录脚本命令添加建议
装包必备: "bootstrap": "lerna bootstrap",
打包必备:"build": "father-build",
发布必备: "publish": "npm run build && lerna publish",
我认为还需要的解决方案
1、release方案(使用lerna-changelog包很方便)
2、代码检查(先做eslint)
3、持续集成(增加.travis)
4、文档(docz)
@inJs @linningmii 你们有什么更好的想法欢迎讨论,目前这个方案应该不是最优解,持续进行优化吧。
具体情况可以参考这个repo
https://github.com/ShawDanon/txp
from pont.
打包环节目前有哪些方案?目前可选的方案?为什么选择 father-build
? @ShawDanon
from pont.
Related Issues (20)
- Extension causes high cpu load
- 所有的翻译插件失效,pont解析swagger报错 HOT 1
- 不生成 pontCore.js HOT 2
- 请问有没有nodejs api使用文档? HOT 1
- swagger V2生成baseClass时,超过两层的对象属性未读取 HOT 2
- nestjs swagger3.0 mods为空 HOT 1
- vs-code插件没有自动启动mock服务 HOT 1
- Java后端入参类型是List<Object>,生成的代码入参是Object,不识别List格式 HOT 1
- 无法设置rootDir
- "spiltApiLock": true, 执行pont scan 报错 找不到api.lock.json HOT 1
- "parameters" 原有的parameters数据,被覆盖,导致数据丢失 HOT 1
- 如何给单独请求添加headers HOT 1
- 获远程接口数据失败 Error: compiler error in defname: HOT 1
- 群号是不加不上了啊33661609 HOT 1
- 配置跳过翻译流程 HOT 1
- 关闭生成mod跟pontCore的方法 HOT 4
- pont对swagger2生成的Form post表单参数的支持 HOT 1
- 处理循环嵌套类型 HOT 2
- 获远程接口数据失败 Error: compiler error in defname: ZDYTJSXQ配置-支持的查询字段,字段类型
- 获远程接口数据失败 Error: compiler error in defname: ZDYTJSXQ配置-支持的查询字段,字段类型
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pont.