[Pkg-javascript-commits] [typeahead.js] 01/01: properly wrap typeahead

Alexandre Viau aviau at moszumanska.debian.org
Wed Dec 30 05:18:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

aviau pushed a commit to annotated tag debian/0.11.1_dfsg1-2
in repository typeahead.js.

commit fcad1d6fabb8258f667a747cf239053188cef3d8
Author: aviau <alexandre at alexandreviau.net>
Date:   Wed Dec 30 00:06:00 2015 -0500

    properly wrap typeahead
---
 debian/changelog                            |  6 ++++++
 debian/rules                                | 12 ++++++++----
 debian/wrappers/wrapper.bloodhound.start.js | 11 +++++++++++
 debian/wrappers/wrapper.end.js              |  1 +
 debian/wrappers/wrapper.typeahead.start.js  | 11 +++++++++++
 5 files changed, 37 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 11e16bd..3dc9991 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+typeahead.js (0.11.1~dfsg1-2) unstable; urgency=medium
+
+  * Properly wrap typeahead
+
+ -- Alexandre Viau <aviau at debian.org>  Wed, 30 Dec 2015 00:05:08 -0500
+
 typeahead.js (0.11.1~dfsg1-1) unstable; urgency=medium
 
   * Initial release. (Closes: #809381)
diff --git a/debian/rules b/debian/rules
index eb7a8e9..3d99be0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,8 @@
 
 override_dh_auto_build:
 	mkdir build
-	cat src/common/utils.js \
+	cat debian/wrappers/wrapper.bloodhound.start.js \
+	    src/common/utils.js \
 	    src/bloodhound/version.js \
 	    src/bloodhound/tokenizers.js \
 	    src/bloodhound/lru_cache.js \
@@ -15,9 +16,11 @@ override_dh_auto_build:
 	    src/bloodhound/remote.js \
 	    src/bloodhound/options_parser.js \
 	    src/bloodhound/bloodhound.js \
+	    debian/wrappers/wrapper.end.js \
 	    > build/bloodhound.js
 	uglifyjs -o build/bloodhound.min.js build/bloodhound.js
-	cat src/common/utils.js \
+	cat debian/wrappers/wrapper.typeahead.start.js \
+	    src/common/utils.js \
 	    src/typeahead/www.js \
 	    src/typeahead/event_bus.js \
 	    src/typeahead/event_emitter.js \
@@ -28,10 +31,11 @@ override_dh_auto_build:
 	    src/typeahead/default_menu.js \
 	    src/typeahead/typeahead.js \
 	    src/typeahead/plugin.js \
+	    debian/wrappers/wrapper.end.js \
 	    > build/typeahead.jquery.js
 	uglifyjs -o build/typeahead.jquery.min.js build/typeahead.jquery.js
-	cat build/typeahead.jquery.js \
-		build/bloodhound.js \
+	cat build/bloodhound.js \
+		build/typeahead.jquery.js \
 		> build/typeahead.bundle.js
 	uglifyjs -o build/typeahead.bundle.min.js build/typeahead.bundle.js
 
diff --git a/debian/wrappers/wrapper.bloodhound.start.js b/debian/wrappers/wrapper.bloodhound.start.js
new file mode 100644
index 0000000..33886c3
--- /dev/null
+++ b/debian/wrappers/wrapper.bloodhound.start.js
@@ -0,0 +1,11 @@
+(function(root, factory) {
+    if (typeof define === "function" && define.amd) {
+        define("bloodhound", [ "jquery" ], function(a0) {
+            return root["Bloodhound"] = factory(a0);
+        });
+    } else if (typeof exports === "object") {
+        module.exports = factory(require("jquery"));
+    } else {
+        root["Bloodhound"] = factory(jQuery);
+    }
+})(this, function($) {
diff --git a/debian/wrappers/wrapper.end.js b/debian/wrappers/wrapper.end.js
new file mode 100644
index 0000000..27b8217
--- /dev/null
+++ b/debian/wrappers/wrapper.end.js
@@ -0,0 +1 @@
+});
diff --git a/debian/wrappers/wrapper.typeahead.start.js b/debian/wrappers/wrapper.typeahead.start.js
new file mode 100644
index 0000000..0698413
--- /dev/null
+++ b/debian/wrappers/wrapper.typeahead.start.js
@@ -0,0 +1,11 @@
+(function(root, factory) {
+    if (typeof define === "function" && define.amd) {
+        define("typeahead.js", [ "jquery" ], function(a0) {
+            return factory(a0);
+        });
+    } else if (typeof exports === "object") {
+        module.exports = factory(require("jquery"));
+    } else {
+        factory(jQuery);
+    }
+})(this, function($) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/typeahead.js.git



More information about the Pkg-javascript-commits mailing list