zuul-jobs/roles/npm/README.rst
Monty Taylor ad1ce4fc2f
Add base job and roles for javascript
This is in service of getting javascript tarball jobs going.

Change-Id: I20b4b4ce0bdf03c5585ca73471611178c94e2599
2017-10-09 08:32:45 -05:00

16 lines
423 B
ReStructuredText

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