Import Debian changes 7.0.2+~5.0.1-ok1

node-rollup-plugin-terser (7.0.2+~5.0.1-ok1) yangtze; urgency=medium

  * Build for openKylin.
This commit is contained in:
openKylinBot 2022-04-25 22:03:04 +08:00 committed by Lu zhiping
parent 2a6dbef7ee
commit 9e4b282b81
22 changed files with 342 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
node-rollup-plugin-terser (7.0.2+~5.0.1-ok1) yangtze; urgency=medium
* Build for openKylin.
-- openKylinBot <openKylinBot@openkylin.com> Mon, 25 Apr 2022 22:03:04 +0800

45
debian/control vendored Normal file
View File

@ -0,0 +1,45 @@
Source: node-rollup-plugin-terser
Section: javascript
Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Uploaders:
Jonas Smedegaard <dr@jones.dk>,
Pirate Praveen <praveen@debian.org>,
Testsuite: autopkgtest-pkg-nodejs
Build-Depends:
debhelper-compat (= 13),
dh-sequence-nodejs,
jest <!nocheck>,
node-babel-core (>= 7) <!nocheck>,
node-jest-worker (>= 27~),
node-rollup <!nocheck>,
node-serialize-javascript <!nocheck>,
node-terser <!nocheck>,
nodejs (>= 6),
Standards-Version: 4.6.0
Homepage: https://github.com/TrySound/rollup-plugin-terser
Vcs-Git: https://salsa.debian.org/js-team/node-rollup-plugin-terser.git
Vcs-Browser: https://salsa.debian.org/js-team/node-rollup-plugin-terser
Rules-Requires-Root: no
Package: node-rollup-plugin-terser
Architecture: all
Depends:
node-babel-code-frame (>= 7),
node-babel-parser (>= 7),
node-jest-worker (>= 27~),
node-serialize-javascript,
node-terser,
nodejs,
${misc:Depends},
Provides:
${nodejs:Provides},
Enhances:
rollup,
Description: Rollup plugin to minify generated es bundle
This plugin for rollup uses terser to minify generated bundle and supports
ES6.
.
Also includes NodeJS module ascjs.
.
Node.js is an event-based server-side JavaScript engine.

77
debian/copyright vendored Normal file
View File

