From: edoceo Date: Fri, 9 Nov 2012 06:08:42 +0000 (-0800) Subject: Adds documentation about the Dojo Build stuff X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c9497300f83f80fb051ac04ffb60210f28bb8371;p=working%2FEvergreen.git Adds documentation about the Dojo Build stuff Signed-off-by: edoceo --- 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