blob: 8bae7768937458991e226c80940ac1f39bb8d7a5 [file] [log] [blame]
Michael Lando451a3402017-02-19 10:28:42 +02001
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.
30echo "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
34npm install bower
35#fi
36#echo "OK."
37#echo ""
38
39
40
41### Run install grunt-cli.
42echo "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
46npm 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).
62echo "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
67npm install
68echo "OK."
69echo ""
70
71
72
73### Install the Bower components.
74echo "Install the Bower components."
75bower install
76echo "OK."
77echo ""
78
79
80
81### Build the application.
82echo "Build the application."
83grunt build
84