Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
chore(scripts): add init-repo script
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina authored and mhevery committed Sep 12, 2012
1 parent 331cd5a commit 2e15393
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions init-repo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash
#
# Script to initialize angular repo
# - install required node packages
# - install Testacular
# - install git hooks


node=`which node 2>&1`
if [ $? -ne 0 ]; then
echo "Please install NodeJS."
echo "http://nodejs.org/"
exit 1
fi

npm=`which npm 2>&1`
if [ $? -ne 0 ]; then
echo "Please install NPM."
fi


echo "Installing required npm packages..."
npm install

testacular=`which testacular 2>&1`
if [ $? -ne 0 ]; then
echo "Installing Testacular..."
npm install -g testacular
fi

echo "Installing git hooks..."
ln -sf ../../validate-commit-msg.js .git/hooks/commit-msg

0 comments on commit 2e15393

Please sign in to comment.