#!/usr/bin/env bash
#
# Bundle a given feature's TypeScript into a single JavaScript
#
if [ -z "$1" ] ; then
echo "No feature was specified"
fi
echo "Bundling feature $1"
bun build \
--watch \
--outfile "Output/$1.js" \
"Source/$1/mod.ts"
#!/usr/bin/env bash
clear
echo "Bundling all features in parallel"
npm run feature TestFeatureA &
npm run feature TestFeatureB &
wait
echo "All bundle processes have stopped"