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