File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99### 安装依赖
1010在根目录安装依赖 yarn 会 warn,需要加 -W 参数,在 packages 安装依赖会自动提升,如果不需要提升,加 --focus
1111
12+ ### 安装 worker 扩展
13+ ``` bash
14+ npm run ext
15+ ```
16+
1217### 增加 package
13181 . 在 packages 新建文件夹,然后运行 node scripts/bootstrap 会自动为所有无 package.json 的项目初始化
14192 . 通过命令 npm run create <package > 新建项目
1823# 构建所有 packages
1924npm 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 集成版本
2530npm start app
2631```
Original file line number Diff line number Diff line change 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)\" " ,
7071 "name" : " vsicons-slim" ,
7172 "version" : " 1.0.4"
7273 }
73- ]
74+ ],
75+ "dependencies" : {
76+ "object-assign" : " ^4.1.1"
77+ }
7478}
You can’t perform that action at this time.
0 commit comments