通过copy
命令行工具将当前项目动态安装到,指定项目的node_modules
目录下。
npm i -g kaitlyn-cli
kaitlyn copy -p [target project path]
{
"commands": [
"rm -rf build",
"npm run build"
],
"source": "build/*"
}
Add .kaitlynrc.json
file to root path
{
"commands": [
"rm -rf build",
"npm run build"
],
"source": "build/*"
}
- commands: build script commands
- source: output directory of build result