本技术方案从真实项目中抽离出核心代码,进一步开源,如果有不妥或者更好的修改意见,欢迎提issue
- 用到的技术栈Lerna+Typescript+Jest+Eslint+docsify
- 构建时,根据依赖关系,自动决定打包顺序出,并采用多输入,多输出的方式,输出umd,es两种模块,支持类似
lodash的按需加载 - tsconfig区分开发环境和生产环境。目的是开发环境,依赖本地ts资源,快速定位问题。
- 自动化测试
- 代码规范
- @tool/core 基础工具
- @tool/common 依赖@tool/core的业务工具
- @tool/log 依赖@tool/core的打点工具
- @tool/style Less工具函数
npm i
lerna bootsrapnpm run lintnpm run buildlerna publishnpm run docs:dev
//http://localhost:3000- 引入vue-cli 写页面,测试