mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-27 02:52:22 +03:00
24 lines
623 B
Bash
Executable File
24 lines
623 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# Compiles the todoApp and checks `npm run build` on both client and server.
|
|
# This helps us out in CI since Vite won't typecheck locally. So we want to
|
|
# make sure we don't accidentally add anything that causes `tsc` to error out.
|
|
|
|
# Gets the directory of where this script lives.
|
|
dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
echo "Running ensure_todoapp_builds.sh from $dir"
|
|
|
|
cd "$dir/../examples/todoApp"
|
|
|
|
# Compile example app.
|
|
cabal run wasp-cli build
|
|
|
|
# Make sure they build.
|
|
echo "Ensure client builds"
|
|
cd .wasp/build/web-app
|
|
npm run build
|
|
|
|
echo "Ensure server bundles"
|
|
cd ../server
|
|
npm run bundle
|