feat: scaffold apex commons project (assets, source, hooks, docs)
This commit is contained in:
commit
e9c7e13848
16 files changed
+489
No files matched your search
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# apex commons pre-commit: lint staged docker-compose files.
|
||||
if [[ -n "${APEX_COMMONS:-}" ]]; then
|
||||
APEX_CMD="$APEX_COMMONS/apex"
|
||||
else
|
||||
APEX_CMD="$(git rev-parse --show-toplevel)/commons/apex"
|
||||
[[ -x "$APEX_CMD" ]] || APEX_CMD="$(git rev-parse --show-toplevel)/apex" # standalone commons repo
|
||||
fi
|
||||
"$APEX_CMD" utils/lint-docker-compose --hook || { echo "[pre-commit] Aborting: apex utils/lint-docker-compose failed."; exit 1; }
|
||||
Reference in new issue
Block a user