diff options
| author | Xavier Guimard <yadd@debian.org> | 2020-05-11 11:18:46 +0200 |
|---|---|---|
| committer | git-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com> | 2020-05-11 16:38:54 +0000 |
| commit | 88fd2d6a3cc29c8a58b17a575b726f92db6af98a (patch) | |
| tree | e106a2c18d24daee64ebca7a5ea63fec606e4ac4 | |
| parent | 6a9daf091416fa107598a2edc24773026be9d68d (diff) | |
2.0.3-2 (patches unapplied)import/2.0.3-2ubuntu/impish-develubuntu/impishubuntu/hirsute-develubuntu/hirsuteubuntu/groovy-proposedubuntu/groovy-develubuntu/groovydebian/bullseye
Imported using git-ubuntu import.
Notes
Notes:
* Team upload
[ Debian Janitor ]
* Bump debhelper from old 11 to 12.
* Set debhelper-compat version in Build-Depends.
* Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
Repository-Browse.
[ Xavier Guimard ]
* Declare compliance with policy 4.5.0
* Bump debhelper compatibility level to 12
* Add "Rules-Requires-Root: no"
* Add debian/gbp.conf
* Use pkg-js-tools auto test & install
* Refresh patch
* Build with babel7
| -rw-r--r-- | debian/changelog | 21 | ||||
| -rw-r--r-- | debian/clean | 1 | ||||
| -rw-r--r-- | debian/compat | 1 | ||||
| -rw-r--r-- | debian/control | 23 | ||||
| -rw-r--r-- | debian/gbp.conf | 5 | ||||
| -rw-r--r-- | debian/install | 2 | ||||
| -rw-r--r-- | debian/patches/00-test.diff | 15 | ||||
| -rw-r--r-- | debian/patches/fix-for-babel7.diff | 12 | ||||
| -rw-r--r-- | debian/patches/series | 1 | ||||
| -rwxr-xr-x | debian/rules | 11 | ||||
| -rw-r--r-- | debian/tests/control | 6 | ||||
| -rw-r--r-- | debian/tests/pkg-js/test | 1 | ||||
| -rw-r--r-- | debian/tests/require | 3 | ||||
| -rw-r--r-- | debian/upstream/metadata | 4 |
14 files changed, 64 insertions, 42 deletions
diff --git a/debian/changelog b/debian/changelog index 2fd5122..5d523c6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,24 @@ +node-babel-plugin-array-includes (2.0.3-2) unstable; urgency=medium + + * Team upload + + [ Debian Janitor ] + * Bump debhelper from old 11 to 12. + * Set debhelper-compat version in Build-Depends. + * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository, + Repository-Browse. + + [ Xavier Guimard ] + * Declare compliance with policy 4.5.0 + * Bump debhelper compatibility level to 12 + * Add "Rules-Requires-Root: no" + * Add debian/gbp.conf + * Use pkg-js-tools auto test & install + * Refresh patch + * Build with babel7 + + -- Xavier Guimard <yadd@debian.org> Mon, 11 May 2020 11:18:46 +0200 + node-babel-plugin-array-includes (2.0.3-1) unstable; urgency=low * Initial release (Closes: #895139) diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..c3af857 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +lib/ diff --git a/debian/compat b/debian/compat deleted file mode 100644 index b4de394..0000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -11 diff --git a/debian/control b/debian/control index f9c4325..fd0774b 100644 --- a/debian/control +++ b/debian/control @@ -3,22 +3,21 @@ Section: javascript Priority: optional Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org> Uploaders: Paolo Greppi <paolo.greppi@libpf.com> -Build-Depends: - debhelper (>= 11) - , chai - , mocha - , node-babel-cli (>= 6.3.15) - , node-babel-preset-es2015 (>= 6.3.13) - , nodejs -Standards-Version: 4.1.4 -Homepage: https://github.com/stoeffel/babel-plugin-array-includes#readme -Vcs-Git: https://salsa.debian.org/js-team/node-babel-plugin-array-includes.git +Build-Depends: debhelper-compat (= 12) + , chai <!nocheck> + , mocha <!nocheck> + , node-babel7 + , pkg-js-tools (>= 0.9.35~) +Standards-Version: 4.5.0 Vcs-Browser: https://salsa.debian.org/js-team/node-babel-plugin-array-includes +Vcs-Git: https://salsa.debian.org/js-team/node-babel-plugin-array-includes.git +Homepage: https://github.com/stoeffel/babel-plugin-array-includes +Testsuite: autopkgtest-pkg-nodejs +Rules-Requires-Root: no Package: node-babel-plugin-array-includes Architecture: all -Depends: - ${misc:Depends} +Depends: ${misc:Depends} , nodejs Description: Babel plugin to replace the array includes syntax This Babel plugin replaces the array includes(val) syntax with a check diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..b713356 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,5 @@ +[DEFAULT] +pristine-tar = True + +[import-orig] +filter = [ '.gitignore', '.travis.yml', '.git*' ] diff --git a/debian/install b/debian/install deleted file mode 100644 index d0dbbec..0000000 --- a/debian/install +++ /dev/null @@ -1,2 +0,0 @@ -lib usr/lib/nodejs/babel-plugin-array-includes/ -package.json usr/lib/nodejs/babel-plugin-array-includes/ diff --git a/debian/patches/00-test.diff b/debian/patches/00-test.diff index 30e8013..6680a35 100644 --- a/debian/patches/00-test.diff +++ b/debian/patches/00-test.diff @@ -2,27 +2,24 @@ Description: Use already traspiled code during tests. Forwarded: not-needed Author: Paolo Greppi <paolo.greppi@libpf.com> -Index: node-babel-plugin-array-includes/test/mocha.opts -=================================================================== ---- node-babel-plugin-array-includes.orig/test/mocha.opts +--- a/test/mocha.opts +++ /dev/null @@ -1 +0,0 @@ ---compilers js:babel-register \ No newline at end of file -Index: node-babel-plugin-array-includes/test/test.js -=================================================================== ---- node-babel-plugin-array-includes.orig/test/test.js -+++ node-babel-plugin-array-includes/test/test.js +--- a/test/test.js ++++ b/test/test.js @@ -1,6 +1,6 @@ - var babel = require('babel-core'); +-var babel = require('babel-core'); -import {expect} from 'chai'; -import plugin from '../src'; ++var babel = require('@babel/core'); +var expect = require('chai').expect; +var plugin = require('../lib').default; describe('babel-plugin-transform-array-includes', function() { it('[1,2,3].includes(1)', function() { -@@ -13,6 +13,6 @@ describe('babel-plugin-transform-array-i +@@ -13,6 +13,6 @@ }); it('var a=[]; b=a.map(...); b.includes(1)', function() { expect(babel.transform('var a=[];b=a.map(x=>x+1);b.includes(1);', {plugins: [plugin], compact: true}).code) diff --git a/debian/patches/fix-for-babel7.diff b/debian/patches/fix-for-babel7.diff new file mode 100644 index 0000000..9436487 --- /dev/null +++ b/debian/patches/fix-for-babel7.diff @@ -0,0 +1,12 @@ +Description: fix for babel7 +Author: Xavier Guimard <yadd@debian.org> +Forwarded: no +Last-Update: 2020-05-11 + +--- a/.babelrc ++++ b/.babelrc +@@ -1,3 +1,3 @@ + { +- "presets": ["es2015"] ++ "presets": ["@babel/preset-env"] + } diff --git a/debian/patches/series b/debian/patches/series index b458e39..b3f195a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 00-test.diff +fix-for-babel7.diff diff --git a/debian/rules b/debian/rules index db9ee66..148a391 100755 --- a/debian/rules +++ b/debian/rules @@ -5,14 +5,7 @@ #export DH_VERBOSE=1 %: - dh $@ + dh $@ --with nodejs override_dh_auto_build: - babeljs -D src -d lib - -override_dh_auto_test: - mocha --reporter spec - -override_dh_auto_clean: - rm -rf lib - dh_auto_clean + babeljs-7 -D src -d lib diff --git a/debian/tests/control b/debian/tests/control deleted file mode 100644 index ff77ca6..0000000 --- a/debian/tests/control +++ /dev/null @@ -1,6 +0,0 @@ -Tests: require -Depends: node-babel-plugin-array-includes - -Test-Command: mocha --reporter spec -Depends: @, @builddeps@ -Restrictions: build-needed diff --git a/debian/tests/pkg-js/test b/debian/tests/pkg-js/test new file mode 100644 index 0000000..4a9bb88 --- /dev/null +++ b/debian/tests/pkg-js/test @@ -0,0 +1 @@ +mocha diff --git a/debian/tests/require b/debian/tests/require deleted file mode 100644 index 5e817e7..0000000 --- a/debian/tests/require +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -set -e -nodejs -e "require('babel-plugin-array-includes');" diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..6f9c3ab --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,4 @@ +Bug-Database: https://github.com/stoeffel/babel-plugin-array-includes/issues +Bug-Submit: https://github.com/stoeffel/babel-plugin-array-includes/issues/new +Repository: https://github.com/stoeffel/babel-plugin-array-includes.git +Repository-Browse: https://github.com/stoeffel/babel-plugin-array-includes |
