rust-raspberrypi-OS-tutorials/contributor_setup.sh
2021-01-04 18:05:34 +01:00

37 lines
664 B
Bash
Executable File

#!/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 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://git.io/misspell
sh ./install-misspell.sh -b .vendor
rm install-misspell.sh