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 |
| 10 | # Install NPM Global packages |
| 11 | ONOS_NPM_GLOBAL_DEPENDENCIES="gulp-cli gulp" |
| 12 | echo "Installing NPM Global dependencies: $ONOS_NPM_GLOBAL_DEPENDENCIES" |
| 13 | npm install -g ${ONOS_NPM_GLOBAL_DEPENDENCIES} --loglevel=error |
| 14 | |
| 15 | # Install Project Dependencies |
| 16 | echo "Installing project dependencies" |
| 17 | npm install --loglevel=error |
| 18 | |
| 19 | # Build the GUI Project |
| 20 | echo "Packaging JavaScript and CSS" |
| 21 | npm run build |