Browse Source

chore: add husky and link-staged

pull/1826/head
mehmet-erim 7 years ago
parent
commit
c8545b0693
  1. 35
      npm/ng-packs/package.json

35
npm/ng-packs/package.json

@ -3,7 +3,8 @@
"ng": "ng",
"symlink": "symlink",
"abpng": "abpng",
"commit": "git-cz"
"commit": "ng lint && git-cz",
"lint": "ng lint"
},
"devDependencies": {
"@abp/ng.core": "^0.9.0",
@ -16,13 +17,13 @@
"@angular/cdk": "^8.0.1",
"@angular/cli": "~8.3.5",
"@angular/common": "~8.1.2",
"@angular/compiler": "~8.2.7",
"@angular/compiler-cli": "~8.2.7",
"@angular/compiler": "~8.2.7",
"@angular/core": "~8.1.2",
"@angular/forms": "~8.1.2",
"@angular/language-service": "~8.2.7",
"@angular/platform-browser": "~8.2.7",
"@angular/platform-browser-dynamic": "~8.2.7",
"@angular/platform-browser": "~8.2.7",
"@angular/router": "~8.1.2",
"@ng-bootstrap/ng-bootstrap": "^5.1.0",
"@ngneat/spectator": "^4.3.2",
@ -36,21 +37,24 @@
"angular-oauth2-oidc": "^8.0.1",
"bootstrap": "^4.3.1",
"chart.js": "^2.8.0",
"codelyzer": "^5.0.0",
"codelyzer": "^5.1.2",
"cz-conventional-changelog": "3.0.2",
"font-awesome": "^4.7.0",
"husky": "^3.0.7",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"just-clone": "3.1.0",
"just-compare": "^1.3.0",
"karma": "~4.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"karma-jasmine": "~2.0.1",
"karma": "~4.1.0",
"lint-staged": "^9.4.0",
"ng-packagr": "^5.5.0",
"ngx-perfect-scrollbar": "^8.0.0",
"ngxs-reset-plugin": "^1.2.0",
"prettier": "^1.18.2",
"primeicons": "^1.0.0",
"primeng": "^8.0.0",
"protractor": "~5.4.0",
@ -58,8 +62,8 @@
"snq": "^1.0.3",
"symlink-manager": "^1.3.0",
"ts-node": "~7.0.0",
"tsickle": "^0.35.0",
"tslint": "~5.15.0",
"tsickle": "^0.37.0",
"tslint": "~5.20.0",
"typescript": "~3.5.3",
"zone.js": "~0.9.1"
},
@ -70,5 +74,20 @@
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && touch index.js"
}
},
"lint-staged": {
"*.{ts,js,html,json,md,yaml,yml}": [
"prettier --write",
"git add"
],
"*.ts": [
"tslint --fix",
"git add"
]
}
}

Loading…
Cancel
Save