seapp-builder
360 小程序构建工具
环境要求
- node >= 8.9
- npm | yarn
- 以下使用 npx 时要求 npm >= 5.2
安装
安装到项目
npm install @qihoo/seapp-builder
安装到全局
npm install -g @qihoo/seapp-builder
使用
在 360mp 项目下使用
Usage: builder <command> [options]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
build build project in production mode
watch build project in development mode and watch file
Run builder <command> --help for detailed usage of given command.
在 package.json 中配置使用
{
"script": {
"serve": "builder watch",
"build": "builder build"
}
}
通过 npx | yarn 使用
builder watch
builder build
npx builder watch
npx builder build