refactor(frontend): rename project to s2s-frontend
This commit is contained in:
+3
-3
@@ -4,7 +4,7 @@ set -euo pipefail
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
VENV_DIR="$ROOT_DIR/.venv"
|
||||
REQ_FILE="$ROOT_DIR/s2s-client/requirements.txt"
|
||||
FRONTEND_DIR="$ROOT_DIR/frontend-s2s"
|
||||
FRONTEND_DIR="$ROOT_DIR/s2s-frontend"
|
||||
if [ -f "$ROOT_DIR/.env" ]; then
|
||||
set -a
|
||||
source "$ROOT_DIR/.env"
|
||||
@@ -28,7 +28,7 @@ for required_command in python3 node npm setsid curl; do
|
||||
done
|
||||
|
||||
if ! node -e 'const [major, minor] = process.versions.node.split(".").map(Number); process.exit((major === 22 && minor >= 18) || major >= 24 ? 0 : 1)'; then
|
||||
echo "Error: frontend-s2s requires Node.js 22.18+ on the 22.x line, or Node.js 24+."
|
||||
echo "Error: s2s-frontend requires Node.js 22.18+ on the 22.x line, or Node.js 24+."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -67,7 +67,7 @@ fi
|
||||
if [ ! -f "$FRONTEND_DIR/node_modules/vite/bin/vite.js" ] || \
|
||||
! cmp -s "$FRONTEND_DIR/package-lock.json" "$FRONTEND_DIR/node_modules/.s2s-package-lock.json" || \
|
||||
! cmp -s "$FRONTEND_DIR/package.json" "$FRONTEND_DIR/node_modules/.s2s-package.json"; then
|
||||
echo "Installing frontend dependencies from frontend-s2s/package-lock.json..."
|
||||
echo "Installing frontend dependencies from s2s-frontend/package-lock.json..."
|
||||
npm --prefix "$FRONTEND_DIR" ci --include=dev
|
||||
cp "$FRONTEND_DIR/package-lock.json" "$FRONTEND_DIR/node_modules/.s2s-package-lock.json"
|
||||
cp "$FRONTEND_DIR/package.json" "$FRONTEND_DIR/node_modules/.s2s-package.json"
|
||||
|
||||
Reference in New Issue
Block a user