Skip to content

Commit 11a374b

Browse files
jhosefmarkspo-ui-dev
authored andcommitted
build: configura travis para validação dos commits com commitlint
Detalhes das atualizações: - separa a configuração do husky em um arquivo separado; - adiciona arquivo de configuração do travis; - atualiza dependências do commitlint e do husky.
1 parent 2d3fa64 commit 11a374b

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.huskyrc

Lines changed: 5 additions & 0 deletions
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+
}

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ cache:
2020
- node_modules
2121

2222
script:
23+
- commitlint-travis
2324
- npm run lint
2425
- npm run build:lite
2526
- npm run test

package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@
6969
"@angular/cli": "~8.0.1",
7070
"@angular/compiler-cli": "~8.0.0",
7171
"@angular/language-service": "~8.0.0",
72-
"@commitlint/cli": "^8.0.0",
73-
"@commitlint/config-angular": "^8.0.0",
72+
"@commitlint/cli": "^8.3.5",
73+
"@commitlint/config-angular": "^8.3.4",
74+
"@commitlint/travis-cli": "^8.3.5",
7475
"@portinari/tslint": "1.0.0",
7576
"@types/jasmine": "~3.3.8",
7677
"@types/jasminewd2": "~2.0.3",
@@ -81,7 +82,7 @@
8182
"del": "^3.0.0",
8283
"gulp": "^4.0.2",
8384
"gulp-run": "^1.7.1",
84-
"husky": "^3.0.0",
85+
"husky": "^4.2.3",
8586
"jasmine": "^3.3.1",
8687
"jasmine-core": "~3.4.0",
8788
"jasmine-spec-reporter": "~4.2.1",
@@ -93,18 +94,13 @@
9394
"ng-packagr": "^5.1.0",
9495
"protractor": "~5.4.0",
9596
"sonarqube-scanner": "^2.4.1",
96-
"standard-version": "^6.0.1",
97+
"standard-version": "^7.1.0",
9798
"ts-node": "~7.0.0",
9899
"tsickle": "^0.35.0",
99100
"tslint": "~5.15.0",
100101
"typemoq": "^2.1.0",
101102
"typescript": "~3.4.3"
102103
},
103-
"husky": {
104-
"hooks": {
105-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
106-
}
107-
},
108104
"standard-version": {
109105
"skip": {
110106
"commit": true,

0 commit comments

Comments
 (0)