[Pkg-javascript-commits] [node-rollup-plugin-node-resolve] 01/03: Use rollup -- like upstream

Julien Puydt julien.puydt at laposte.net
Sun Feb 25 07:57:20 UTC 2018


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

jpuydt-guest pushed a commit to branch master
in repository node-rollup-plugin-node-resolve.

commit 4646d1adb58d76ba729b328b4d970d68dfaa8d80
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sun Feb 25 08:50:55 2018 +0100

    Use rollup -- like upstream
---
 debian/changelog |  6 ++++++
 debian/control   | 16 ++++++++++++++--
 debian/copyright |  1 -
 debian/install   |  3 +--
 debian/links     |  1 +
 debian/rules     | 18 ++----------------
 6 files changed, 24 insertions(+), 21 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9dd5fc5..6b0686b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-rollup-plugin-node-resolve (3.0.3-2) UNRELEASED; urgency=medium
+
+  * Use rollup -- like upstream.
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Sun, 25 Feb 2018 08:50:36 +0100
+
 node-rollup-plugin-node-resolve (3.0.3-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/control b/debian/control
index dd53f62..80bfca1 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,14 @@ Section: javascript
 Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Julien Puydt <julien.puydt at laposte.net>
-Build-Depends: debhelper (>= 10), nodejs, node-browser-resolve, node-builtin-modules, node-es6-module-transpiler, node-is-module, node-resolve, node-graceful-fs
+Build-Depends: debhelper (>= 10),
+               node-browser-resolve,
+               node-builtin-modules,
+               node-graceful-fs,
+               node-is-module,
+               node-resolve,
+               nodejs,
+               rollup
 Standards-Version: 4.1.3
 Homepage: https://github.com/rollup/rollup-plugin-node-resolve
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-rollup-plugin-node-resolve.git
@@ -11,7 +18,12 @@ Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-rollup-plugin-n
 
 Package: node-rollup-plugin-node-resolve
 Architecture: all
-Depends: ${misc:Depends}, nodejs, node-browser-resolve (>= 1.11.0), node-builtin-modules (>= 1.1.0), node-resolve (>= 1.1.6), node-is-module (>= 1.0.0)
+Depends: node-browser-resolve (>= 1.11.0),
+         node-builtin-modules (>= 1.1.0),
+         node-is-module (>= 1.0.0),
+         node-resolve (>= 1.1.6),
+         nodejs,
+         ${misc:Depends}
 Description: rollup plugin to bundle third-party dependencies
  This rollup plugin is responsible of bundling the third-party dependencies
  in the node_modules directory.
diff --git a/debian/copyright b/debian/copyright
index 855aae8..df164ed 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -31,4 +31,3 @@ License: Expat
  ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.
-
diff --git a/debian/install b/debian/install
index 8a6a92f..e9a969d 100644
--- a/debian/install
+++ b/debian/install
@@ -1,3 +1,2 @@
+dist/* usr/lib/nodejs/rollup-plugin-node-resolve/
 package.json usr/lib/nodejs/rollup-plugin-node-resolve/
-dist/index.js usr/lib/nodejs/rollup-plugin-node-resolve/
-dist/empty.js usr/lib/nodejs/rollup-plugin-node-resolve/
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..2a1703a
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+usr/lib/nodejs/rollup-plugin-node-resolve/rollup-plugin-node-resolve.cjs.js usr/lib/nodejs/rollup-plugin-node-resolve/index.js
diff --git a/debian/rules b/debian/rules
index 339fcdd..795f4d5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,24 +1,10 @@
 #!/usr/bin/make -f
 
-SOURCES = $(shell find src/ -name "*.js")
-TARGETS = $(subst src, dist, $(SOURCES))
-
-COMPILE_MODULES = compile-modules convert -f commonjs -I/usr/lib/nodejs/graceful-fs
-
-.PHONY: dist
-
-%.js:
-	$(COMPILE_MODULES) $(subst dist, src, $@) > $@
-
 %:
 	dh $@
 
-override_dh_auto_build: dist $(TARGETS)
-	sed -i dist/index.js -e "s/exports.*/module.exports = nodeResolve/g"
-	sed -i dist/index.js -e 's/\["default"\]//g'
+override_dh_auto_build:
+	rollup -c
 
 override_dh_auto_clean:
 	rm -rf dist
-
-dist:
-	mkdir -p dist

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-rollup-plugin-node-resolve.git



More information about the Pkg-javascript-commits mailing list