You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-raspberrypi-OS-tutorials/contributor_setup.sh

37 lines
726 B
Bash

#!/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