mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
* feat!: drop TagImplOptions in favor of Tag classes (#839) Remove tag-options-adapter and the registerTag object-literal overload. Custom tags must extend Tag. Co-authored-by: Cursor <[email protected]> * test: drop TagImplOptions-specific e2e coverage (#839) Remove #570 v9 object-literal registration test and unused metadata_file setup in #573. Co-authored-by: Cursor <[email protected]> * test: use inline Tag classes in register-tags spec Co-authored-by: Cursor <[email protected]> * test: remove dead throwingTag setup and duplicate throw stub for.spec kept throwingTag registration after #713 removed its test. Reuse ThrowingTag in liquid.spec instead of IntendedRenderErrorTag. Co-authored-by: Cursor <[email protected]> * test: remove dead throwingTag setup and duplicate throw stub for.spec kept throwingTag registration after #713 removed its test. Reuse ThrowingTag in liquid.spec instead of IntendedRenderErrorTag. Co-authored-by: Cursor <[email protected]> * fix(demo): ignore killall exit when express server already stopped Co-authored-by: Cursor <[email protected]> * fix(demo): revert unrelated return->exit change in express test Co-authored-by: Cursor <[email protected]> * fix(demo): use exit in express test script (no enclosing function) Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]>
21 lines
382 B
Bash
Executable File
21 lines
382 B
Bash
Executable File
set -e
|
|
|
|
LOG_FILE=$(mktemp)
|
|
npm start > $LOG_FILE 2>&1 &
|
|
SERVER_PID=$!
|
|
while ! grep -q "Express running" "$LOG_FILE"; do
|
|
if ! kill -0 $SERVER_PID; then
|
|
echo "Server exited unexpectedly."
|
|
cat $LOG_FILE
|
|
exit 1
|
|
fi
|
|
sleep 1
|
|
done
|
|
curl http://127.0.0.1:3000 | grep -q 'Welcome to LiquidJS'
|
|
RESULT=$?
|
|
killall node || true
|
|
rm $LOG_FILE
|
|
if [ $RESULT != 0 ]; then
|
|
exit 1
|
|
fi
|