2024-04-07 19:10:08 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd sources
|
|
|
|
|
2024-04-11 17:56:01 +00:00
|
|
|
case "$1" in
|
|
|
|
all)
|
2024-04-12 15:15:19 +00:00
|
|
|
npm clean-install
|
2024-04-24 12:19:07 +00:00
|
|
|
npm run all
|
2024-04-11 17:56:01 +00:00
|
|
|
;;
|
|
|
|
act)
|
|
|
|
# Build and copy outputs to the dist directory
|
2024-04-12 15:15:19 +00:00
|
|
|
npm install
|
2024-04-11 17:56:01 +00:00
|
|
|
npm run build
|
|
|
|
cd ..
|
|
|
|
cp -r sources/dist .
|
|
|
|
# Run act
|
|
|
|
$@
|
|
|
|
# Revert the changes to the dist directory
|
|
|
|
git co -- dist
|
|
|
|
;;
|
2024-04-12 15:15:19 +00:00
|
|
|
init-scripts)
|
|
|
|
cd test/init-scripts
|
|
|
|
./gradlew check
|
|
|
|
;;
|
2024-04-11 17:56:01 +00:00
|
|
|
*)
|
2024-04-12 15:15:19 +00:00
|
|
|
npm install
|
2024-04-11 17:56:01 +00:00
|
|
|
npm run build
|
|
|
|
;;
|
2024-04-24 12:19:07 +00:00
|
|
|
esac
|