🎨 优化安装打包方式

This commit is contained in:
xujiang 2021-12-08 23:25:34 +08:00
parent c9e724fe11
commit bce770cda1
8 changed files with 51315 additions and 3 deletions

3
install.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cd ./packages/editor && yarn
cd ../ui && yarn

View File

@ -22,6 +22,7 @@
"yehuozhili <yehuozhili@outlook.com> (https://github.com/yehuozhili))" "yehuozhili <yehuozhili@outlook.com> (https://github.com/yehuozhili))"
], ],
"scripts": { "scripts": {
"pkg": "bash install.sh",
"start": "npm run start:ui & npm run start:editor", "start": "npm run start:ui & npm run start:editor",
"start:editor": "npx lerna exec --scope @h5-dooring/editor -- npm run start", "start:editor": "npx lerna exec --scope @h5-dooring/editor -- npm run start",
"start:ui": "npx lerna exec --scope @h5-dooring/ui -- npm run start", "start:ui": "npx lerna exec --scope @h5-dooring/ui -- npm run start",

11409
packages/doc/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

12210
packages/editor/yarn.lock Normal file

File diff suppressed because it is too large Load Diff

16514
packages/ui/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

11175
packages/ui/yarn.lock Normal file

File diff suppressed because it is too large Load Diff

View File

@ -115,7 +115,7 @@ cd ./h5-Dooring
3. Install the dependency package 3. Install the dependency package
```sh ```sh
npx lerna bootstrap yarn pkg
``` ```
## Usage ## Usage

4
zh.md
View File

@ -110,9 +110,9 @@ git clone https://github.com/MrXujiang/h5-Dooring.git
cd ./h5-Dooring cd ./h5-Dooring
``` ```
3. 安装依赖包 3. 安装依赖包(需要提前安装yarn)
```sh ```sh
npx lerna bootstrap yarn pkg
``` ```
## 使用 ## 使用