更新时间:2024-04-03 GMT+08:00

使用yaml配置Grunt构建

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
version: 2.0 # 必须是2.0
steps:
  BUILD:
    - grunt:
       inputs:
          command: |-
                    npm config set registry http://7.223.219.40/npm/
                    #npm cache clean -f
                    #npm audit fix --force
                    npm install --verbose
                    grunt
                    npm run build

参数名

参数类型

描述

是否必填

默认值

command

string

执行命令。