diff --git a/.githooks/post-merge/install.sh b/.githooks/post-merge/install.sh deleted file mode 100755 index 7130ca3fd..000000000 --- a/.githooks/post-merge/install.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash -# MIT © Sindre Sorhus - sindresorhus.com - -# git hook to run a command after `git pull` if a specified file was changed -# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. - -changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" - -check_run() { - echo "$changed_files" | grep --quiet "$1" && eval "$2" -} - -# Example usage -# In this example it's used to run `npm install` if package.json changed -check_run src/package.json "cd src && npm install" diff --git a/.githooks/pre-commit/test.sh b/.githooks/pre-commit/test.sh deleted file mode 100755 index 3ec15aa09..000000000 --- a/.githooks/pre-commit/test.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -cd src -grunt test - -exit $? diff --git a/src/package.json b/src/package.json index f74e02e50..ea37ed359 100644 --- a/src/package.json +++ b/src/package.json @@ -45,7 +45,6 @@ "exports-loader": "=0.6.3", "extract-text-webpack-plugin": "=1.0.1", "file-loader": "=0.9.0", - "git-hooks": "=1.1.8", "grunt": "=1.0.1", "grunt-eslint": "=19.0.0", "grunt-newer": "^1.2.0",