-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat/add watch build mode #396
Conversation
|
readme加个文档 |
watch build 用于 AUI 的类库调试,方便直接在引入 AUI 的项目中对 AUI 直接进行开发调试,AUI 的改动能实时更新到引入项目。
除了通过
yarn link
软链接的方式,也支持构建产物直接拷贝到目标项目直接在
build:watch
命令后加上调试项目的路径即可,会自动检测node_modules
目录,copyrelease
到目标项目node_modules
的@alauda/ui( aui的package-name决定 )
, 目标路径下没有node_modules
会报错这种做法相比
yarn link
软链接的好处是,相当于直接在目标项目处建了备份,目标项目的angular.json
或NODE_OPTIONS
不需要设置preserveSymlinks
坏处就是每次watch build完都会把
release
完整拷贝到目标项目处一份