-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.sh
More file actions
38 lines (31 loc) · 956 Bytes
/
init.sh
File metadata and controls
38 lines (31 loc) · 956 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
if ! type "ghc" > /dev/null; then
echo "Haskell not found, installing Haskell";
sudo apt-get install ghc;
export PATH="$PATH:$HOME/.cabal/bin";
echo "PLEASE UPDATE YOUR PATH TO INCLUDE $HOME/.cabal/bin (its been done for you in this session)";
fi
if ! type "psc" > /dev/null; then
echo "PureScript not found, installing PureScript";
cabal update;
cabal install purescript;
fi
if ! type "npm" > /dev/null; then
echo "Node.js not found, installing Node.js";
sudo apt-get install nodejs;
fi
npm update;
if ! type "gulp" > /dev/null; then
echo "Gulp not found, installing Gulp";
sudo npm install -g gulp;
fi
if ! type "bower" > /dev/null; then
echo "Bower not found, installing Bower";
sudo npm install -g bower;
fi
if ! type "karma" > /dev/null; then
echo "Karma not found, installing Karma";
sudo npm install -g karma karma-cli phantomjs;
fi
echo "installing dependencies from npm and bower";
npm install;
bower update;