mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-17 10:21:52 +02:00
Removed the NPM Lock file that generated. Change-Id: Ia2d16f28a3a11056f8eaed2805684020b9d2c4eb
22 lines
433 B
Bash
Executable File
22 lines
433 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
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
|
|
|
|
# Ensure lock file is removed
|
|
rm -f package-lock.json
|
|
|
|
# Install Project Dependencies
|
|
echo "Installing project dependencies"
|
|
npm install --loglevel=error
|
|
rm -f package-lock.json
|
|
|
|
# Build the GUI Project
|
|
echo "Packaging JavaScript and CSS"
|
|
npm run build |