5dd6190650
CI needs to sync to an arbitrary clone dir, not just the local sibling. Extract the copy logic into sync-to-gitlab.sh (required target arg, machine-friendly output); reduce sync-to-flights-front.sh to a thin wrapper that supplies the local default and adds dev next-steps hints.
23 lines
730 B
Bash
Executable File
23 lines
730 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# sync-to-flights-front.sh — local dev convenience wrapper.
|
|
#
|
|
# Calls scripts/ci/sync-to-gitlab.sh with the local sibling-repo default.
|
|
# CI uses scripts/ci/sync-to-gitlab.sh directly with a fresh clone target.
|
|
set -euo pipefail
|
|
|
|
SRC_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
|
TARGET_DIR="${1:-/Users/gnezim/_projects/tims/flights-front/Aeroflot.Flights.Front}"
|
|
|
|
"$SRC_DIR/scripts/ci/sync-to-gitlab.sh" "$TARGET_DIR"
|
|
|
|
DEPLOY_ROOT="$(cd "$TARGET_DIR/.." && pwd)"
|
|
|
|
echo
|
|
echo "Synced app files at $TARGET_DIR"
|
|
echo
|
|
echo "Next steps:"
|
|
echo " cd $TARGET_DIR"
|
|
echo " pnpm install # if lock file changed"
|
|
echo " make check # typecheck + lint + test"
|
|
echo " cd $DEPLOY_ROOT && git diff # review changes"
|