1.0.0 • Published 3 years ago
hplib-debounce v1.0.0
lerna-app
开始了解
- 仅支持 yarn workspace
- 了解 lerna, monorepo 多模块项目开发相关的知识
- 仅使用 typescript
开发
- npx lerna bootstrap
找到对应的 npm script 脚本启动
lerna run start --scope=XXXXX --stream
包使用说明
- 在项目根路径中复制当前项目中的 .npmrc,确保 npm 私有仓库能够使用。
- 找到需要的 npm 包,使用 yarn(其他包管理器不保证可用)进行安装。
安装对应的包到指定的目录:
lerna add react --scope=XXXX
package
添加新的 package
创建 package 目录
mkdir packages/package-name cd package-name yarn init
4) 完成 commit 之后,发布新的 package
lerna publish
1.0.0
3 years ago