@ -0,0 +1,77 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: rollup-plugin-terser
Upstream-Contact: https://github.com/TrySound/rollup-plugin-terser/issues
Source: https://github.com/TrySound/rollup-plugin-terser
https://github.com/WebReflection/ascjs
Files: *
Copyright:
2018 Bogdan Chadkin <trysound@yandex.ru>
License: Expat
Reference: README.md
Files:
Xascjs/*
Copyright:
2017 Andrea Giammarchi (@WebReflection)
<andrea.giammarchi@gmail.com>
License: ISC
Reference: Xascjs/package.json
Files:
debian/*
Copyright:
2020-2021 Jonas Smedegaard <dr@jones.dk>
2020 Pirate Praveen <praveen@debian.org>
License-Grant:
This packaging is free software;
you can redistribute it and/or modify it
under the terms of the GNU General Public License
as published by the Free Software Foundation;
either version 3, or (at your option) any later version.
License: GPL-3+
Reference: debian/copyright
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.
License: ISC
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee
is hereby granted,
provided that the above copyright notice and this permission notice
appear in all copies.
.
THE SOFTWARE IS PROVIDED "AS IS"
AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL THE AUTHOR BE LIABLE
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
OR ANY DAMAGES WHATSOEVER
RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT,
NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
License: GPL-3+
Reference: /usr/share/common-licenses/GPL-3

3
debian/copyright-check vendored Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
licensecheck --check '.*' --recursive --copyright --deb-machine --ignore '^(debian/(changelog|copyright(_hints)?))$' --lines 0 -- * > debian/copyright_hints

83
debian/copyright_hints vendored Normal file
View File

@ -0,0 +1,83 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: FIXME
Upstream-Contact: FIXME
Source: FIXME
Disclaimer: Autogenerated by licensecheck
Files: Xascjs/.npmignore
Xascjs/.travis.yml
Xascjs/bin.js
Xascjs/index.js
Xascjs/test.js
Xascjs/test/default.cjs
Xascjs/test/default.mjs
Xascjs/test/dest/package.json
Xascjs/test/dest/test.js
Xascjs/test/source/test.js
debian/control
debian/copyright-check
debian/docs
debian/gbp.conf
debian/patches/2001_use_older_terser.patch
debian/patches/2002_fix-for-jest-27.patch
debian/patches/README
debian/patches/series
debian/rules
debian/salsa-ci.yml
debian/source/format
debian/tests/pkg-js/test
debian/upstream/metadata
debian/watch
rollup-plugin-terser.d.ts
rollup-plugin-terser.js
rollup-plugin-terser.mjs
test/__snapshots__/test.js.snap
test/fixtures/chunk-1.js
test/fixtures/chunk-2.js
test/fixtures/commented.js
test/fixtures/export-number.js
test/fixtures/failed.js
test/fixtures/plain-file.js
test/fixtures/properties-and-locals.js
test/fixtures/properties.js
test/fixtures/sourcemap.js
test/fixtures/unminified.js
test/test.js
transform.js
yarn.lock
Copyright: NONE
License: UNKNOWN
FIXME
Files: Xascjs/README.md
Xascjs/package.json
Copyright: NONE
License: ISC
FIXME
Files: package.json
Copyright: NONE
License: Expat
FIXME
Files: LICENSE
Copyright: 2018, Bogdan Chadkin <trysound@yandex.ru>
License: Expat
FIXME
Files: Xascjs/LICENSE.txt
Copyright: 2017, Andrea Giammarchi, @WebReflection
License: ISC
FIXME
Files: debian/source/lintian-overrides
Copyright: GPL-3+
gpl-3+
License: UNKNOWN
FIXME
Files: README.md
Copyright: [Bogdan Chadkin](mailto:trysound@yandex.ru)
License: UNKNOWN
FIXME

1
debian/docs vendored Normal file
View File

@ -0,0 +1 @@
README.md

9
debian/gbp.conf vendored Normal file
View File

@ -0,0 +1,9 @@
# Configuration file for git-buildpackage and friends
[DEFAULT]
pristine-tar = True
sign-tags = True
filter = */.git*
debian-branch = debian/latest
upstream-branch = upstream/latest
component = ['Xascjs']

View File

@ -0,0 +1 @@
usr/share/nodejs/ascjs/bin.js usr/bin/ascjs

1
debian/nodejs/root_modules vendored Normal file
View File

@ -0,0 +1 @@
Xascjs

View File

@ -0,0 +1,40 @@
Description: use older Nodejs module terser 4.x
This partly reverses upstream git commit 9f7cbad.
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2020-12-13
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/transform.js
+++ b/transform.js
@@ -2,7 +2,12 @@
const transform = (code, optionsString) => {
const options = eval(`(${optionsString})`);
- return minify(code, options).then(result => ({ result, nameCache: options.nameCache }));
+ const result = minify(code, options);
+ if (result.error) {
+ throw result.error;
+ } else {
+ return { result, nameCache: options.nameCache };
+ }
};
exports.transform = transform;
--- a/test/__snapshots__/test.js.snap
+++ b/test/__snapshots__/test.js.snap
@@ -9,6 +9,7 @@
"exports": Array [],
"fileName": "chunk-1.js",
"implicitlyLoadedBefore": Array [],
+ "importedBindings": Object {},
"imports": Array [],
"isDynamicEntry": false,
"isEntry": true,
@@ -25,6 +26,7 @@
"exports": Array [],
"fileName": "chunk-2.js",
"implicitlyLoadedBefore": Array [],
+ "importedBindings": Object {},
"imports": Array [],
"isDynamicEntry": false,
"isEntry": true,

