Skip to content

Commit

Permalink
build: add build and tests to pre-commit hook
Browse files Browse the repository at this point in the history
Other minor package.json improvements
  • Loading branch information
JanMalch committed Dec 19, 2019
1 parent edf7097 commit 3e84cff
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"type": "git",
"url": "https://www.github.com/JanMalch/comparing"
},
"homepage": "https://janmalch.github.io/comparing",
"homepage": "https://janmalch.github.io/comparing#readme",
"bugs": {
"url": "https://github.com/JanMalch/comparing/issues"
},
Expand All @@ -32,8 +32,8 @@
"scripts": {
"lint": "tslint --project tsconfig.json",
"prebuild": "rimraf dist",
"build": "tsc --module commonjs && rollup -c rollup.config.ts && npm run build:docs",
"build:docs": "typedoc --out docs --target es6 --theme minimal --mode file src && npx touch ./docs/.nojekyll",
"build": "tsc --module commonjs && rollup -c rollup.config.ts",
"postbuild": "typedoc --out docs --target es6 --theme minimal --mode file src && npx touch ./docs/.nojekyll",
"start": "rollup -c rollup.config.ts -w",
"test": "jest --coverage",
"test:prod": "npm run lint && npm run test -- --no-cache",
Expand Down Expand Up @@ -84,23 +84,23 @@
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-commit": "lint-staged && npm run build && npm run test:prod",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"standard-version": {
"$schema": "http://json-schema.org/draft-07/schema#",
"header": "",
"types": [
{"type": "feat", "section": "Features"},
{"type": "fix", "section": "Bug Fixes"},
{"type": "chore", "hidden": true},
{"type": "docs", "hidden": true},
{"type": "style", "hidden": true},
{"type": "refactor", "section": "Code Refactoring"},
{"type": "perf", "section": "Performance Improvements"},
{"type": "test", "hidden": true},
{"type": "build", "hidden": true}
{ "type": "feat", "section": "Features" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "chore", "hidden": true },
{ "type": "docs", "hidden": true },
{ "type": "style", "hidden": true },
{ "type": "refactor", "section": "Code Refactoring" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "test", "hidden": true },
{ "type": "build", "hidden": true }
]
},
"devDependencies": {
Expand Down

0 comments on commit 3e84cff

Please sign in to comment.