-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathbootstrap.sh
executable file
·59 lines (49 loc) · 1.12 KB
/
bootstrap.sh
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
#!/bin/bash
CWD=$(dirname "$0")
THEME="$HOME/.spm/themes/arale"
cd $CWD
if ! which nico > /dev/null; then
echo "install nico"
npm install nico -g
else
echo "you have installed nico"
fi
if [ ! -d $THEME ]; then
echo "clone nico arale theme"
git clone https://github.com/aralejs/nico-arale.git $THEME
else
echo "update nico arale theme"
cd $THEME
git pull origin master
cd $CWD
fi
if ! which jscoverage > /dev/null; then
echo "install jscoverage"
npm install jscoverage -g
else
echo "you have installed jscoverage"
fi
if ! which jade > /dev/null; then
echo "install jade"
npm install jade -g
else
echo "you have installed jade"
fi
if ! which mocha > /dev/null; then
echo "install mocha"
npm install mocha -g
else
echo "you have installed mocha"
fi
if ! which phantomjs > /dev/null; then
echo "install mocha phantomjs"
npm install phantomjs -g
else
echo "you have installed phantomjs"
fi
if ! which mocha-phantomjs > /dev/null; then
echo "install mocha phantomjs"
npm install mocha-phantomjs -g
else
echo "you have installed mocha-phantomjs"
fi