blob: b913f5bcb3b7415fba8c2dfa1057759b9867d545 [file] [log] [blame]
Steven Burrowsa145e102017-06-16 13:37:50 -04001#!/bin/bash
2
3ONOS_INSTALL_LOCATION=$2
4echo ${ONOS_INSTALL_LOCATION}
5
6export NODEJS_HOME=${ONOS_INSTALL_LOCATION}/
7export PATH=$NODEJS_HOME/bin:$PATH
8
9cd $ONOS_ROOT/tools/gui
10# Install NPM Global packages
11ONOS_NPM_GLOBAL_DEPENDENCIES="gulp-cli gulp"
12echo "Installing NPM Global dependencies: $ONOS_NPM_GLOBAL_DEPENDENCIES"
13npm install -g ${ONOS_NPM_GLOBAL_DEPENDENCIES} --loglevel=error
14
15# Install Project Dependencies
16echo "Installing project dependencies"
17npm install --loglevel=error
18
19# Build the GUI Project
20echo "Packaging JavaScript and CSS"
21npm run build