用于JS开发的请求工具
| 包名 | 版本 | 说明 |
|---|---|---|
| core | 控制中心,只需实现provider,即可实现基于JS*端的请求体 |
|
| client | Browser端请求体 |
|
| server | Node端请求体 |
|
| hooks | 用于对onRequest和onResponse增强 |
|
| shared | 公共方法(暂无) | |
| index | 自动匹配使用@deot/http-client还是@deot/http-server |
$ npm run init
$ 或
$ pnpm install$ npm run add$ npm run link$ npm run test
# 或者 直接添加参数
$ npm run test -- --package-name '**' --watch$ npm run dev
# 或者 直接添加参数
$ npm run dev -- --package-name '**'$ npm run build
# 或者 直接添加参数
$ npm run build -- --package-name '**'$ npm run lint$ npm run release| 参数 | 备注 |
|---|---|
--no-dry-run |
默认dry run不输出任何文件 |
--no-tag |
默认输出tag |
--no-publish |
默认发布到npm |
--no-commit |
默认提交到git commit |
--no-push |
默认执行git push |
--force-update-package |
即时没找到commit也会强制更新, 如@xxx/xxx,@xxx/xxx或**,不输入会弹出确认框` |
--skip-update-package |
跳过要更新的包,如@xxx/xxx,@xxx/xxx或**,不输入会弹出确认框 |
--custom-version |
指定更新版本号,如x.x.x,不输入会弹出输入框 |
--patch,--major,--minor |
自动更新版本号的格式 |
break changefeatfixstyleperftypesrefactorchore
自动增加
PR和issue的地址,commit内含Breaking Change会自动把版本改为major
refactor(index): remove deprecated \n BREAKING CHANGE: any
fix(index): ci tag (#2)
fix(shared): error (close #1)fix: invaild commit
feat: [index] skip collect commit