mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-11-22 14:16:37 +01:00
22 lines
572 B
Bash
Executable File
22 lines
572 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
command -v wasp >/dev/null || { echo "Error: Wasp CLI not found"; exit 1; }
|
|
|
|
SCRIPT_DIR=$(dirname "$(realpath "$0")")
|
|
ROOT_DIR="${SCRIPT_DIR}/../.."
|
|
BASE_DIR="${ROOT_DIR}/template-test/base-app"
|
|
|
|
# Clean up the temporary base app directory on exit.
|
|
trap 'rm -rf "${BASE_DIR}"' EXIT
|
|
|
|
cd "${ROOT_DIR}"
|
|
|
|
rm -rf "${BASE_DIR}"
|
|
(cd "${ROOT_DIR}/template-test" && wasp new -t saas base-app)
|
|
(cd "${BASE_DIR}/app" && git init -b main -q && git add .)
|
|
|
|
rm -rf template-test/app_diff
|
|
"${ROOT_DIR}/tools/dope.sh" "${BASE_DIR}/app" template-test/app diff
|