diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 00000000..12637881 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,37 @@ +#!/bin/sh + +if [ "$LEFTHOOK" = "0" ]; then + exit 0 +fi + +if [ -t 1 ] ; then + exec < /dev/tty ; # <- enables interactive shell +fi + +dir="$(git rev-parse --show-toplevel)" + +call_lefthook() +{ + if lefthook.exe -h >/dev/null 2>&1 + then + eval lefthook.exe $@ + elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe" + then + eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe $@" + elif bundle exec lefthook -h >/dev/null 2>&1 + then + bundle exec lefthook $@ + elif npx @arkweid/lefthook -h >/dev/null 2>&1 + then + npx @arkweid/lefthook $@ + elif yarn lefthook -h >/dev/null 2>&1 + then + yarn lefthook $@ + else + echo "Can't find lefthook in PATH" + fi +} + + + +call_lefthook "run pre-commit $@" diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100644 index 00000000..18ca2d5f --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,37 @@ +#!/bin/sh + +if [ "$LEFTHOOK" = "0" ]; then + exit 0 +fi + +if [ -t 1 ] ; then + exec < /dev/tty ; # <- enables interactive shell +fi + +dir="$(git rev-parse --show-toplevel)" + +call_lefthook() +{ + if lefthook.exe -h >/dev/null 2>&1 + then + eval lefthook.exe $@ + elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe" + then + eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe $@" + elif bundle exec lefthook -h >/dev/null 2>&1 + then + bundle exec lefthook $@ + elif npx @arkweid/lefthook -h >/dev/null 2>&1 + then + npx @arkweid/lefthook $@ + elif yarn lefthook -h >/dev/null 2>&1 + then + yarn lefthook $@ + else + echo "Can't find lefthook in PATH" + fi +} + + + +call_lefthook "run pre-push $@" diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg new file mode 100644 index 00000000..0b4154f5 --- /dev/null +++ b/.husky/prepare-commit-msg @@ -0,0 +1,39 @@ +#!/bin/sh + +if [ "$LEFTHOOK" = "0" ]; then + exit 0 +fi + +if [ -t 1 ] ; then + exec < /dev/tty ; # <- enables interactive shell +fi + +dir="$(git rev-parse --show-toplevel)" + +call_lefthook() +{ + if lefthook.exe -h >/dev/null 2>&1 + then + eval lefthook.exe $@ + elif test -f "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe" + then + eval "$dir/node_modules/@arkweid/lefthook/bin/lefthook.exe $@" + elif bundle exec lefthook -h >/dev/null 2>&1 + then + bundle exec lefthook $@ + elif npx @arkweid/lefthook -h >/dev/null 2>&1 + then + npx @arkweid/lefthook $@ + elif yarn lefthook -h >/dev/null 2>&1 + then + yarn lefthook $@ + else + echo "Can't find lefthook in PATH" + fi +} + +# lefthook_version: 014215c5cbda06062294072352d240a2 + +call_lefthook "install" + +call_lefthook "run prepare-commit-msg $@" diff --git a/dist/index.js.map b/dist/index.js.map index 9aea81ea..72c9eac1 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