-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·40 lines (31 loc) · 880 Bytes
/
setup.sh
File metadata and controls
executable file
·40 lines (31 loc) · 880 Bytes
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
#! /bin/bash
echo "This script requires you to have Node.js and npm installed."
echo "If you run npm with sudo, you'll to run this script with sudo too."
echo "If you've done all of that, we can proceed."
echo "Run the script? (y/n)"
read answer
if [ $answer != "y" ]; then
echo "Exiting."
exit
fi
echo "This script will globally install Bower and Grunt"
echo "Proceed? (y/n)"
read answer
if [ $answer = "y" ]; then
echo "Installing global npm modules."
npm install -g bower grunt-cli
else
echo "Exiting."
exit
fi
if [[ $? = "3" ]]; then
echo "npm install failed. You need to be root."
echo "Try running sudo tools/setup.sh"
fi
echo "Installing local npm modules."
npm install
echo "Installing client-side third-party dependencies."
bower install
echo "Building."
grunt
echo "Done. Make sure to run a local server to view in the browser."