mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-14 13:22:37 +00:00
Resolve Bash through PATH so repository development entrypoints run on NixOS and other systems without /bin/bash.
29 lines
1.2 KiB
Bash
Executable File
29 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
export PATH="$ROOT_DIR/node_modules/.bin:$PATH"
|
|
|
|
source "$SCRIPT_DIR/dev-home.sh"
|
|
|
|
export PASEO_LISTEN="${PASEO_LISTEN:-127.0.0.1:6768}"
|
|
configure_dev_paseo_home
|
|
|
|
EXPO_PORT="${EXPO_PORT:-8081}"
|
|
DAEMON_ENDPOINT="$(resolve_dev_daemon_endpoint)"
|
|
|
|
echo "══════════════════════════════════════════════════════"
|
|
echo " Paseo App Dev"
|
|
echo "══════════════════════════════════════════════════════"
|
|
echo " Metro: http://localhost:${EXPO_PORT}"
|
|
echo " Daemon: ${DAEMON_ENDPOINT}"
|
|
echo " Home: ${PASEO_HOME}"
|
|
echo "══════════════════════════════════════════════════════"
|
|
|
|
exec cross-env \
|
|
BROWSER="${BROWSER:-none}" \
|
|
APP_VARIANT=development \
|
|
EXPO_PUBLIC_LOCAL_DAEMON="$DAEMON_ENDPOINT" \
|
|
npm run start:expo --workspace=@getpaseo/app -- --port "$EXPO_PORT"
|