Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 331cd5a commit 2e15393Copy full SHA for 2e15393
init-repo.sh
@@ -0,0 +1,32 @@
1
+#!/usr/bin/env bash
2
+#
3
+# Script to initialize angular repo
4
+# - install required node packages
5
+# - install Testacular
6
+# - install git hooks
7
+
8
9
+node=`which node 2>&1`
10
+if [ $? -ne 0 ]; then
11
+ echo "Please install NodeJS."
12
+ echo "http://nodejs.org/"
13
+ exit 1
14
+fi
15
16
+npm=`which npm 2>&1`
17
18
+ echo "Please install NPM."
19
20
21
22
+echo "Installing required npm packages..."
23
+npm install
24
25
+testacular=`which testacular 2>&1`
26
27
+ echo "Installing Testacular..."
28
+ npm install -g testacular
29
30
31
+echo "Installing git hooks..."
32
+ln -sf ../../validate-commit-msg.js .git/hooks/commit-msg
0 commit comments