prebuilt themes check and fix

This commit is contained in:
Eugenio Romano
2017-11-22 14:24:54 +00:00
parent 68239cd002
commit fa68741242
2 changed files with 13 additions and 1 deletions

View File

@@ -58,6 +58,16 @@ do
npm pack '@alfresco/'$PACKAGE@$VERSION
tar zxf 'alfresco-'$PACKAGE-$VERSION.tgz
if [ $PACKAGE == 'adf-core' ]; then
if [ ! -f package/prebuilt-themes/'adf-blue-orange.css' ]; then
error_out '31;1' "$PACKAGE prebuilt-theme not found!" >&2
exit 1
else
echo "prebuilt-theme ok!"
fi
fi
if [ ! -f package/bundles/$PACKAGE'.umd.js' ]; then
error_out '31;1' "$PACKAGE bundles not found!" >&2
exit 1
@@ -97,6 +107,7 @@ do
done
cd ..
rm -rf temp
set_npm_registry