Skip to content

Commit

Permalink
chore: dev tools
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMaz committed Apr 8, 2022
1 parent 12d90b8 commit 9132f6c
Show file tree
Hide file tree
Showing 7 changed files with 643 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
12 changes: 12 additions & 0 deletions .versionrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"types": [
{"type": "feat", "section": "Features"},
{"type": "fix", "section": "Bug Fixes"},
{"type": "chore", "hidden": true},
{"type": "docs", "hidden": true},
{"type": "style", "hidden": true},
{"type": "refactor", "hidden": true},
{"type": "perf", "hidden": true},
{"type": "test", "hidden": true}
]
}
12 changes: 12 additions & 0 deletions codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
exclude_paths:
- '**/node_modules/**'
- '**/__mocks__/**'
- '**/__stubs__/**'
- '**/__fixtures__/**'
- '**/**.spec.js'
- '**/**.e2e-spec.js'
- '.devcontainer/**'
- '.github/**'
- '.husky/**'
- '.vscode/**'
11 changes: 11 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ignore:
- '**/node_modules/**'
- '**/__mocks__/**'
- '**/__stubs__/**'
- '**/__fixtures__/**'
- '**/**.spec.js'
- '**/**.e2e-spec.js'
- '.devcontainer'
- '.github'
- '.husky'
- '.vscode'
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,22 @@
"@types/node": "^16.0.0",
"@typescript-eslint/eslint-plugin": "^4.28.2",
"@typescript-eslint/parser": "^4.28.2",
"@commitlint/cli": "^16.1.0",
"@commitlint/config-conventional": "^16.0.0",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jsdoc": "^37.0.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.4.0",
"husky": "^7.0.4",
"jest": "27.0.6",
"jest-junit": "^12.2.0",
"jest-mock-extended": "^1.0.18",
"lerna": "^3.22.1",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"standard-version": "^9.3.2",
"ts-jest": "^27.0.3",
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
Expand All @@ -34,7 +38,7 @@
"clean": "./node_modules/.bin/tsc --build --clean",
"build": "./node_modules/.bin/tsc --build",
"watch": "yarn build && ./node_modules/.bin/tsc --build --watch",
"prepare": "yarn clean && yarn build",
"prepare": "husky install && yarn clean && yarn build",
"lint": "eslint \"packages/**/{src,test}/**/*.{ts,js,json}\" --fix",
"test": "jest",
"test:watch": "jest --watch",
Expand All @@ -47,6 +51,10 @@
"doc:watch": "yarn doc:serve -w",
"doc:cov": "yarn doc --coverageMinimumPerFile 90 --coverageTestThresholdFail false",
"doc:cov:ut": "yarn doc:cov --unitTestCoverage ./coverage/coverage-summary.json",
"doc:ci": "yarn doc:cov:ut --coverageTestThresholdFail true"
"doc:ci": "yarn doc:cov:ut --coverageTestThresholdFail true",
"changelog": "standard-version",
"changelog:minor": "standard-version --release-as minor",
"changelog:patch": "standard-version --release-as patch",
"changelog:major": "standard-version --release-as major"
}
}
Loading

0 comments on commit 9132f6c

Please sign in to comment.