Skip to content

Commit f864873

Browse files
author
Jhosef Marks de Carvalho
committed
build: adiciona lint para os commits e cria tarefa de release
Adiciona as dependências ao projeto: - husky - @commitlint/cli - @commitlint/config-angular - standard-version
1 parent 12809fb commit f864873

File tree

2 files changed

+23
-4
lines changed

2 files changed

+23
-4
lines changed

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-angular']
3+
};

package.json

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"build:sync": "ng build sync && gulp replaceVersion && cd dist/portinari-sync && npm pack",
3535
"build": "npm run build:ui && npm run build:templates && npm run build:storage && npm run build:sync && npm run build:code-editor",
3636
"build:lite": "ng build ui && ng build storage && ng build sync && ng build templates && ng build code-editor",
37+
"release": "standard-version",
3738
"sonarqube": "gulp sonarqube"
3839
},
3940
"private": true,
@@ -64,18 +65,20 @@
6465
"@angular/cli": "~8.0.1",
6566
"@angular/compiler-cli": "~8.0.0",
6667
"@angular/language-service": "~8.0.0",
68+
"@commitlint/cli": "^8.0.0",
69+
"@commitlint/config-angular": "^8.0.0",
6770
"@portinari/tslint": "1.0.0",
6871
"@types/jasmine": "~3.3.8",
6972
"@types/jasminewd2": "~2.0.3",
70-
"@types/node": "~8.9.4",
7173
"@types/localforage": "0.0.34",
74+
"@types/node": "~8.9.4",
7275
"@types/systemjs": "^0.20.6",
76+
"codelyzer": "^5.0.0",
7377
"del": "^3.0.0",
78+
"gulp": "^4.0.2",
7479
"gulp-run": "^1.7.1",
80+
"husky": "^3.0.0",
7581
"jasmine": "^3.3.1",
76-
"typemoq": "^2.1.0",
77-
"codelyzer": "^5.0.0",
78-
"gulp": "^4.0.2",
7982
"jasmine-core": "~3.4.0",
8083
"jasmine-spec-reporter": "~4.2.1",
8184
"karma": "~4.1.0",
@@ -86,9 +89,22 @@
8689
"ng-packagr": "^5.1.0",
8790
"protractor": "~5.4.0",
8891
"sonarqube-scanner": "^2.4.1",
92+
"standard-version": "^6.0.1",
8993
"ts-node": "~7.0.0",
9094
"tsickle": "^0.35.0",
9195
"tslint": "~5.15.0",
96+
"typemoq": "^2.1.0",
9297
"typescript": "~3.4.3"
98+
},
99+
"husky": {
100+
"hooks": {
101+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
102+
}
103+
},
104+
"standard-version": {
105+
"skip": {
106+
"commit": true,
107+
"tag": true
108+
}
93109
}
94110
}

0 commit comments

Comments
 (0)