17 lines
No EOL
365 B
Bash
Executable file
17 lines
No EOL
365 B
Bash
Executable file
#!/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" |