Update release notes
[sdc.git] / catalog-ui / build_catalog_ui.sh
1 #!/bin/sh
2
3
4
5 ### Set the node environment.
6 NODE_VERSION="v6.10.0"
7
8
9
10 ### Set the NVM root dir
11 NVM_DIR=/home/${USER}/.nvm
12
13
14
15 echo "Set the node environment."
16 . "${NVM_DIR}/nvm.sh"
17 echo "OK."
18 echo ""
19
20
21
22 ### Add newer c++ compiler.
23 if [ -f /opt/rh/devtoolset-4/enable ]; then
24   . /opt/rh/devtoolset-4/enable
25 fi
26
27
28
29 ### Set the node version manager version.
30 echo "Set the node version manager version."
31 nvm use ${NODE_VERSION}
32 echo "OK."
33 echo ""
34
35
36
37 ### Run the Node package manager (NPM).
38 echo "Run the Node package manager (NPM)."
39 npm install
40 echo "OK."
41 echo ""
42
43
44
45 ### Build the application.
46 echo "Build the application."
47 npm run build:prod
48 echo "OK."
49 echo ""
50