Initial OpenECOMP SDC commit
[sdc.git] / catalog-ui / build_catalog_ui.sh
1
2 #!/bin/sh
3
4 ### Set the node environment.
5 #NODE_VERSION="v6.2.2"
6
7 #echo "Set the node environment."
8 #. "$NVM_DIR/nvm.sh"
9 #echo "OK."
10 #echo ""
11
12
13
14 ### Add newer c++ compiler.
15 #if [ -f /opt/rh/devtoolset-4/enable ]; then
16 #  . /opt/rh/devtoolset-4/enable
17 #fi
18
19
20
21
22 ### Set the node version manager version.
23 #echo "Set the node version manager version."
24 #nvm use ${NODE_VERSION}
25 #echo "OK."
26 #echo ""
27
28
29 ### Run install bower.
30 echo "Run install bower."
31 #if [ -e $NVM_DIR/versions/node/${NODE_VERSION}/lib/node_modules/bower/bin/bower ]; then
32 #       echo " - bower is already installed."
33 #else
34 npm install bower
35 #fi
36 #echo "OK."
37 #echo ""
38
39
40
41 ### Run install grunt-cli.
42 echo "Run install grunt-cli."
43 #if [ -e $NVM_DIR/versions/node/${NODE_VERSION}/lib/node_modules/grunt-cli/bin/grunt ]; then
44 #       echo " - grunt-cli is already installed."
45 #else
46 npm install grunt-cli
47 #fi
48 #echo "OK."
49 #echo ""
50
51
52
53 ### Clean the Node cache.
54 #echo "Clean the Node cache - if stuck."
55 #npm cache clean
56 #echo "OK."
57 #echo ""
58
59
60
61 ### Run the Node package manager (NPM).
62 echo "Run the Node package manager (NPM)."
63 #npm config set proxy http://one.proxy.att.com:8080
64 #npm config set https-proxy http://one.proxy.att.com:8080
65 #npm config set registry https://registry.npmjs.org
66
67 npm install
68 echo "OK."
69 echo ""
70
71
72
73 ### Install the Bower components.
74 echo "Install the Bower components."
75 bower install
76 echo "OK."
77 echo ""
78
79
80
81 ### Build the application.
82 echo "Build the application."
83 grunt build
84