- Add smoke-compose script for compose validation - Update build, lint, test scripts - Update agent roadmap and phase documentation - Update project README and docs
40 lines
1.2 KiB
Bash
Executable file
40 lines
1.2 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
|
|
if [ -f "$root/apps/flutter-test/pubspec.yaml" ]; then
|
|
if command -v flutter >/dev/null 2>&1; then
|
|
if [ -d "$root/apps/flutter-test/web" ]; then
|
|
(cd "$root/apps/flutter-test" && flutter build web)
|
|
else
|
|
echo "skip apps/flutter-test: web platform not configured"
|
|
fi
|
|
else
|
|
echo "skip apps/flutter-test: flutter not found"
|
|
fi
|
|
fi
|
|
|
|
if [ -f "$root/services/core/server/go.mod" ]; then
|
|
if [ "${NEXO_CORE_GO_BUILD:-0}" = "1" ]; then
|
|
if command -v go >/dev/null 2>&1; then
|
|
(cd "$root/services/core/server" && go build ./...)
|
|
else
|
|
echo "skip services/core/server: go not found"
|
|
fi
|
|
else
|
|
echo "skip services/core/server: set NEXO_CORE_GO_BUILD=1 to run the Go build"
|
|
fi
|
|
fi
|
|
|
|
if [ -f "$root/services/core/webapp/package.json" ]; then
|
|
if [ "${NEXO_CORE_WEBAPP_BUILD:-0}" = "1" ]; then
|
|
if command -v npm >/dev/null 2>&1; then
|
|
(cd "$root/services/core/webapp" && npm run build)
|
|
else
|
|
echo "skip services/core/webapp: npm not found"
|
|
fi
|
|
else
|
|
echo "skip services/core/webapp: set NEXO_CORE_WEBAPP_BUILD=1 to run the webapp npm build"
|
|
fi
|
|
fi
|