[Pkg-javascript-commits] [jquery] 09/15: build: adapt for jquery 3.0.0-alpha1
Antonio Terceiro
terceiro at moszumanska.debian.org
Wed Sep 2 14:44:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository jquery.
commit 581b450a560b6fe9332adf508d8ecfdf5cf83dde
Author: Antonio Terceiro <terceiro at debian.org>
Date: Mon Aug 31 07:26:50 2015 -0300
build: adapt for jquery 3.0.0-alpha1
---
debian/build.js | 6 ++++--
debian/rules | 1 -
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/debian/build.js b/debian/build.js
index d258033..1b20d62 100644
--- a/debian/build.js
+++ b/debian/build.js
@@ -12,10 +12,10 @@
skipSemiColonInsertion: true,
wrap: {
startFile: "src/intro.js",
- endFile: "src/outro.js"
+ endFile: [ "src/exports/global.js", "src/outro.js" ]
},
paths: {
- sizzle: "sizzle/dist/sizzle"
+ sizzle: "../external/sizzle/dist/sizzle"
},
rawText: {},
/**
@@ -49,6 +49,8 @@
.replace( /\s*return\s+[^\}]+(\}\);[^\w\}]*)$/, "$1" )
// Multiple exports
.replace( /\s*exports\.\w+\s*=\s*\w+;/g, "" );
+ } else {
+ contents = contents.replace(/return.*;/, '');
}
// Remove define wrappers, closure ends, and empty declarations
diff --git a/debian/rules b/debian/rules
index 1e08efb..d4c76ec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,7 +13,6 @@ build.js: debian/build.js
dist/jquery.js: build.js $(source)
nodejs /usr/lib/nodejs/r.js -o build.js
sed -i -e 's/@DATE/$(timestamp)/; s/@VERSION/$(version)/' $@
- sed -i -e 's/\/\/"use strict";/\/\//' $@
dist/jquery.min.js dist/jquery.min.map: dist/jquery.js
uglifyjs \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/jquery.git
More information about the Pkg-javascript-commits
mailing list