aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/build_catalog_ui.sh
blob: 8bae7768937458991e226c80940ac1f39bb8d7a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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