taro-build-command
v1.0.5
Published
一个生成taro项目的构建命令的工具
Downloads
13
Maintainers
Readme
Taro构建命令行工具
用于生成taro项目的构建命令,可通过用户的选项,执行不同的命令行。
安装
使用 npm 安装:
npm install taro-build-command -D
或者使用 yarn 安装:
yarn add taro-build-command -D
使用方法
在你项目的package.json
新增命令:
{
"scripts": {
"build": "taro-build-command",
}
}
配置选项
可选配置
--path
:本地的化的配置路径,文件格式为json,默认值为./config/build/config.json
--checkGit
:是否检查本地git是否有未提交的修改状态,默认值为false
示例
{
"scripts": {
"build": "taro-build-command --path ./config/build/config.json --checkGit",
}
}