From 451a3400b76511393c62a444f588a4ed15f4a549 Mon Sep 17 00:00:00 2001 From: Michael Lando Date: Sun, 19 Feb 2017 10:28:42 +0200 Subject: Initial OpenECOMP SDC commit Change-Id: I0924d5a6ae9cdc161ae17c68d3689a30d10f407b Signed-off-by: Michael Lando --- catalog-ui/build_catalog_ui.sh | 84 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 catalog-ui/build_catalog_ui.sh (limited to 'catalog-ui/build_catalog_ui.sh') diff --git a/catalog-ui/build_catalog_ui.sh b/catalog-ui/build_catalog_ui.sh new file mode 100644 index 0000000000..8bae776893 --- /dev/null +++ b/catalog-ui/build_catalog_ui.sh @@ -0,0 +1,84 @@ + +#!/bin/sh + +### Set the node environment. +#NODE_VERSION="v6.2.2" + +#echo "Set the node environment." +#. "$NVM_DIR/nvm.sh" +#echo "OK." +#echo "" + + + +### Add newer c++ compiler. +#if [ -f /opt/rh/devtoolset-4/enable ]; then +# . /opt/rh/devtoolset-4/enable +#fi + + + + +### 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 "" + + + +### 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 "" + + + +### Clean the Node cache. +#echo "Clean the Node cache - if stuck." +#npm cache clean +#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 + -- cgit 1.2.3-korg