diff options
-rw-r--r-- | .dockerignore | 4 | ||||
-rwxr-xr-x | .husky/pre-commit | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/.dockerignore b/.dockerignore index 110334e..e97b248 100644 --- a/.dockerignore +++ b/.dockerignore | |||
@@ -15,6 +15,4 @@ docker | |||
15 | !docker/entrypoint.sh | 15 | !docker/entrypoint.sh |
16 | !docker/.env | 16 | !docker/.env |
17 | node_modules | 17 | node_modules |
18 | 18 | .husky | |
19 | |||
20 | |||
diff --git a/.husky/pre-commit b/.husky/pre-commit index 20d0d06..1a92cb3 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit | |||
@@ -1,4 +1,9 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | . "$(dirname "$0")/_/husky.sh" | ||
3 | 2 | ||
4 | npm run lint | 3 | FILE_NAME="$(dirname "$0")/_/husky.sh" |
4 | |||
5 | # Conditionally invoke so as to avoid running npm commands if this is a clean checkout (ie before installing npm modules) | ||
6 | if [ -f $FILE_NAME ]; then | ||
7 | . $FILE_NAME | ||
8 | npm run lint | ||
9 | fi | ||