package.json: update husky configuration
This commit is contained in:
@@ -9,12 +9,16 @@
|
|||||||
"husky": "1.3.1"
|
"husky": "1.3.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"precommit": "npm test",
|
|
||||||
"lint-markdown": "markdownlint pages/**/*.md",
|
"lint-markdown": "markdownlint pages/**/*.md",
|
||||||
"lint-tldr": "tldr-lint ./pages",
|
"lint-tldr": "tldr-lint ./pages",
|
||||||
"test": "bash -c 'markdownlint pages/ && tldr-lint ./pages 2>&1 | tee test_result; test ${PIPESTATUS[0]} -eq 0'",
|
"test": "bash -c 'markdownlint pages/ && tldr-lint ./pages 2>&1 | tee test_result; test ${PIPESTATUS[0]} -eq 0'",
|
||||||
"build-index": "node ./scripts/build-index.js | tee pages/index.json > index.json"
|
"build-index": "node ./scripts/build-index.js | tee pages/index.json > index.json"
|
||||||
},
|
},
|
||||||
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "npm test"
|
||||||
|
}
|
||||||
|
},
|
||||||
"repository": "tldr-pages/tldr",
|
"repository": "tldr-pages/tldr",
|
||||||
"author": "Romain Prieto",
|
"author": "Romain Prieto",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user