98aa9f9bb0
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
16 lines
427 B
ReStructuredText
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.
|