diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 000000000..c9cdc63b0 --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ \ No newline at end of file diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 000000000..4c9c7d842 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +commitlint -e diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 000000000..52d590078 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +lint-staged \ No newline at end of file diff --git a/.huskyrc b/.huskyrc deleted file mode 100644 index 914cf42e2..000000000 --- a/.huskyrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "hooks": { - "pre-commit": "lint-staged", - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" - } -} diff --git a/package.json b/package.json index e67c4241b..50a2e52ce 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "deps_check_dir": ".deps_check" }, "scripts": { + "postinstall": "husky install", "automated-release": "release-it --config ./release/.release-it.json", "build": "run-s build:umd:browser build:commonjs build:es", "build:umd:browser": "cross-env BABEL_ENV=browser webpack --progress --config config/webpack/browser.config.babel.js",