onos/web/gui/onos-gui-build
Simon Hunt 5c3ed73c5a Revert "GUI: Added ESLint to gulp tasks GUI: Linted files Fixed an error in the build script"
This reverts commit 46c5f1087d76d93497a1e8e5593564991ccb6682.

Change-Id: I1464fdd1df075e93f885e3c1fbd02f0cc563fd4f
2017-07-20 19:08:07 +00:00

17 lines
348 B
Bash
Executable File

#!/bin/bash
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
# Install Project Dependencies
echo "Installing project dependencies"
npm install --loglevel=error
# Build the GUI Project
echo "Packaging JavaScript and CSS"
npm run build