test: refactor test:demo script into demo/*/test.sh

This commit is contained in:
Yang Jun
2024-08-29 01:30:25 +08:00
committed by Jun Yang
parent da516a4fd6
commit 62bb20e433
48 changed files with 3018 additions and 23043 deletions
+23
View File
@@ -0,0 +1,23 @@
# npm run build before running this check
set -x
export CI=true
if [ ! -d dist ]; then
echo >2 'build and link liquidjs before run test.sh'
exit 1
fi
npm link
for demo in $(ls demo); do
cd demo/$demo
npm link liquidjs
if npm test; then
echo [success] demo/webpack
else
echo [fail] demo/webpack
exit 1
fi
cd -
done