Giter VIP home page Giter VIP logo

Comments (2)

txp1035 avatar txp1035 commented on May 13, 2024

关于改造建议

关于发布流程优化

现有

流程: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.

inJs avatar inJs commented on May 13, 2024

打包环节目前有哪些方案?目前可选的方案?为什么选择 father-build ? @ShawDanon

from pont.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.