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

Julien Puydt julien.puydt at laposte.net
Sat Sep 9 18:55:12 UTC 2017


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

jpuydt-guest pushed a commit to branch master
in repository node-buble.

commit 9f834dabd1e253cfa1f2ff388d897987104fa80d
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sat Sep 9 19:22:30 2017 +0200

    Initial packaging
---
 debian/buble.1                  | 71 +++++++++++++++++++++++++++++++++++++++++
 debian/changelog                |  5 +++
 debian/compat                   |  1 +
 debian/control                  | 42 ++++++++++++++++++++++++
 debian/copyright                | 33 +++++++++++++++++++
 debian/dirs                     |  1 +
 debian/docs                     |  1 +
 debian/install                  |  4 +++
 debian/links                    |  2 ++
 debian/manpages                 |  1 +
 debian/patches/find_acorn       | 12 +++++++
 debian/patches/series           |  1 +
 debian/rules                    | 25 +++++++++++++++
 debian/source/format            |  1 +
 debian/source/lintian-overrides |  2 ++
 debian/tests/control            |  2 ++
 debian/tests/require            |  3 ++
 debian/watch                    |  2 ++
 18 files changed, 209 insertions(+)

diff --git a/debian/buble.1 b/debian/buble.1
new file mode 100644
index 0000000..b4b7cd1
--- /dev/null
+++ b/debian/buble.1
@@ -0,0 +1,71 @@
+.TH BUBLÉ "1" "September 2017" "Bublé version 0.15.2" "User Commands"
+.SH NAME
+.B Bublé
+\- Fast ES2015 compiler for Node.js
+.SH SYNOPSIS
+.B buble
+[\fI\,options\/\fR] \fI\,<inputfile>\/\fR
+.SH DESCRIPTION
+Bublé is a ES2015 compiler : it will turn ES6 javascript code into           
+Javascript that can run in older ES5 environments. Notice that not all       
+of ES6 is supported, either because they give size or performance issues     
+or because they can't be transpiled to ES5.
+.SH OPTIONS
+.PP
+\fB\-v\fR, \fB\-\-version\fR
+Show version number
+
+\fB\-h\fR, \fB\-\-help\fR
+Show this help message
+\fB\-i\fR, \fB\-\-input\fR
+Input (alternative to <entry file>)
+
+\fB\-o\fR, \fB\-\-output\fR <output>
+Output (if absent, prints to stdout)
+
+\fB\-m\fR, \fB\-\-sourcemap\fR
+Generate sourcemap (`\-m inline` for inline map)
+
+\fB\-t\fR, \fB\-\-target\fR
+Select compilation targets
+
+\fB\-y\fR, \fB\-\-yes\fR
+Transforms to always apply (overrides \fB\-\-target\fR)
+
+\fB\-n\fR, \fB\-\-no\fR
+Transforms to always skip (overrides \fB\-\-target\fR)
+
+\fB\-\-jsx\fR
+Custom JSX pragma
+
+\fB\-\-objectAssign\fR
+Specify Object.assign or equivalent polyfill
+
+\fB\-\-no\-named\-function\-expr\fR
+Don't output named function expressions
+
+.SH EXAMPLES
+# Compile input.js to output.js
+buble input.js > output.js
+.PP
+# Compile input.js to output.js, write sourcemap to output.js.map
+buble input.js \-o output.js \-m
+.PP
+# Compile input.js to output.js with inline sourcemap
+buble input.js \-o output.js \-m inline
+.PP
+# Only use transforms necessary for output.js to run in FF43 and Node 5
+buble input.js \-o output.js \-t firefox:43,node:5
+.PP
+# As above, but use arrow function and destructuring transforms
+buble input.js \-o output.js \-t firefox:43,node:5 \-y arrow,destructuring
+.PP
+# Compile all the files in src/ to dest/
+buble src \-o dest
+.PP
+Notes:
+.PP
+* When piping to stdout, only inline sourcemaps are permitted
+.PP
+.SH "SEE ALSO"
+For more information visit http://buble.surge.sh/guide
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3036a34
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+node-buble (0.15.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #872638)
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Sat, 09 Sep 2017 20:06:12 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..98dd984
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,42 @@
+Source: node-buble
+Section: web
+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),
+               node-acorn (>= 3.3.0),
+               node-acorn-jsx (>= 3.0.1),
+               node-acorn-object-spread,
+               node-acorn-object-spread (>= 1.0.0),
+               node-chalk (>= 1.1.3),
+               node-es6-module-transpiler,
+               node-magic-string (>= 0.14.0),
+               node-minimist (>= 1.2.0),
+               node-regexpu-core,
+               nodejs (>= 6)
+Standards-Version: 4.1.0
+Homepage: https://gitlab.com/Rich-Harris/buble#README
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-buble.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-buble.git
+
+Package: node-buble
+Architecture: all
+Depends: node-acorn (>= 3.3.0),
+         node-acorn-jsx (>= 3.0.1),
+         node-acorn-object-spread (>= 1.0.0),
+         node-chalk (>= 1.1.3),
+         node-magic-string (>= 0.14.0),
+         node-minimist (>= 1.2.0),
+         nodejs (>= 6),
+         ${misc:Depends}
+Description: Fast ES2015 compiler for Node.js
+ Bublé is a ES2015 compiler : it will turn ES6 javascript code into
+ Javascript that can run in older ES5 environments. Notice that not all
+ of ES6 is supported, either because they give size or performance issues
+ or because they can't be transpiled to ES5.
+ .
+ ES6 (or ES2015) is ECMAScript version 6 released in 2015 and is supported
+ for instance by Firefox 55. The older ES5 released in 2011 was supported
+ for instance by Firefox 4.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..6c4c087
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: buble
+Upstream-Contact: https://gitlab.com/Rich-Harris/buble/issues
+Source: https://gitlab.com/Rich-Harris/buble
+
+Files: *
+Copyright: 2016-2017 Rich Harris and contributors
+License: Expat
+
+Files: debian/*
+Copyright: 2017 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/dirs b/debian/dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1 @@
+usr/bin
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..89171b7
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,4 @@
+bin usr/lib/nodejs/buble/
+dist usr/lib/nodejs/buble/
+package.json usr/lib/nodejs/buble/
+register.js usr/lib/nodejs/buble/
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..92d32b0
--- /dev/null
+++ b/debian/links
@@ -0,0 +1,2 @@
+usr/lib/nodejs/buble/bin/buble usr/bin/buble
+usr/lib/nodejs/buble/dist/index.js usr/lib/nodejs/buble/dist/buble.umd.js
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..bfae2b6
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/buble.1
diff --git a/debian/patches/find_acorn b/debian/patches/find_acorn
new file mode 100644
index 0000000..c269726
--- /dev/null
+++ b/debian/patches/find_acorn
@@ -0,0 +1,12 @@
+Description: for some reason it expects acorn where it isn't
+Author: Julien Puydt
+Forwarded: no
+
+--- a/src/index.js
++++ b/src/index.js
+@@ -1,4 +1,4 @@
+-import acorn from 'acorn/dist/acorn.js';
++import acorn from 'acorn';
+ import acornJsx from 'acorn-jsx/inject';
+ import acornObjectSpread from 'acorn-object-spread/inject';
+ import Program from './program/Program.js';
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..54cc8b9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+find_acorn
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8d4c601
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+SOURCES = $(shell find src/ -name "*.js")
+
+TARGETS = $(subst src, dist, $(SOURCES))
+
+COMPILE_MODULES = compile-modules convert -f commonjs
+
+.PHONY: dist
+
+%.js:
+	$(COMPILE_MODULES) $(subst dist, src, $@) > $@
+
+%:
+	dh $@
+
+override_dh_auto_build: dist $(TARGETS)
+	sed -i dist/program/types/index.js -e "s/\\$$//g"
+	sed -i bin/runBuble.js -e "s|../dist/buble.deps.js|../dist/index.js|"
+
+dist:
+	mkdir -p dist/program/types/shared dist/utils
+
+override_dh_auto_clean:
+	rm -rf dist
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/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..baaac4e
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,2 @@
+# It's a test, so a copy of a known-good result has been made to compare
+node-buble source: source-is-missing test/cli/creates-inline-sourcemap/expected/output.js line length is 320 characters (>256)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..07c277a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-buble
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..0ab8430
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+node -e "require('buble');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..837e791
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=4
+https://gitlab.com/Rich-Harris/buble/tags?sort=updated_desc .*/v?(\d\S+)/archive\.tar\.gz

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



More information about the Pkg-javascript-commits mailing list