mirror of https://github.com/CrimsonTome/tldr.git
package.json: update husky configuration
parent
6cc66805cc
commit
f0195f18b5
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue