From c9497300f83f80fb051ac04ffb60210f28bb8371 Mon Sep 17 00:00:00 2001 From: edoceo Date: Thu, 8 Nov 2012 22:08:42 -0800 Subject: [PATCH] Adds documentation about the Dojo Build stuff Signed-off-by: edoceo --- docs/installation/dojo_build.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docs/installation/dojo_build.txt diff --git a/docs/installation/dojo_build.txt b/docs/installation/dojo_build.txt new file mode 100644 index 0000000000..d69bd43388 --- /dev/null +++ b/docs/installation/dojo_build.txt @@ -0,0 +1,28 @@ +Creating a Custom Dojo Build +============================ +:toc: +:numbered: + +Optimize JavaScript and CSS with Dojo Build +------------------------------------------- + +Using the Dojo build tools creates optimised static content resulting in +fewer HTTP requests and smaller content sizes. + +[source, bash] +------------------------------------------------------------------------------ +wget http://download.dojotoolkit.org/release-1.3.3/dojo-release-1.3.3-src.tar.gz +tar -zxf dojo-release-1.3.3-src.tar.gz +cd dojo-release-1.3.3-src/util/buildscripts +cp ./Open-ILS/examples/openils.profile.js ./profiles +./build.sh profile=openils action=release version=1.3.3 cssOptimize=comments mini=true stripConsole=all +------------------------------------------------------------------------------ + +Now copy the contents of the ../../releases/dojo/ directory into your webroot. + +[source, bash] +------------------------------------------------------------------------------ +rsync -av ../../releases/dojo/ /openils/var/web/js/dojo/ +------------------------------------------------------------------------------ + +See also: http://evergreen-ils.org/dokuwiki/doku.php?id=scratchpad:random_magic_spells#custom_dojo_build \ No newline at end of file -- 2.11.0