zuul-jobs/roles/js-package-manager
Monty Taylor 5973c9b7b1 Extract ensure-javascript-build-tool role
The pre-playbook for the javascript jobs got complex. Extract it
to a role so we can better document it.

Also - stop installing javascript depends in pre - the depends
declared in a patch should be tested as part of the patch.

Change-Id: I50a483f223620cd3f9ecd82887062cfc9ac64b7f
2020-05-12 07:53:14 +02:00
..
defaults Add new non-npm specific javascript jobs 2020-05-12 07:50:19 +02:00
tasks Extract ensure-javascript-build-tool role 2020-05-12 07:53:14 +02:00
vars Add new non-npm specific javascript jobs 2020-05-12 07:50:19 +02:00
README.rst Add new non-npm specific javascript jobs 2020-05-12 07:50:19 +02:00

Run javascript build command in a source directory. Assumes the appropriate version of npm or yarn has been installed.

Role Variables

Command to run. If it's a standard lifecycle command, it will be run as {{ js_build_tool }} {{ js_build_command }}. Otherwise it will be run as {{ js_build_tool }} run {{ js_build_command }}.