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
|
2024-05-15 22:49:55 +00:00
|
|
|
git checkout -- dist
|
2024-04-11 17:56:01 +00:00
|
|
|
;;
|
2024-04-12 15:15:19 +00:00
|
|
|
init-scripts)
|
|
|
|
cd test/init-scripts
|
|
|
|
./gradlew check
|
|
|
|
;;
|
2024-05-15 22:49:55 +00:00
|
|
|
dist)
|
|
|
|
npm install
|
|
|
|
npm run build
|
|
|
|
cd ..
|
|
|
|
cp -r sources/dist .
|
|
|
|
;;
|
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
|