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
This commit is contained in:
Clark Boylan 2019-08-23 11:48:22 -07:00
parent b48b1e0219
commit e91e89b2cf
2 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,9 @@ required.
# For openSUSE: # For openSUSE:
$ zypper install -y $(bindep -b compile) $ zypper install -y $(bindep -b compile)
# All:
$ tools/install-js-tools.sh
# All: # All:
$ sudo pip3 install . $ sudo pip3 install .
$ sudo zuul-manage-ansible $ sudo zuul-manage-ansible

View File

@ -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 curl https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo
$SUDO $(dirname $0)/install-js-repos-rpm.sh $SUDO $(dirname $0)/install-js-repos-rpm.sh
$SUDO yum -y install nodejs yarn $SUDO yum -y install nodejs yarn
elif type zypper; then
$SUDO zypper install -y nodejs10 npm10
$SUDO npm install yarn
elif type brew; then elif type brew; then
brew install nodejs yarn brew install nodejs yarn
else else