|
12 | 12 | "test:ci": "jest --ci --no-stack-trace --verbose", |
13 | 13 | "release:npm": "pnpm recursive publish --access public --filter @cordis/* --filter=!./services", |
14 | 14 | "release:docker": "docker build -t cordislib/gateway -f ./services/gateway/Dockerfile . && docker push cordislib/gateway", |
15 | | - "release": "pnpm run lint && pnpm run test:ci && rimraf \"*/*/?(dist|types)/**\" && pnpm run build && pnpm run release:npm && pnpm run release:docker" |
| 15 | + "release": "pnpm run lint && pnpm run test:ci && rimraf \"*/*/?(dist|types)/**\" && pnpm run build && pnpm run release:npm && pnpm run release:docker", |
| 16 | + "changelog": "standard-version" |
16 | 17 | }, |
17 | 18 | "repository": { |
18 | 19 | "type": "git", |
|
32 | 33 | "@babel/generator": "^7.14.1", |
33 | 34 | "@babel/preset-env": "^7.14.1", |
34 | 35 | "@babel/preset-typescript": "^7.13.0", |
| 36 | + "@commitlint/cli": "^12.1.4", |
| 37 | + "@commitlint/config-conventional": "^12.1.4", |
35 | 38 | "@strictsoftware/typedoc-plugin-monorepo": "^0.3.1", |
36 | 39 | "@types/jest": "^26.0.23", |
37 | 40 | "@typescript-eslint/eslint-plugin": "^4.23.0", |
|
45 | 48 | "jest": "^26.6.3", |
46 | 49 | "lint-staged": "^10.5.4", |
47 | 50 | "rimraf": "^3.0.2", |
| 51 | + "standard-version": "^9.3.0", |
48 | 52 | "typedoc": "^0.19.2", |
49 | 53 | "typedoc-plugin-as-member-of": "^1.0.2", |
50 | 54 | "typedoc-plugin-markdown": "^3.8.0", |
|
54 | 58 | }, |
55 | 59 | "husky": { |
56 | 60 | "hooks": { |
57 | | - "pre-commit": "lint-staged" |
| 61 | + "pre-commit": "lint-staged", |
| 62 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
58 | 63 | } |
59 | 64 | }, |
60 | 65 | "lint-staged": { |
61 | 66 | "*.ts": [ |
62 | 67 | "eslint --fix" |
63 | 68 | ] |
| 69 | + }, |
| 70 | + "commitlint": { |
| 71 | + "extends": [ |
| 72 | + "@commitlint/config-conventional" |
| 73 | + ], |
| 74 | + "rules": { |
| 75 | + "scope-case": [ |
| 76 | + 2, |
| 77 | + "always", |
| 78 | + "pascal-case" |
| 79 | + ] |
| 80 | + } |
64 | 81 | } |
65 | 82 | } |
0 commit comments