这是一个 pnpm 工作簿的一个模板项目
- [email protected]
- build ([email protected])
- test ([email protected])
mkdir PackageName cd PackageName
degit mekefly/workspace-template
- pnpm
script
负责 scripts 的一些处理类 等于node scripts
命令--reBuild
重新构建命令build
构建整个项目,工作空间终的包-v, --version
Display version number-I, --inputPath
可以用,号分隔写多个 默认值:[空]-W, --workSpace
可以用,号分隔写多个 默认值:[空]--includePackages
可以用,号分隔写多个 默认值:--include
可以用,号分隔写多个 默认值:-P, --packages
可以用,号分隔写多个 默认值:[空]-O, --output
dist-F, --format
可以用,号分隔写多个 默认值:[空]--prod
可以用,号分隔写多个 默认值:[空]-D, --declaration
true--watch
false--disableConcurrent
false-w, --watch
监听更改-h, --help
Display this message
create
创建子项目模板--help
create 子命令的帮助<PackageName>
子项目的名字
testScript
单元测试 scripts 脚本test
单元测试build
等于pnpm script build $
命令