tomi77.grunt
ansible-grunt
一个用于运行 Grunt 任务的 Ansible 角色
参数
名称 | 默认值 | 描述 |
---|---|---|
grunt_executable | 要使用的 grunt 可执行文件的路径。 |
|
task | 要执行的任务(或多个任务) | |
chdir | . | 项目的位置 |
node_version | NVM Node.js 版本标签 | |
nvm_init_script | 激活 NVM 的 BASH 脚本路径 |
返回值
Fact grunt_output
包含 shell 输出。
示例
# 运行默认任务
- tomi77.grunt
# 使用本地安装的 grunt
- role: tomi77.grunt
grunt_executable: ./node_modules/.bin/
# 运行构建任务
- role: tomi77.grunt
task: build
# 指定项目位置
- role: tomi77.grunt
chdir: /location/of/a/project
# 运行多个任务
- role: tomi77.grunt
task:
- prepare
- build
- clean
# 在 NVM 中运行
- role: tomi77.grunt
node_version: stable
nvm_init_script: /home/travis/.nvm/nvm.sh
安装
ansible-galaxy install tomi77.grunt
许可证
mit
下载
134
拥有者
Owner of @go-loremipsum @go-passwd @protobuf-gis @gosoap