tomi77.grunt

ansible-grunt

Un rol de Ansible para ejecutar tareas de Grunt

Parámetros

Nombre Predeterminado Descripción
grunt_executable Ruta al ejecutable grunt a usar.
task Tarea (o tareas) a ejecutar
chdir . Ubicación de un proyecto
node_version Etiqueta de versión de Node.js para NVM
nvm_init_script Ruta al script BASH que activa NVM

Retornos

El hecho grunt_output contiene la salida del shell.

Ejemplos

# Ejecutar tarea predeterminada
- tomi77.grunt

# Usar grunt instalado localmente
- rol: tomi77.grunt
  grunt_executable: ./node_modules/.bin/

# Ejecutar tarea de construcción
- rol: tomi77.grunt
  task: build

# Especificar ubicación del proyecto
- rol: tomi77.grunt
  chdir: /ubicación/de/un/proyecto

# Ejecutar tareas
- rol: tomi77.grunt
  task:
  - prepare
  - build
  - clean

# Ejecutar en NVM
- rol: tomi77.grunt
  node_version: stable
  nvm_init_script: /home/travis/.nvm/nvm.sh
Acerca del proyecto

A Ansible role to run Grunt tasks

Instalar
ansible-galaxy install tomi77.grunt
Licencia
mit
Descargas
134
Propietario
Owner of @go-loremipsum @go-passwd @protobuf-gis @gosoap