[MNT-21595] Content - Expose a group service for content (#5833)

* Expose a group service for content

* Use nx command and remove smart-build
This commit is contained in:
Maurizio Vitale
2020-07-13 12:22:54 +01:00
committed by GitHub
parent 179ce2e8eb
commit 42d88fdaa9
8 changed files with 85 additions and 94 deletions

View File

@@ -1,87 +0,0 @@
#!/usr/bin/env bash
eval GNU=false
show_help() {
echo "Usage: smart-build.sh"
echo ""
echo "-gnu for gnu"
}
gnu_mode() {
echo "====== GNU MODE ====="
GNU=true
}
while [[ $1 == -* ]]; do
case "$1" in
-gnu) gnu_mode; shift;;
-*) echo "invalid option: $1" 1>&2; show_help; exit 0;;
esac
done
if $GNU; then
gnu='-gnu'
else
gnu=''
fi
affected="$(nx affected:libs --base=$BASE_HASH --head=$HEAD_HASH --plain)"
echo $affected
libs=(`echo $affected | sed 's/^$/\n/g'`)
for i in "${libs[@]}"
do
if [ "$i" == "extensions" ] ; then
./scripts/build/build-extensions.sh || exit 1;
fi
done
for i in "${libs[@]}"
do
if [ "$i" == "core" ] ; then
./scripts/build/build-core.sh || exit 1;
fi
done
for i in "${libs[@]}"
do
if [ "$i" == "content-services" ] ; then
./scripts/build/build-content-services.sh || exit 1;
fi
done
for i in "${libs[@]}"
do
if [ "$i" == "process-services" ] ; then
./scripts/build/build-process-services.sh || exit 1;
fi
done
for i in "${libs[@]}"
do
if [ "$i" == "process-services-cloud" ] ; then
./scripts/build/build-process-services-cloud.sh || exit 1;
fi
done
for i in "${libs[@]}"
do
if [ "$i" == "insights" ] ; then
./scripts/build/build-insights.sh || exit 1;
fi
done
for i in "${libs[@]}"
do
if [ "$i" == "testing" ] ; then
./scripts/build/build-testing.sh || exit 1;
fi
done
for i in "${libs[@]}"
do
if [ "$i" == "cli" ] ; then
./scripts/build/build-cli.sh || exit 1;
fi
done

View File

@@ -29,9 +29,6 @@ else
echo "====== Update the package.json with latest ADW deps ====="
npx @alfresco/adf-cli@alpha update-version --alpha --pathPackage "$(pwd)"
npm install;
./scripts/smart-build.sh -gnu || exit 1;
fi;
echo "====== Build Demo shell for production ====="
npm run build:prod || exit 1;
nx affected --target=build --base=$BASE_HASH --head=$HEAD_HASH --exclude=cli --prod --with-deps