ONOS-628 - Download and extract node binaries for the GUI build step
- Added gulp build task the:
	- Bundles Vendor JS files
	- Bundles ONOS JS Files
	- Bundles ONOS CSS Files
	- Added SourceMaps to JS bundles - Helps with debugging during development
- Added Bundles to index.js and removed old references
- Git Ignored any generated files
- Ensured the build step is able to build without a local copy of node installed
- Added BUCK genrules (provided by Viswa)
- Added BUCK Dependency to GUI
- Buck Rule to run when src changes
- Node/NPM downloaded using BUCK remote_file

Change-Id: Ia6ca3b952ff801850ade7469c23aac76c8520400
diff --git a/web/gui/onos-gui-build b/web/gui/onos-gui-build
new file mode 100755
index 0000000..b913f5b
--- /dev/null
+++ b/web/gui/onos-gui-build
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+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
+# Install NPM Global packages
+ONOS_NPM_GLOBAL_DEPENDENCIES="gulp-cli gulp"
+echo "Installing NPM Global dependencies: $ONOS_NPM_GLOBAL_DEPENDENCIES"
+npm install -g ${ONOS_NPM_GLOBAL_DEPENDENCIES} --loglevel=error
+
+# Install Project Dependencies
+echo "Installing project dependencies"
+npm install --loglevel=error
+
+# Build the GUI Project
+echo "Packaging JavaScript and CSS"
+npm run build
\ No newline at end of file