- Notifications
You must be signed in to change notification settings - Fork 827
/
Copy pathcontributor_setup.sh
executable file
·36 lines (32 loc) · 726 Bytes
/
contributor_setup.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
#!/usr/bin/env bash
git config core.hooksPath .githooks
#
# Ruby and Bundler
#
if!command -v bundle &> /dev/null
then
echo"'bundle' could not be found. Please install Ruby and Bundler."
exit
fi
bundle config set --local path '.vendor/bundle'
bundle install
#
# NPM
#
if!command -v npm &> /dev/null
then
echo"'npm' could not be found. Please install it."
exit
fi
npm install --save-dev --save-exact prettier
#
# Misspell
#
if!command -v curl &> /dev/null
then
echo"'curl' could not be found. Please install it."
exit
fi
curl -L -o ./install-misspell.sh https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh
sh ./install-misspell.sh -b .vendor
rm install-misspell.sh