main
Lei OT 4 months ago
parent 7e990057d4
commit d6bf52c3ba

@ -10,14 +10,16 @@
### Package Structure ### Package Structure
``` ```
src/ ├─dist
├── utils/ │ ├── haina-npm-0.1.0.tgz
│ ├── common.js │ ├── hooks-0.1.0.tgz
│ └── request.js │ ├── utils-0.1.0.tgz
├── hooks/ │ ├── utils-commons-0.1.0.tgz
│ ├── useXx.js │ └── utils-request-0.1.0.tgz
│ └── useYy.js └─src
├─ index.js
├─ hooks/
└─ utils/
``` ```
### Build & Pack ### Build & Pack
@ -26,7 +28,7 @@ src/
# 打包各模块 # 打包各模块
npm run pack npm run pack
# 打包各模块和root # 打包整个项目(各模块和root)
npm run pack:all npm run pack:all
``` ```
@ -43,6 +45,10 @@ npm run pack:all
#### Github Action #### Github Action
```
https://github.com/hainatravel-it/hai-npm/releases/download/v0.1.0/commons-0.1.0.tgz
```
## Usage ## Usage
### 安装整个包 ### 安装整个包
@ -76,6 +82,7 @@ import { commons, request } from '@haina/utils';
```sh ```sh
npm install http://xxxx/npm/utils-commons-0.1.0.tgz npm install http://xxxx/npm/utils-commons-0.1.0.tgz
npm install https://package.mycht.cn/npmjs/commons-0.1.0.tgz
``` ```
```js ```js

Loading…
Cancel
Save