tomi77.grunt
ansible-grunt
Un rôle Ansible pour exécuter des tâches Grunt
Paramètres
| Nom | Par défaut | Description |
|---|---|---|
| grunt_executable | Chemin vers l'exécutable grunt à utiliser. |
|
| task | Tâche (ou tâches) à exécuter | |
| chdir | . | Emplacement d'un projet |
| node_version | Tag de version NVM de Node.js | |
| nvm_init_script | Chemin vers le script BASH qui active NVM |
Retours
Le fait grunt_output contient la sortie du shell.
Exemples
# Exécuter la tâche par défaut
- tomi77.grunt
# Utiliser grunt installé localement
- role: tomi77.grunt
grunt_executable: ./node_modules/.bin/
# Exécuter la tâche de construction
- role: tomi77.grunt
task: build
# Spécifier l'emplacement du projet
- role: tomi77.grunt
chdir: /location/of/a/project
# Exécuter les tâches
- role: tomi77.grunt
task:
- prepare
- build
- clean
# Exécuter dans NVM
- role: tomi77.grunt
node_version: stable
nvm_init_script: /home/travis/.nvm/nvm.sh
Installer
ansible-galaxy install tomi77.gruntLicence
mit
Téléchargements
159
Propriétaire
Owner of @go-loremipsum @go-passwd @protobuf-gis @gosoap
