Skip to content

Commit af973ea

Browse files
author
winjo
committed
chore: add readme
1 parent 6a5d8bd commit af973ea

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
### 安装依赖
1010
在根目录安装依赖 yarn 会 warn,需要加 -W 参数,在 packages 安装依赖会自动提升,如果不需要提升,加 --focus
1111

12+
### 安装 worker 扩展
13+
```bash
14+
npm run ext
15+
```
16+
1217
### 增加 package
1318
1. 在 packages 新建文件夹,然后运行 node scripts/bootstrap 会自动为所有无 package.json 的项目初始化
1419
2. 通过命令 npm run create <package> 新建项目
@@ -18,9 +23,9 @@
1823
# 构建所有 packages
1924
npm run build
2025
# 单独构建 package
21-
npm run build <package>
26+
npm run build -- --scope <package>
2227
# 单独构建并监听
23-
npm run build -w <package>
28+
npm run build -- --scope <package> --watch
2429
# 运行 app 集成版本
2530
npm start app
2631
```

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"main": "index.js",
1010
"scripts": {
1111
"preinstall": "node scripts/preinstall",
12+
"ext": "node packages/spacex/bin/spacex ext",
1213
"build": "node scripts/build",
1314
"create": "node scripts/create",
1415
"format": "prettier --write --parser typescript \"packages/**/*.ts?(x)\"",
@@ -70,5 +71,8 @@
7071
"name": "vsicons-slim",
7172
"version": "1.0.4"
7273
}
73-
]
74+
],
75+
"dependencies": {
76+
"object-assign": "^4.1.1"
77+
}
7478
}

0 commit comments

Comments
 (0)