zuul-jobs/roles/yarn/README.rst
Monty Taylor 98aa9f9bb0
Add a yarn role
Projects using yarn for dependencies can just run yarn commands instead
of npm commands. Add a yarn role that allows a project to do that.

Change-Id: I48a722ca55c88c6330114da3a2c035b1f84f92e1
2018-07-27 09:34:22 -04:00

16 lines
427 B
ReStructuredText

Run yarn command in a source directory. Assumes the appropriate version
of yarn has been installed.
**Role Variables**
.. zuul:rolevar:: yarn_command
Command to run. If it's a standard lifecycle command, it will be run as
``yarn {{ yarn_command }}``. Otherwise it will be run as
``yarn run {{ yarn_command }}``.
.. zuul:rolevar:: zuul_work_dir
:default: {{ zuul.project.src_dir }}
Directory to run yarn in.