webui: layer for standalone pages which use WebUI framework

Current compiled Web UI layer (app.js) contains every FreeIPA plugin and
not just the UI framework. It's not possible to start just a simple facet.

This commit creates a basis for a layer (core.js) which contains only
framework code and not entity related code.

Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
Petr Vobornik
2014-06-30 12:27:05 +02:00
parent c2c1131a7a
commit 46a42de532
8 changed files with 67 additions and 16 deletions
-12
View File
@@ -106,15 +106,3 @@ fi
# compile using uglify.js
$DIR/uglifyjs/uglify $RDIR/$RELEASE/$LAYER.js $OUTPUT_FILE
# clean all other files
BUILD_DIR=$RDIR/$RELEASE/`echo $LAYER | cut -d/ -f 1`
LAYER_FILE=`echo $LAYER | cut -d/ -f 2`.js
rm -f $RDIR/$RELEASE/build-report.txt
pushd $BUILD_DIR
if [[ $? != 0 ]] ; then
echo "Invalid build dir: $BUILD_DIR"
exit 1
fi
ls -1 | grep -v -e "^$LAYER_FILE$" | xargs rm -rf
popd
+1
View File
@@ -31,5 +31,6 @@ fi
$DIR/clean.sh
$DIR/build.sh webui
# don't stop at error. Some dependency errors are expected.
$DIR/compile.sh --release lib --layer freeipa/core --output $IPA_DIR/core.js
$DIR/compile.sh --release lib --layer freeipa/app --output $IPA_DIR/app.js
$DIR/clean.sh