diff options
| author | Petr Vobornik <pvoborni@redhat.com> | 2014-06-05 17:12:41 +0200 |
|---|---|---|
| committer | Petr Vobornik <pvoborni@redhat.com> | 2014-06-30 12:27:05 +0200 |
| commit | 46a42de5324390496fa70984c2d8cef7a6251b7a (patch) | |
| tree | 6103453bf0d797f3a7c4d87dee4ed5b808866d12 /install/ui/util | |
| parent | c2c1131a7a3745a3bdcf9cea8a5c8203e3ae555b (diff) | |
| download | freeipa-46a42de5324390496fa70984c2d8cef7a6251b7a.tar.gz freeipa-46a42de5324390496fa70984c2d8cef7a6251b7a.tar.xz freeipa-46a42de5324390496fa70984c2d8cef7a6251b7a.zip | |
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>
Diffstat (limited to 'install/ui/util')
| -rwxr-xr-x | install/ui/util/compile.sh | 12 | ||||
| -rwxr-xr-x | install/ui/util/make-ui.sh | 1 |
2 files changed, 1 insertions, 12 deletions
diff --git a/install/ui/util/compile.sh b/install/ui/util/compile.sh index 55d715fa4..5c98a66e4 100755 --- a/install/ui/util/compile.sh +++ b/install/ui/util/compile.sh @@ -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
\ No newline at end of file diff --git a/install/ui/util/make-ui.sh b/install/ui/util/make-ui.sh index 678a08cb1..d842e955b 100755 --- a/install/ui/util/make-ui.sh +++ b/install/ui/util/make-ui.sh @@ -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
\ No newline at end of file |
