#!/bin/bash ## Prepares the current environment: ## - Installing dependencies ## - Configuring git hooks set -e __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" echo "Install deps..." npm i > /dev/null 2>&1 npm run prepare > /dev/null 2>&1 echo "Configuring git hooks" cp "${__dir}/src/pre-commit.sh" .git/hooks/pre-commit echo "Repo correctly configured"