summaryrefslogtreecommitdiff
path: root/tools/install-js-tools.sh
diff options
context:
space:
mode:
authorClark Boylan <clark.boylan@gmail.com>2019-08-23 11:48:22 -0700
committerClark Boylan <clark.boylan@gmail.com>2019-08-23 11:48:22 -0700
commite91e89b2cfc02df3da2084d91b55eff1b73f6bbe (patch)
tree9ea4c0cfb45da57d74fc1d84dbe0d8cbc44b7676 /tools/install-js-tools.sh
parentb48b1e0219228aa38d5fb55477003295884276b8 (diff)
downloadzuul-e91e89b2cfc02df3da2084d91b55eff1b73f6bbe.tar.gz
Document js tool installation in scratch doc
We need the js tools to be present so that zuul from scratch install docs produce a working javascript build. Add a step to that process to run our helper script for js toolchain install. Note this adds support for opensuse to that script as opensuse is a valid from scratch install target. Change-Id: I4c3584957f7a4afaeb0315a57d56f93e915eace1
Diffstat (limited to 'tools/install-js-tools.sh')
-rwxr-xr-xtools/install-js-tools.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/install-js-tools.sh b/tools/install-js-tools.sh
index d5c550ed9..cdfa19675 100755
--- a/tools/install-js-tools.sh
+++ b/tools/install-js-tools.sh
@@ -37,6 +37,9 @@ elif type yum; then
$SUDO curl https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo
$SUDO $(dirname $0)/install-js-repos-rpm.sh
$SUDO yum -y install nodejs yarn
+elif type zypper; then
+ $SUDO zypper install -y nodejs10 npm10
+ $SUDO npm install yarn
elif type brew; then
brew install nodejs yarn
else