[Pkg-javascript-commits] [node-es6-module-transpiler] 05/09: Initial packaging

Julien Puydt julien.puydt at laposte.net
Tue Oct 20 07:14:04 UTC 2015


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

jpuydt-guest pushed a commit to branch master
in repository node-es6-module-transpiler.

commit d1d4dfed9405190fd0d7bc91cd08b1b924e8c06f
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Mon Oct 19 17:32:24 2015 +0200

    Initial packaging
---
 debian/changelog         |  6 ++++++
 debian/compat            |  1 +
 debian/compile-modules.1 | 43 +++++++++++++++++++++++++++++++++++++++++++
 debian/control           | 26 ++++++++++++++++++++++++++
 debian/copyright         | 28 ++++++++++++++++++++++++++++
 debian/dirs              |  1 +
 debian/docs              |  1 +
 debian/install           |  3 +++
 debian/links             |  1 +
 debian/manpages          |  1 +
 debian/rules             |  7 +++++++
 debian/tests/control     |  2 ++
 debian/tests/require     |  3 +++
 debian/watch             |  5 +++++
 14 files changed, 128 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5e6fc18
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+node-es6-module-transpiler (0.10.0-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #XXXXXX)
+
+ -- Julien Puydt <julien.puydt at laposte.net>  Sun, 18 Oct 2015 16:10:16 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/compile-modules.1 b/debian/compile-modules.1
new file mode 100644
index 0000000..d0f60c6
--- /dev/null
+++ b/debian/compile-modules.1
@@ -0,0 +1,43 @@
+.TH COMPILE-MODULES "1" "" "compile-modules" "User Commands"
+.SH NAME
+compile\-modules \- Transpile ECMAScript 6 modules to ECMAScript 5
+.SH SYNOPSIS
+.IP
+compile\-modules [\-\-help] [\-\-version] <command> [<args>]
+
+.SH COMMANDS
+.SS
+compile-modules help <command>
+Display help for the given command.
+.SS
+compile-modules convert [-I <path>] [-o <path>] [-f <path|name>] [-r <path>] <path> [<path> ...]
+Converts the given modules by changing import/export statements to an ES5
+equivalent.
+.TP
+\fB\-I,\-\-include\fR path
+Check the given path for imported modules (usable multiple times)
+.TP
+\fB\-o,\-\-output\fR path
+File or directory to output converted files
+.TP
+\fB\-f,\-\-format\fR path or name
+Path to custom formatter, or name of a built-in formats
+.TP
+\fB\-r,\-\-resolver\fR path
+Path to custom resolver (usable multiple times)
+
+.SH FORMATS
+.TP
+The builtin formats are:
+.TP
+ 'commonjs' to convert modules to files using CommonJS require and exports objets
+.TP
+ 'bundle' to concatenate modules into a single file
+.TP
+You may provide a custom formatter, see the source of the builtin ones for details on how this is done.
+
+.SH RESOLVERS
+
+Resolvers resolve import paths to modules. The default resolver will search the include paths provided by `--include` arguments and the current working directory. To provide custom resolver logic, pass the path to your resolver module providing a `resolveModule` function or class with an instance method with this signature:
+
+`resolveModule(importedPath:String, fromModule:?Module, container:Container): Module`.
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..252db72
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,26 @@
+Source: node-es6-module-transpiler
+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 (>= 9), nodejs
+Standards-Version: 3.9.6
+Homepage: http://esnext.github.io/es6-module-transpiler
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-es6-module-transpiler.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-es6-module-transpiler.git
+
+Package: node-es6-module-transpiler
+Architecture: all
+Depends: node-ast-util,
+         node-esprima-fb,
+         node-posix-getopt,
+         node-recast,
+         node-reserved,
+         nodejs,
+         ${misc:Depends}
+Description: Module transpiler from ECMAScript 6 for Node.js
+ This is an experimental compiler that allows you to write your JavaScript
+ using a subset of the current ES6 module syntax, and compile it into various
+ formats.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..13e96ad
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: es6-module-transpiler
+Upstream-Contact: https://github.com/square/es6-module-transpiler/issues
+Source: http://esnext.github.io/es6-module-transpiler
+
+Files: *
+Copyright: 2015 Square, Inc.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2015 Julien Puydt <julien.puydt at laposte.net>
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
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..62fb2c2
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+bin usr/lib/nodejs/es6-module-transpiler/
+lib usr/lib/nodejs/es6-module-transpiler/
+package.json usr/lib/nodejs/es6-module-transpiler/
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..424a0bc
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+usr/lib/nodejs/es6-module-transpiler/bin/compile-modules usr/bin/compile-modules
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..eef542b
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/compile-modules.1
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..657234c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,7 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..59b7f1b
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-es6-module-transpiler
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..7b3b9f8
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('es6-module-transpiler');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d771f82
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-es6-module-transpiler-$1.tar.gz/ \
+ https://github.com/square/es6-module-transpiler/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list