Files
gradle/build
Daz DeBoer 2b9247147a Convert project to ESM and update dependencies (#854)
- Switch to esbuild for bundling
- Update npm dependency version
- Add require header for compat with older JS libs
2026-02-10 15:30:49 -07:00

41 lines
696 B
Bash
Executable File

#!/bin/bash
cd sources
case "$1" in
all)
npm run all
;;
act)
# Build and copy outputs to the dist directory
npm run build
cd ..
cp -r sources/dist .
# Run act
$@
# Revert the changes to the dist directory
git checkout -- dist
;;
dist)
npm clean-install
npm run build
cd ..
cp -r sources/dist .
;;
init-scripts)
cd test/init-scripts
./gradlew check
;;
install)
npm clean-install
npm run build
;;
test)
shift
npm test -- $@
;;
*)
npm run build
;;
esac