From b82be022b2b9240bd503e078ac980bde2b953e43 Mon Sep 17 00:00:00 2001 From: Obexer Christoph Date: Tue, 21 Feb 2012 07:51:53 +0100 Subject: [PATCH] build: improve minification, more verbose --- build.xml | 65 +++++++++++++++++++++++++++------------- build/.gitkeepdir | 0 src/html2canvas-post.txt | 2 ++ src/html2canvas-pre.txt | 1 + tests/test.js | 2 +- 5 files changed, 49 insertions(+), 21 deletions(-) delete mode 100644 build/.gitkeepdir create mode 100644 src/html2canvas-post.txt create mode 100644 src/html2canvas-pre.txt diff --git a/build.xml b/build.xml index 742b709..46a5505 100644 --- a/build.xml +++ b/build.xml @@ -1,4 +1,4 @@ - + @@ -11,44 +11,56 @@ - - - - - - - - - + + + + + + + + + + + + + + - + - + + Creating directory ${build.dir}... + + + + + Creating ${JQUERY_PLUGIN_NAME}... + - + + Concatenating files:${line.separator}${prettty-sourcefiles}${line.separator}into ${build.dir}/${JS_NAME}... - + - - + + output="${build.dir}/${JS_NAME_MIN}.tmp"> @@ -61,15 +73,28 @@ + + + + + + + + + + + + + - - - + diff --git a/build/.gitkeepdir b/build/.gitkeepdir deleted file mode 100644 index e69de29..0000000 diff --git a/src/html2canvas-post.txt b/src/html2canvas-post.txt new file mode 100644 index 0000000..77b193e --- /dev/null +++ b/src/html2canvas-post.txt @@ -0,0 +1,2 @@ +window.html2canvas = html2canvas; +}(window, document)); diff --git a/src/html2canvas-pre.txt b/src/html2canvas-pre.txt new file mode 100644 index 0000000..d9cc589 --- /dev/null +++ b/src/html2canvas-pre.txt @@ -0,0 +1 @@ +(function(window, document, undefined){ diff --git a/tests/test.js b/tests/test.js index 9260f4e..6de231e 100644 --- a/tests/test.js +++ b/tests/test.js @@ -8,7 +8,7 @@ (function(document, window) { var scrStart = ''; document.write(scrStart + '../external/jquery-1.6.2.js' + scrEnd); - var html2canvas = ['Core', 'Generate', 'Parse', 'Preload', 'Queue', 'Renderer', 'plugins/jquery.plugin.html2canvas'], i; + var html2canvas = ['Core', 'Generate', 'Parse', 'Preload', 'Queue', 'Renderer', 'Util', 'plugins/jquery.plugin.html2canvas'], i; for (i = 0; i < html2canvas.length; ++i) { document.write(scrStart + '../src/' + html2canvas[i] + '.js' + scrEnd); }