2024-04-07 13:10:08 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd sources
|
|
|
|
|
2025-01-19 15:09:35 -07:00
|
|
|
if [[ -f ~/.gradle/develocity/keys.properties ]]; then
|
|
|
|
export NODE_OPTIONS='-r @gradle/develocity-agent/preload'
|
|
|
|
export DEVELOCITY_URL=https://ge.solutions-team.gradle.com
|
|
|
|
export DEVELOCITY_ACCESS_KEY=$(paste -sd ';' ~/.gradle/develocity/keys.properties)
|
|
|
|
fi
|
|
|
|
|
2024-04-11 11:56:01 -06:00
|
|
|
case "$1" in
|
|
|
|
all)
|
2024-04-24 13:19:07 +01:00
|
|
|
npm run all
|
2024-04-11 11:56:01 -06:00
|
|
|
;;
|
|
|
|
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
|
2024-05-16 00:49:55 +02:00
|
|
|
git checkout -- dist
|
2024-04-11 11:56:01 -06:00
|
|
|
;;
|
2024-11-14 17:00:58 -07:00
|
|
|
dist)
|
|
|
|
npm clean-install
|
|
|
|
npm run build
|
|
|
|
cd ..
|
|
|
|
cp -r sources/dist .
|
|
|
|
;;
|
2024-04-12 09:15:19 -06:00
|
|
|
init-scripts)
|
|
|
|
cd test/init-scripts
|
|
|
|
./gradlew check
|
|
|
|
;;
|
2024-11-14 17:00:58 -07:00
|
|
|
install)
|
|
|
|
npm clean-install
|
2024-05-16 00:49:55 +02:00
|
|
|
npm run build
|
|
|
|
;;
|
2025-01-23 12:07:37 -07:00
|
|
|
test)
|
|
|
|
shift
|
|
|
|
npm test -- $@
|
|
|
|
;;
|
2024-04-11 11:56:01 -06:00
|
|
|
*)
|
|
|
|
npm run build
|
|
|
|
;;
|
2024-04-24 13:19:07 +01:00
|
|
|
esac
|