Files
flights_web/scripts/sync-to-flights-front.sh
gnezim 5dd6190650 ci: factor sync core into scripts/ci/sync-to-gitlab.sh
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.
2026-04-25 02:49:35 +03:00

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"