Skip to content

Commit

Permalink
chore(package.json): replace ghooks into husky (#2259)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj authored and benlesh committed Jan 13, 2017
1 parent bb9d779 commit dd925a8
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
},
"ghooks": {
"commit-msg": "node ./node_modules/validate-commit-msg/index.js",
"pre-commit": "npm run lint_staged"
}
},
"lint-staged": {
"*.@(js)": ["eslint --fix", "git add"],
"*.@(ts)": ["tslint --fix", "git add"]
"*.@(js)": [
"eslint --fix",
"git add"
],
"*.@(ts)": [
"tslint --fix",
"git add"
]
},
"scripts-info": {
"info": "List available script",
Expand All @@ -40,7 +42,6 @@
"lint_perf": "Run lint against performance test suite",
"lint_spec": "Run lint against test spec",
"lint_src": "Run lint against source",
"lint_staged": "Run lint against staged files",
"lint": "Run lint against everything",
"perf": "Run macro performance benchmark",
"perf_micro": "Run micro performance benchmark",
Expand All @@ -51,6 +52,8 @@
"watch": "Watch codebase, trigger compile when source code changes"
},
"scripts": {
"precommit": "lint-staged",
"commitmsg": "validate-commit-msg",
"info": "npm-scripts-info",
"build_all": "npm-run-all build_cjs build_global generate_packages",
"build_cjs": "npm-run-all clean_dist_cjs copy_src_cjs compile_dist_cjs",
Expand Down Expand Up @@ -82,7 +85,6 @@
"lint_perf": "eslint perf/",
"lint_spec": "tslint -c tslint.json \"spec/**/*.ts\"",
"lint_src": "tslint -c tslint.json \"src/**/*.ts\"",
"lint_staged": "lint-staged",
"lint": "npm-run-all --parallel lint_*",
"perf": "protractor protractor.conf.js",
"perf_micro": "node ./perf/micro/index.js",
Expand Down Expand Up @@ -157,12 +159,12 @@
"esdoc": "^0.4.7",
"eslint": "^3.8.0",
"fs-extra": "^0.30.0",
"ghooks": "^1.3.2",
"glob": "^7.0.3",
"gm": "^1.22.0",
"google-closure-compiler-js": "^20160916.0.0",
"gzip-size": "^3.0.0",
"http-server": "^0.9.0",
"husky": "^0.12.0",
"lint-staged": "^3.2.5",
"lodash": "^4.15.0",
"madge": "^1.4.3",
Expand Down

0 comments on commit dd925a8

Please sign in to comment.