[Pkg-javascript-commits] [node-tippex] 02/02: Initial packaging

Julien Puydt julien.puydt at laposte.net
Wed Feb 28 10:37:42 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-tippex.

commit c3d3b00c1f8d653853307175d058cb3dd3ae004f
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Wed Feb 28 10:26:16 2018 +0100

    Initial packaging
---
 debian/changelog                          |  5 +++++
 debian/compat                             |  1 +
 debian/control                            | 24 ++++++++++++++++++++++
 debian/copyright                          | 34 +++++++++++++++++++++++++++++++
 debian/docs                               |  1 +
 debian/install                            |  3 +++
 debian/patches/series                     |  1 +
 debian/patches/update_rollup_config.patch | 29 ++++++++++++++++++++++++++
 debian/rules                              | 16 +++++++++++++++
 debian/source/format                      |  1 +
 debian/tests/control                      |  5 +++++
 debian/tests/require                      |  3 +++
 debian/tests/runtestsuite                 | 13 ++++++++++++
 debian/watch                              |  6 ++++++
 14 files changed, 142 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..82dbf2b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+node-tippex (3.0.0+ds-1) unstable; urgency=low
+
+  * Initial release (Closes: #891729)
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Wed, 28 Feb 2018 11:16:28 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..b4de394
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+11
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..b486421
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: node-tippex
+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 (>= 11),
+               node-rollup-plugin-node-resolve,
+		mocha, node-console-group, node-source-map-support,
+               nodejs,
+               rollup
+Standards-Version: 4.1.3
+Homepage: https://github.com/Rich-Harris/tippex#readme
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-tippex.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-tippex.git
+
+Package: node-tippex
+Architecture: all
+Depends: node-locate-character, nodejs, ${misc:Depends}
+Description: Erase comments and strings from JavaScript code for Node.js
+ This module replaces comments, strings and regular expressions from
+ JavaScript code by whitespace, so simple pattern search can be done
+ without false positive.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0000e3a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: tippex
+Upstream-Contact: https://github.com/Rich-Harris/tippex/issues
+Source: https://github.com/Rich-Harris/tippex#readme
+Files-Excluded: bench
+
+Files: *
+Copyright: 2018 Rich Harris
+License: Expat
+
+Files: debian/*
+Copyright: 2018 Julien Puydt <julien.puydt at laposte.net>
+License: Expat
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation files
+ (the "Software"), to deal in the Software without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the Software,
+ and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ 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/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..69463da
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+dist usr/lib/nodejs/tippex/
+package.json usr/lib/nodejs/tippex/
+src usr/lib/nodejs/tippex/
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..1e3e4ca
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+update_rollup_config.patch
diff --git a/debian/patches/update_rollup_config.patch b/debian/patches/update_rollup_config.patch
new file mode 100644
index 0000000..314d535
--- /dev/null
+++ b/debian/patches/update_rollup_config.patch
@@ -0,0 +1,29 @@
+Description: update rollup configuration to newer upstream support
+Author: Julien Puydt
+Forwarded: no
+
+--- a/rollup.config.js
++++ b/rollup.config.js
+@@ -4,15 +4,16 @@
+ const pkg = require( './package.json' );
+ 
+ export default {
+-	entry: 'src/index.js',
++	input: 'src/index.js',
+ 	plugins: [
+ 		nodeResolve(),
+ 		buble({ exclude: 'node_modules/**' })
+ 	],
+-	moduleName: 'tippex',
+-	sourceMap: true,
+-	targets: [
+-		{ dest: pkg.main, format: 'umd' },
+-		{ dest: pkg.module, format: 'es' }
++	name: 'tippex',
++	sourcemap: true,
++	external: ['locate-character'],
++	output: [
++		{ file: pkg.main, format: 'umd' },
++		{ file: pkg.module, format: 'es' }
+ 	]
+ };
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..0d384e5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
+override_dh_auto_build:
+	rollup -c
+
+override_dh_auto_test:
+	mocha
+
+override_dh_auto_clean:
+	rm -rf dist
+
+override_dh_installchangelogs:
+	dh_installchangelogs CHANGELOG.md
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..20a5294
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: require
+Depends: @
+
+Tests: runtestsuite
+Depends: @, mocha, node-console-group, node-source-map-support
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..c083197
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('tippex');"
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
new file mode 100644
index 0000000..c9d171c
--- /dev/null
+++ b/debian/tests/runtestsuite
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+SEDCMD="s,require\s*[(]\s*'[.][.],require('tippex,g"
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
+
+cp -r test $tmpdir/
+
+find $tmpdir/test/ -name "*.js" | xargs sed -i $SEDCMD
+
+mocha $tmpdir/test
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..f851506
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=4
+opts=\
+repacksuffix=+ds,\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-tippex-$1.tar.gz/ \
+ https://github.com/Rich-Harris/tippex/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list