package.json: update husky configuration
This commit is contained in:
@@ -9,12 +9,16 @@
|
||||
"husky": "1.3.1"
|
||||
},
|
||||
"scripts": {
|
||||
"precommit": "npm test",
|
||||
"lint-markdown": "markdownlint pages/**/*.md",
|
||||
"lint-tldr": "tldr-lint ./pages",
|
||||
"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"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "npm test"
|
||||
}
|
||||
},
|
||||
"repository": "tldr-pages/tldr",
|
||||
"author": "Romain Prieto",
|
||||
"private": true,
|
||||
|
||||
Reference in New Issue
Block a user