CyTube/postinstall.sh
Calvin Montgomery 3f9a0aaf05 Fix npm jank
2020-10-23 11:51:59 -07:00

15 lines
248 B
Bash
Executable file

#!/bin/sh
set -e
if ! command -v npm >/dev/null; then
echo "Could not find npm in \$PATH"
exit 1
fi
echo "Building from src/ to lib/"
npm run build-server
echo "Building from player/ to www/js/player.js"
npm run build-player
echo "Done"