mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
15 lines
341 B
Bash
15 lines
341 B
Bash
#!/bin/bash
|
|
|
|
killall -9 $(basename $BUN_BIN) || echo "";
|
|
|
|
rm -rf /tmp/react-app;
|
|
mkdir -p /tmp/react-app;
|
|
$BUN_BIN create react /tmp/react-app;
|
|
cd /tmp/react-app;
|
|
BUN_CRASH_WITHOUT_JIT=1 $BUN_BIN --port 8087 &
|
|
sleep 0.005
|
|
|
|
curl --fail http://localhost:8087/ && killall -9 $(basename $BUN_BIN) && echo "✅ bun create react passed."
|
|
exit $?
|
|
|