Skip to content

Commit

Permalink
Merge pull request #6 from Gerhut/master
Browse files Browse the repository at this point in the history
Basic support for Windows
  • Loading branch information
danday74 committed Jan 5, 2019
2 parents 1d76a49 + ef2fa29 commit fa7285c
Show file tree
Hide file tree
Showing 3 changed files with 250 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gitHookPrePush.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

# This hook will PREVENT a GIT push where ..
# * The build is passing AND a commit message starts with WIP
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
"scripts": {
"test": "./node_modules/.bin/istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha -- test",
"enforcer": "./node_modules/.bin/istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100",
"build": "npm-run-all test enforcer",
"postinstall": "test -d .git && cp gitHookPrePush.sh .git/hooks/pre-push || true"
"build": "npm-run-all test enforcer"
},
"husky": {
"hooks": {
"pre-push": "./gitHookPrePush.sh"
}
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -58,6 +62,7 @@
"data-driven": "^1.3.0",
"del": "^2.2.2",
"eslint": "^3.19.0",
"husky": "^1.1.4",
"istanbul": "^0.4.5",
"mocha": "^3.2.0",
"npm-run-all": "^4.0.2",
Expand Down
Loading

0 comments on commit fa7285c

Please sign in to comment.