mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-07-29 15:55:47 -05:00
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:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user