Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsualko <klaus@jsxc.org>2019-03-02 21:22:35 +0300
committersualko <klaus@jsxc.org>2019-03-02 21:22:35 +0300
commitdf48d443e1e6395db23357514b25d84e23e0ef4d (patch)
tree66735fb0e94bc14fe5537c4a1b4a8fc16a4eeb0c /package.json
parentdc830e7b5d9d1cf4f2124a41da3f4a11e42c0d6b (diff)
chore: add pre-commit hook
Diffstat (limited to 'package.json')
-rw-r--r--package.json6
1 files changed, 6 insertions, 0 deletions
diff --git a/package.json b/package.json
index eacd9c2..c7bc8c2 100644
--- a/package.json
+++ b/package.json
@@ -17,6 +17,11 @@
"fix-typescript-format": "node_modules/.bin/tsfmt -r",
"checking-typescript-format": "node_modules/.bin/tsfmt --verify"
},
+ "husky": {
+ "hooks": {
+ "pre-commit": "vendor/bin/php-cs-fixer fix --dry-run && vendor/bin/phpunit -c phpunit.xml"
+ }
+ },
"devDependencies": {
"@types/jquery": "^3.3.6",
"archiver": "^3.0.0",
@@ -25,6 +30,7 @@
"copy-webpack-plugin": "^4.5.3",
"css-loader": "^1.0.0",
"git-revision-webpack-plugin": "^3.0.3",
+ "husky": "^1.3.1",
"libxmljs": "^0.19.5",
"mini-css-extract-plugin": "^0.4.4",
"node-sass": "4.9.4",