tomi77.grunt
ansible-grunt
Eine Ansible-Rolle zur Ausführung von Grunt-Aufgaben
Parameter
Name | Standard | Beschreibung |
---|---|---|
grunt_executable | Pfad zur ausführbaren Datei grunt . |
|
task | Aufgabe (oder Aufgaben), die ausgeführt werden sollen. | |
chdir | . | Standort eines Projekts. |
node_version | NVM Node.js Versionsbezeichnung. | |
nvm_init_script | Pfad zum BASH-Skript, das NVM aktiviert. |
Rückgaben
Das Faktum grunt_output
enthält die Ausgabe des Shell-Kommandos.
Beispiele
# Führe die Standardaufgabe aus
- tomi77.grunt
# Verwende lokal installierten grunt
- role: tomi77.grunt
grunt_executable: ./node_modules/.bin/
# Führe die Build-Aufgabe aus
- role: tomi77.grunt
task: build
# Gib den Projektstandort an
- role: tomi77.grunt
chdir: /standort/eines/projekts
# Führe Aufgaben aus
- role: tomi77.grunt
task:
- prepare
- build
- clean
# Führe in NVM aus
- role: tomi77.grunt
node_version: stable
nvm_init_script: /home/travis/.nvm/nvm.sh
Installieren
ansible-galaxy install tomi77.grunt
Lizenz
mit
Downloads
134
Besitzer
Owner of @go-loremipsum @go-passwd @protobuf-gis @gosoap