From eb990501f5e117812ba25b05ab17721bc2178b79 Mon Sep 17 00:00:00 2001 From: Martin Giger Date: Tue, 11 Oct 2016 15:44:23 +0200 Subject: [PATCH 1/2] chore: Don't check readme pre push but check commit message --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 594def6..88628a2 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "documentation": "mocha -t 5000 test/documentation", "lint": "eslint bin/jpm lib test", "test": "node ./test/run.js", - "prepush": "npm run lint && npm run documentation", + "prepush": "npm run lint", + "commitmsg": "npm run changelog-lint", "changelog": "conventional-changelog -p angular -u", "changelog-lint": "conventional-changelog-lint --from master", "get-unbranded-firefox": "get-firefox -ecb unbranded-release" From c9f443347912cf7d6dcffa955f504221be93a1b2 Mon Sep 17 00:00:00 2001 From: Martin Giger Date: Wed, 12 Oct 2016 01:26:49 +0200 Subject: [PATCH 2/2] chore: Update husky to get the current commit in hook --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 88628a2..00403a0 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "lint": "eslint bin/jpm lib test", "test": "node ./test/run.js", "prepush": "npm run lint", - "commitmsg": "npm run changelog-lint", + "commitmsg": "cat \"$GIT_PARAMS\" | conventional-changelog-lint", "changelog": "conventional-changelog -p angular -u", "changelog-lint": "conventional-changelog-lint --from master", "get-unbranded-firefox": "get-firefox -ecb unbranded-release" @@ -76,7 +76,7 @@ "eslint-plugin-dependencies": "1.3.0", "get-firefox": "1.5.0", "glob": "5.0.3", - "husky": "^0.10.1", + "husky": "0.11.9", "mocha": "2.5.3", "release-it": "2.3.1", "rimraf": "2.3.2",