2024-04-07 15:10:08 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
cd sources
|
|
|
|
|
2025-01-19 17:09:35 -05: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 13:56:01 -04:00
|
|
|
case "$1" in
|
|
|
|
all)
|
2024-04-24 08:19:07 -04:00
|
|
|
npm run all
|
2024-04-11 13:56:01 -04: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-15 18:49:55 -04:00
|
|
|
git checkout -- dist
|
2024-04-11 13:56:01 -04:00
|
|
|
;;
|
2024-11-14 19:00:58 -05:00
|
|
|
dist)
|
|
|
|
npm clean-install
|
|
|
|
npm run build
|
|
|
|
cd ..
|
|
|
|
cp -r sources/dist .
|
|
|
|
;;
|
2024-04-12 11:15:19 -04:00
|
|
|
init-scripts)
|
|
|
|
cd test/init-scripts
|
|
|
|
./gradlew check
|
|
|
|
;;
|
2024-11-14 19:00:58 -05:00
|
|
|
install)
|
|
|
|
npm clean-install
|
2024-05-15 18:49:55 -04:00
|
|
|
npm run build
|
|
|
|
;;
|
2025-01-23 14:07:37 -05:00
|
|
|
test)
|
|
|
|
shift
|
|
|
|
npm test -- $@
|
|
|
|
;;
|
2024-04-11 13:56:01 -04:00
|
|
|
*)
|
|
|
|
npm run build
|
|
|
|
;;
|
2024-04-24 08:19:07 -04:00
|
|
|
esac
|