aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/build_catalog_ui.sh
diff options
context:
space:
mode:
authorMichael Lando <ml636r@att.com>2017-06-09 03:19:04 +0300
committerMichael Lando <ml636r@att.com>2017-06-09 03:19:04 +0300
commited64b5edff15e702493df21aa3230b81593e6133 (patch)
treea4cb01fdaccc34930a8db403a3097c0d1e40914b /catalog-ui/build_catalog_ui.sh
parent280f8015d06af1f41a3ef12e8300801c7a5e0d54 (diff)
[SDC-29] catalog 1707 rebase commit.
Change-Id: I43c3dc5cf44abf5da817649bc738938a3e8388c1 Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'catalog-ui/build_catalog_ui.sh')
-rw-r--r--catalog-ui/build_catalog_ui.sh74
1 files changed, 20 insertions, 54 deletions
diff --git a/catalog-ui/build_catalog_ui.sh b/catalog-ui/build_catalog_ui.sh
index 8bae776893..36f798513a 100644
--- a/catalog-ui/build_catalog_ui.sh
+++ b/catalog-ui/build_catalog_ui.sh
@@ -1,84 +1,50 @@
-
#!/bin/sh
-### Set the node environment.
-#NODE_VERSION="v6.2.2"
-
-#echo "Set the node environment."
-#. "$NVM_DIR/nvm.sh"
-#echo "OK."
-#echo ""
+### Set the node environment.
+NODE_VERSION="v6.10.0"
-### Add newer c++ compiler.
-#if [ -f /opt/rh/devtoolset-4/enable ]; then
-# . /opt/rh/devtoolset-4/enable
-#fi
+### Set the NVM root dir
+NVM_DIR=/home/${USER}/.nvm
-### Set the node version manager version.
-#echo "Set the node version manager version."
-#nvm use ${NODE_VERSION}
-#echo "OK."
-#echo ""
-
-### Run install bower.
-echo "Run install bower."
-#if [ -e $NVM_DIR/versions/node/${NODE_VERSION}/lib/node_modules/bower/bin/bower ]; then
-# echo " - bower is already installed."
-#else
-npm install bower
-#fi
-#echo "OK."
-#echo ""
+echo "Set the node environment."
+. "${NVM_DIR}/nvm.sh"
+echo "OK."
+echo ""
-### Run install grunt-cli.
-echo "Run install grunt-cli."
-#if [ -e $NVM_DIR/versions/node/${NODE_VERSION}/lib/node_modules/grunt-cli/bin/grunt ]; then
-# echo " - grunt-cli is already installed."
-#else
-npm install grunt-cli
-#fi
-#echo "OK."
-#echo ""
+### Add newer c++ compiler.
+if [ -f /opt/rh/devtoolset-4/enable ]; then
+ . /opt/rh/devtoolset-4/enable
+fi
-### Clean the Node cache.
-#echo "Clean the Node cache - if stuck."
-#npm cache clean
-#echo "OK."
-#echo ""
+### Set the node version manager version.
+echo "Set the node version manager version."
+nvm use ${NODE_VERSION}
+echo "OK."
+echo ""
### Run the Node package manager (NPM).
echo "Run the Node package manager (NPM)."
-#npm config set proxy http://one.proxy.att.com:8080
-#npm config set https-proxy http://one.proxy.att.com:8080
-#npm config set registry https://registry.npmjs.org
-
npm install
echo "OK."
echo ""
-### Install the Bower components.
-echo "Install the Bower components."
-bower install
-echo "OK."
-echo ""
-
-
-
### Build the application.
echo "Build the application."
-grunt build
+npm run build:prod
+echo "OK."
+echo ""