package.json: update husky configuration

italian
pxgamer 2019-04-29 16:51:13 +01:00 committed by Marco Bonelli
parent 6cc66805cc
commit f0195f18b5
1 changed files with 5 additions and 1 deletions

View File

@ -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,