rust-raspberrypi-OS-tutorials/contributor_setup.sh

37 lines
664 B
Bash
Raw Normal View History

2019-01-12 20:52:46 +00:00
#!/usr/bin/env bash
git config core.hooksPath .githooks
2020-09-25 19:23:15 +00:00
2021-01-04 16:51:38 +00:00
#
# Ruby and Bundler
#
if ! command -v bundle &> /dev/null
then
echo "'bundle' could not be found. Please install Ruby and Bundler."
exit
fi
2020-06-29 20:32:41 +00:00
bundle config set path '.vendor/bundle'
bundle install
2020-09-25 19:23:15 +00:00
2021-01-04 16:51:38 +00:00
#
# NPM
#
if ! command -v npm &> /dev/null
then
echo "'npm' could not be found. Please install it."
exit
fi
2020-09-25 19:23:15 +00:00
npm install --save-dev --save-exact prettier
2021-01-04 16:51:38 +00:00
#
# 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://git.io/misspell
sh ./install-misspell.sh -b .vendor
rm install-misspell.sh