[Pkg-javascript-commits] [node-typescript] 01/01: Initial packaging
Julien Puydt
julien.puydt at laposte.net
Fri Oct 14 19:52:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
jpuydt-guest pushed a commit to tag debian/changelog
in repository node-typescript.
commit 486abe356d92c6999abc72bb9505bdd4b3719450
Author: Julien Puydt <julien.puydt at laposte.net>
Date: Thu Oct 6 09:58:10 2016 +0200
Initial packaging
---
bin/tsc | 2 +-
bin/tsserver | 2 +-
debian/changelog | 5 ++
debian/compat | 1 +
debian/control | 21 +++++
debian/copyright | 29 ++++++
debian/dirs | 1 +
debian/docs | 1 +
debian/install | 3 +
debian/links | 2 +
debian/manpages | 1 +
debian/patches/series | 1 +
debian/patches/use_nodejs_on_Debian.patch | 20 +++++
debian/rules | 8 ++
debian/source/format | 1 +
debian/source/lintian-overrides | 13 +++
debian/tests/control | 2 +
debian/tests/require | 3 +
debian/tsc.1 | 144 ++++++++++++++++++++++++++++++
debian/watch | 5 ++
20 files changed, 263 insertions(+), 2 deletions(-)
diff --git a/bin/tsc b/bin/tsc
index 19c62bf..4cad8d7 100755
--- a/bin/tsc
+++ b/bin/tsc
@@ -1,2 +1,2 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
require('../lib/tsc.js')
diff --git a/bin/tsserver b/bin/tsserver
index 7143b6a..c3e6540 100755
--- a/bin/tsserver
+++ b/bin/tsserver
@@ -1,2 +1,2 @@
-#!/usr/bin/env node
+#!/usr/bin/nodejs
require('../lib/tsserver.js')
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..03a24ad
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+node-typescript (2.0.5-1) UNRELEASED; urgency=low
+
+ * Initial release (Closes: #839895)
+
+ -- Julien Puydt <julien.puydt at laposte.net> Thu, 06 Oct 2016 09:57:17 +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..259ab13
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: node-typescript
+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), nodejs
+Standards-Version: 3.9.8
+Homepage: http://typescriptlang.org/
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-typescript.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-typescript.git
+
+Package: node-typescript
+Architecture: all
+Depends: ${misc:Depends}, nodejs
+Description: TypeScript is a language for application scale JavaScript development
+ TypeScript is a language for application-scale JavaScript. It adds
+ optional types, classes, and modules to JavaScript, supports tools
+ for large-scale JavaScript applications for any browser, for any host,
+ on any OS and compiles to readable, standards-based JavaScript.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c030f26
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: typescript
+Upstream-Contact: https://github.com/Microsoft/TypeScript/issues
+Source: http://typescriptlang.org/
+
+Files: *
+Copyright: 2016 Microsoft Corp.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2016 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..7b8b430
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+package.json usr/lib/nodejs/typescript/
+bin/tsc usr/lib/nodejs/typescript/bin/
+lib usr/lib/nodejs/typescript/
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..03e88a7
--- /dev/null
+++ b/debian/links
@@ -0,0 +1,2 @@
+usr/lib/nodejs/typescript/bin/tsserver usr/bin/tsserver
+usr/lib/nodejs/typescript/bin/tsc usr/bin/tsc
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..29f4355
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/tsc.1
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..26059ae
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use_nodejs_on_Debian.patch
diff --git a/debian/patches/use_nodejs_on_Debian.patch b/debian/patches/use_nodejs_on_Debian.patch
new file mode 100644
index 0000000..651fd0f
--- /dev/null
+++ b/debian/patches/use_nodejs_on_Debian.patch
@@ -0,0 +1,20 @@
+Author: Julien Puydt
+Description: on Debian systems, the node executable is nodejs
+Forwarded: not-needed
+
+diff --git a/bin/tsc b/bin/tsc
+index 19c62bf..4cad8d7 100755
+--- a/bin/tsc
++++ b/bin/tsc
+@@ -1,2 +1,2 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ require('../lib/tsc.js')
+diff --git a/bin/tsserver b/bin/tsserver
+index 7143b6a..c3e6540 100755
+--- a/bin/tsserver
++++ b/bin/tsserver
+@@ -1,2 +1,2 @@
+-#!/usr/bin/env node
++#!/usr/bin/nodejs
+ require('../lib/tsserver.js')
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..5f423c0
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
+
+override_dh_auto_install:
+ dh_auto_install
+ rm -f debian/node-typescript/usr/bin/tsserver
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..0d6e221
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,13 @@
+# Tests have very long lines
+node-typescript source: source-is-missing tests/baselines/reference/binaryIntegerLiteral.js line length is 4034 characters (>512)
+node-typescript source: source-is-missing tests/baselines/reference/binaryIntegerLiteralES6.js line length is 4034 characters (>512)
+node-typescript source: source-is-missing tests/baselines/reference/controlFlowCaching.js line length is 1287 characters (>512)
+node-typescript source: source-is-missing tests/baselines/reference/es6ImportNamedImportAmd.js line length is 583 characters (>512)
+node-typescript source: source-is-missing tests/baselines/reference/fixSignatureCaching.js line length is 679 characters (>512)
+node-typescript source: source-is-missing tests/baselines/reference/octalIntegerLiteral.js line length is 588 characters (>512)
+node-typescript source: source-is-missing tests/baselines/reference/octalIntegerLiteralES6.js line length is 588 characters (>512)
+node-typescript source: source-is-missing tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js line length is 314 characters (>256)
+node-typescript source: source-is-missing tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues.js line length is 295 characters (>256)
+node-typescript source: source-is-missing tests/baselines/reference/sourceMapValidationDestructuringForArrayBindingPatternDefaultValues2.js line length is 307 characters (>256)
+node-typescript source: source-is-missing tests/baselines/reference/sourceMapValidationDestructuringForObjectBindingPatternDefaultValues.js line length is 309 characters (>256)
+node-typescript source: source-is-missing tests/baselines/reference/sourceMapValidationDestructuringForObjectBindingPatternDefaultValues2.js line length is 262 characters (>256)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..02377dd
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-typescript
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..470831c
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('typescript');"
diff --git a/debian/tsc.1 b/debian/tsc.1
new file mode 100644
index 0000000..e045b13
--- /dev/null
+++ b/debian/tsc.1
@@ -0,0 +1,144 @@
+.TH TSC "1" "October 2016" "TypeScript compiler" "User Commands"
+.SH NAME
+tsc \- TypeScript compiler
+.SH SYNOPSIS
+\fBtsc\fR \fB\-\-outFile\fR file.js file.ts
+
+\fBtsc\fR @args.txt
+.SH OPTIONS
+.TP
+\fB\-\-allowJs\fR
+Allow javascript files to be compiled.
+.TP
+\fB\-\-allowSyntheticDefaultImports\fR
+Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
+.TP
+\fB\-\-allowUnreachableCode\fR
+Do not report errors on unreachable code.
+.TP
+\fB\-\-allowUnusedLabels\fR
+Do not report errors on unused labels.
+.TP
+\fB\-\-baseUrl\fR
+Base directory to resolve non\-absolute module names.
+.TP
+\fB\-d\fR, \fB\-\-declaration\fR
+Generates corresponding '.d.ts' file.
+.TP
+\fB\-\-experimentalDecorators\fR
+Enables experimental support for ES7 decorators.
+.TP
+\fB\-\-forceConsistentCasingInFileNames\fR
+Disallow inconsistently\-cased references to the same file.
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+Print this message.
+.TP
+\fB\-\-init\fR
+Initializes a TypeScript project and creates a tsconfig.json file.
+.TP
+\fB\-\-jsx\fR KIND
+Specify JSX code generation: 'preserve' or 'react'
+.TP
+\fB\-\-lib\fR
+Specify library files to be included in the compilation:
+\&'es5' 'es6' 'es2015' 'es7' 'es2016' 'es2017' 'dom' 'webworker' 'scripthost' 'es2015.core' 'es2015.collection' 'es2015.generator' 'es2015.iterable' 'es2015.promise' 'es2015.proxy' 'es2015.reflect' 'es2015.symbol' 'es2015.symbol.wellknown' 'es2016.array.include' 'es2017.object' 'es2017.sharedmemory'
+.TP
+\fB\-\-mapRoot\fR LOCATION
+Specify the location where debugger should locate map files instead of generated locations.
+.TP
+\fB\-\-maxNodeModuleJsDepth\fR
+The maximum dependency depth to search under node_modules and load JavaScript files
+.TP
+\fB\-m\fR KIND, \fB\-\-module\fR KIND
+Specify module code generation: 'commonjs', 'amd', 'system', 'umd' or 'es2015'
+.TP
+\fB\-\-moduleResolution\fR
+Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre\-1.6).
+.TP
+\fB\-\-newLine\fR NEWLINE
+Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix).
+.TP
+\fB\-\-noEmit\fR
+Do not emit outputs.
+.TP
+\fB\-\-noEmitOnError\fR
+Do not emit outputs if any errors were reported.
+.TP
+\fB\-\-noFallthroughCasesInSwitch\fR
+Report errors for fallthrough cases in switch statement.
+.TP
+\fB\-\-noImplicitAny\fR
+Raise error on expressions and declarations with an implied 'any' type.
+.TP
+\fB\-\-noImplicitReturns\fR
+Report error when not all code paths in function return a value.
+.TP
+\fB\-\-noImplicitThis\fR
+Raise error on 'this' expressions with an implied 'any' type.
+.TP
+\fB\-\-noImplicitUseStrict\fR
+Do not emit 'use strict' directives in module output.
+.TP
+\fB\-\-noUnusedLocals\fR
+Report errors on unused locals.
+.TP
+\fB\-\-noUnusedParameters\fR
+Report errors on unused parameters.
+.TP
+\fB\-\-outDir\fR DIRECTORY
+Redirect output structure to the directory.
+.TP
+\fB\-\-outFile\fR FILE
+Concatenate and emit output to single file.
+.TP
+\fB\-\-preserveConstEnums\fR
+Do not erase const enum declarations in generated code.
+.TP
+\fB\-\-pretty\fR
+Stylize errors and messages using color and context. (experimental)
+.TP
+\fB\-p\fR DIRECTORY, \fB\-\-project\fR DIRECTORY
+Compile the project in the given directory.
+.TP
+\fB\-\-reactNamespace\fR
+Specify the object invoked for createElement and __spread when targeting 'react' JSX emit
+.TP
+\fB\-\-removeComments\fR
+Do not emit comments to output.
+.TP
+\fB\-\-rootDir\fR LOCATION
+Specify the root directory of input files. Use to control the output directory structure with \fB\-\-outDir\fR.
+.TP
+\fB\-\-skipLibCheck\fR
+Skip type checking of declaration files.
+.TP
+\fB\-\-sourceMap\fR
+Generates corresponding '.map' file.
+.TP
+\fB\-\-sourceRoot\fR LOCATION
+Specify the location where debugger should locate TypeScript files instead of source locations.
+.TP
+\fB\-\-strictNullChecks\fR
+Enable strict null checks.
+.TP
+\fB\-\-suppressImplicitAnyIndexErrors\fR
+Suppress noImplicitAny errors for indexing objects lacking index signatures.
+.TP
+\fB\-t\fR VERSION, \fB\-\-target\fR VERSION
+Specify ECMAScript target version: 'ES3' (default), 'ES5', or 'ES2015'
+.TP
+\fB\-\-traceResolution\fR
+Enable tracing of the name resolution process.
+.TP
+\fB\-\-types\fR
+Type declaration files to be included in compilation.
+.TP
+\fB\-v\fR, \fB\-\-version\fR
+Print the compiler's version.
+.TP
+\fB\-w\fR, \fB\-\-watch\fR
+Watch input files.
+.TP
+@<file>
+Insert command line options and files from a file.
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..3895169
--- /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-typescript-$1.tar.gz/ \
+ https://github.com/Microsoft/TypeScript/tags .*/archive/v?([\d\.]+).tar.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-typescript.git
More information about the Pkg-javascript-commits
mailing list