Adds documentation about the Dojo Build stuff user/edoceo/lp1076582
authoredoceo <code@edoceo.com>
Fri, 9 Nov 2012 06:08:42 +0000 (22:08 -0800)
committeredoceo <code@edoceo.com>
Fri, 9 Nov 2012 06:08:42 +0000 (22:08 -0800)
Signed-off-by: edoceo <code@edoceo.com>
docs/installation/dojo_build.txt [new file with mode: 0644]

diff --git a/docs/installation/dojo_build.txt b/docs/installation/dojo_build.txt
new file mode 100644 (file)
index 0000000..d69bd43
--- /dev/null
@@ -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