blob: b6ea278bc1acdac3a9d57d916bdac3b7d213f86d [file] [log] [blame]
#!/bin/bash
set -e
ONOS_INSTALL_LOCATION=$2
echo ${ONOS_INSTALL_LOCATION}
export NODEJS_HOME=${ONOS_INSTALL_LOCATION}
export PATH=$NODEJS_HOME/bin:$PATH
cd $ONOS_ROOT/tools/gui
# Ensure lock file is removed
rm -f package-lock.json
# Install Project Dependencies
echo "Installing project dependencies"
npm install --loglevel=error
rm -f package-lock.json
# Build the GUI Project
echo "Packaging JavaScript and CSS"
npm run build