Steven Burrows | a145e10 | 2017-06-16 13:37:50 -0400 | [diff] [blame] | 1 | #!/bin/bash |
Steven Burrows | 46c5f10 | 2017-07-14 16:52:46 +0100 | [diff] [blame^] | 2 | set -e |
Steven Burrows | a145e10 | 2017-06-16 13:37:50 -0400 | [diff] [blame] | 3 | |
| 4 | ONOS_INSTALL_LOCATION=$2 |
| 5 | echo ${ONOS_INSTALL_LOCATION} |
| 6 | |
Steven Burrows | 46c5f10 | 2017-07-14 16:52:46 +0100 | [diff] [blame^] | 7 | export NODEJS_HOME=${ONOS_INSTALL_LOCATION} |
Steven Burrows | a145e10 | 2017-06-16 13:37:50 -0400 | [diff] [blame] | 8 | export PATH=$NODEJS_HOME/bin:$PATH |
| 9 | |
| 10 | cd $ONOS_ROOT/tools/gui |
Steven Burrows | a145e10 | 2017-06-16 13:37:50 -0400 | [diff] [blame] | 11 | |
| 12 | # Install Project Dependencies |
| 13 | echo "Installing project dependencies" |
| 14 | npm install --loglevel=error |
| 15 | |
| 16 | # Build the GUI Project |
| 17 | echo "Packaging JavaScript and CSS" |
| 18 | npm run build |