Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Commit dbf0f60

Browse files
committed
chore: add ngx-semantic-version schematic
Add commitlint, husky, commitizen and standard-version configuration related #28
1 parent e326ce9 commit dbf0f60

File tree

5 files changed

+1449
-15
lines changed

5 files changed

+1449
-15
lines changed

.huskyrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
4+
}
5+
}

.versionrc.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"types": [
3+
{ "type": "docs", "section": "Documentation" },
4+
{ "type": "feat", "section": "Features" },
5+
{ "type": "fix", "section": "Bug Fixes" },
6+
{ "type": "perf", "section": "Performance Improvements" },
7+
{ "type": "refactor", "section": "Code Refactoring" }
8+
]
9+
}

commitlint.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* To check all configuration options, please visit
3+
* https://commitlint.js.org/#/reference-rules
4+
*/
5+
module.exports = {
6+
extends: ['@commitlint/config-conventional'],
7+
};

package.json

+14
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"name": "ngx-sticky-demo",
33
"version": "0.0.0",
44
"scripts": {
5+
"release": "standard-version",
6+
"commit": "npx git-cz",
57
"ng": "ng",
68
"start": "ng serve",
79
"build": "ng build",
@@ -50,6 +52,7 @@
5052
"core-js": "^2.6.2",
5153
"express": "^4.15.2",
5254
"intersection-observer": "^0.7.0",
55+
"ngx-semantic-version": "^1.2.1",
5356
"ngx-sticky-directive": "latest",
5457
"rxjs": "~6.3.3",
5558
"zone.js": "~0.8.28"
@@ -60,15 +63,20 @@
6063
"@angular/cli": "~7.2.2",
6164
"@angular/compiler-cli": "~7.2.1",
6265
"@angular/language-service": "~7.2.1",
66+
"@commitlint/cli": "^8.2.0",
67+
"@commitlint/config-conventional": "^8.2.0",
6368
"@types/express": "^4.17.2",
6469
"@types/jasmine": "~3.3.7",
6570
"@types/jasminewd2": "~2.0.3",
6671
"@types/node": "^11.13.0",
6772
"angular-cli-ghpages": "^0.5.3",
6873
"angular-http-server": "^1.8.1",
6974
"codelyzer": "~4.5.0",
75+
"commitizen": "^4.0.3",
7076
"copy": "^0.3.2",
7177
"cross-env": "^5.2.0",
78+
"cz-conventional-changelog": "^3.0.2",
79+
"husky": "^4.2.5",
7280
"jasmine-core": "~3.3.0",
7381
"jasmine-spec-reporter": "~4.2.1",
7482
"karma": "~3.1.4",
@@ -80,12 +88,18 @@
8088
"ng-packagr": "^4.6.0",
8189
"protractor": "~5.4.0",
8290
"sonar-scanner": "^3.1.0",
91+
"standard-version": "^7.0.0",
8392
"ts-loader": "^5.2.0",
8493
"ts-node": "~7.0.0",
8594
"tsickle": ">=0.29.0",
8695
"tslib": "^1.9.0",
8796
"tslint": "~5.12.1",
8897
"typescript": "~3.2.4",
8998
"webpack-cli": "^3.1.0"
99+
},
100+
"config": {
101+
"commitizen": {
102+
"path": "./node_modules/cz-conventional-changelog"
103+
}
90104
}
91105
}

0 commit comments

Comments
 (0)