View File

@ -0,0 +1,14 @@
Description: fix for jest-worker ≥ 27
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2021-09-26
--- a/rollup-plugin-terser.js
+++ b/rollup-plugin-terser.js
@@ -1,5 +1,5 @@
const { codeFrameColumns } = require("@babel/code-frame");
-const Worker = require("jest-worker").default;
+const Worker = require("jest-worker").Worker;
const serialize = require("serialize-javascript");
function terser(userOptions = {}) {

View File

@ -0,0 +1,13 @@
Description: require nonlocal ascjs module in test
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2021-11-04
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Xascjs/test.js
+++ b/Xascjs/test.js
@@ -1,4 +1,4 @@
-const ascjs = require('./index.js');
+const ascjs = require('ascjs');
const bold = text => `\x1B[1m${text}\x1B[0m`;

3
debian/patches/README vendored Normal file
View File

@ -0,0 +1,3 @@
0xxx: Grabbed from upstream development.
1xxx: Possibly relevant for upstream adoption.
2xxx: Only relevant for official Debian release.

3
debian/patches/series vendored Normal file
View File

@ -0,0 +1,3 @@
2001_use_older_terser.patch
2002_fix-for-jest-27.patch
2003_ascjs_test_nonlocal_module.patch

8
debian/rules vendored Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/make -f
%:
dh $@
execute_after_dh_fixperms:
sed -i -e '1s|^#!/usr/bin/env node|#!/usr/bin/node|' debian/node-rollup-plugin-terser/usr/share/nodejs/ascjs/bin.js
chmod +x debian/node-rollup-plugin-terser/usr/share/nodejs/ascjs/bin.js

4
debian/salsa-ci.yml vendored Normal file
View File

@ -0,0 +1,4 @@
---
include:
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
- https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

3
debian/source/lintian-overrides vendored Normal file
View File

@ -0,0 +1,3 @@
# License is in Reference field (see bug#786450)
missing-license-paragraph-in-dep5-copyright debian/copyright gpl-3\+ *
missing-license-text-in-dep5-copyright debian/copyright GPL-3\+ *

4
debian/tests/pkg-js/files vendored Normal file
View File

@ -0,0 +1,4 @@
test
Xascjs/package.json
Xascjs/test
Xascjs/test.js

2
debian/tests/pkg-js/test vendored Normal file
View File

@ -0,0 +1,2 @@
node Xascjs/test.js
jest --ci --testTimeout 60000 test/test.js

6
debian/upstream/metadata vendored Normal file
View File

@ -0,0 +1,6 @@
---
Archive: GitHub
Bug-Database: https://github.com/TrySound/rollup-plugin-terser/issues
Bug-Submit: https://github.com/TrySound/rollup-plugin-terser/issues/new
Repository: https://github.com/TrySound/rollup-plugin-terser.git
Repository-Browse: https://github.com/TrySound/rollup-plugin-terser

16
debian/watch vendored Normal file
View File

@ -0,0 +1,16 @@
version=4
# check: uscan --report
# update: gbp import-orig --upstream-vcs-tag=vX.Y.Z --uscan
opts=\
filenamemangle=s/.*?(@ANY_VERSION@@ARCHIVE_EXT@)/@PACKAGE@-$1/,\
dversionmangle=auto \
https://github.com/TrySound/rollup-plugin-terser/tags \
.*?@ANY_VERSION@@ARCHIVE_EXT@ group
opts=\
component=Xascjs,\
filenamemangle=s/.*?v?(@ANY_VERSION@@ARCHIVE_EXT@)/ascjs-$1/,\
dversionmangle=auto \
https://github.com/WebReflection/ascjs/tags \
.*?v?@ANY_VERSION@@ARCHIVE_EXT@ group