Skip to content

Commit

Permalink
migrate to husky 1.x, auto-upgrade config
Browse files Browse the repository at this point in the history
  • Loading branch information
trevj committed Jan 7, 2019
1 parent 692c552 commit 54ca9ca
Show file tree
Hide file tree
Showing 2 changed files with 197 additions and 19 deletions.
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"devDependencies": {
"@types/jasmine": "^2.5.53",
"clang-format": "^1.2.2",
"husky": "^0.14.3",
"husky": "^1.3.1",
"jasmine": "^2.6.0",
"tslint": "^5.9.1",
"typescript": "^3.2.2"
Expand All @@ -14,10 +14,14 @@
},
"scripts": {
"clean": "rm -rf src/server_manager/bower_components/ src/*/node_modules/ build/ node_modules/ src/server_manager/install_scripts/do_install_script.ts",
"do": "bash ./scripts/do_action.sh",
"precommit": "for i in . src/server_manager/electron_app src/metrics_server src/shadowbox; do tslint -p $i --fix; done; git-clang-format"
"do": "bash ./scripts/do_action.sh"
},
"workspaces": [
"src/*"
]
],
"husky": {
"hooks": {
"pre-commit": "for i in . src/server_manager/electron_app src/metrics_server src/shadowbox; do tslint -p $i --fix; done; git-clang-format"
}
}
}
Loading

0 comments on commit 54ca9ca

Please sign in to comment.