更新时间:2024-04-03 GMT+08:00
使用yaml配置gulp构建
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
version: 2.0 # 必须是2.0 steps: BUILD: - gulp: inputs: command: |- export PATH=$PATH:~/.npm-global/bin npm config set registry http://mirrors.tools.huawei.com/npm/ npm config set prefix '~/.npm-global' #如需安装node-sass #npm config set sass_binary_site https://repo.huaweicloud.com/node-sass/ #npm install node-sass #加载依赖 npm install -verbose gulp |
参数名 |
参数类型 |
描述 |
是否必填 |
默认值 |
---|---|---|---|---|
command |
string |
执行命令。 |
是 |
无 |
父主题: 单任务配置