From 8605aa6a0f3c46c7ccd7a9b2ac6ab087eb859fab Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Thu, 7 Feb 2019 10:45:58 +0100 Subject: [PATCH 1/6] Switch to rollup --- debian/control | 6 ++++-- debian/rollup.config.js | 30 ++++++++++++++++++++++++++++++ debian/rules | 5 +++-- 3 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 debian/rollup.config.js diff --git a/debian/control b/debian/control index e82b141..0b639b1 100644 --- a/debian/control +++ b/debian/control @@ -9,8 +9,10 @@ Build-Depends: debhelper (>= 11~), ruby-execjs, ruby-json, ruby-rspec, - webpack, - node-autoprefixer (>= 8.6.5~) + node-autoprefixer (>= 8.6.5~), + node-rollup-plugin-babel, + node-rollup-plugin-node-resolve, + rollup Standards-Version: 4.3.0 Vcs-Git: https://salsa.debian.org/ruby-team/ruby-autoprefixer-rails.git Vcs-Browser: https://salsa.debian.org/ruby-team/ruby-autoprefixer-rails diff --git a/debian/rollup.config.js b/debian/rollup.config.js new file mode 100644 index 0000000..06619b6 --- /dev/null +++ b/debian/rollup.config.js @@ -0,0 +1,30 @@ +'use strict' + +const path = require('path') +const babel = require('rollup-plugin-babel') +const resolve = require('rollup-plugin-node-resolve') + +const BUNDLE = process.env.BUNDLE === 'true' + +let fileDest = 'autoprefixer.js' +const plugins = [ + babel({ + exclude: 'node_modules/**', // Only transpile our source code + externalHelpersWhitelist: [ // Include only required helpers + 'defineProperties', + 'createClass', + 'inheritsLoose', + 'defineProperty', + 'objectSpread' + ] + }) +] +module.exports = { + input: '/usr/lib/nodejs/autoprefixer/lib/autoprefixer.js', + output: { + file: path.resolve(__dirname, `../vendor/${fileDest}`), + format: 'umd', + name: 'autoprefixer' + }, + plugins +} diff --git a/debian/rules b/debian/rules index 30487f1..5256b39 100755 --- a/debian/rules +++ b/debian/rules @@ -8,5 +8,6 @@ export DH_RUBY = --gem-install override_dh_auto_build: # https://github.com/postcss/autoprefixer/issues/1174 - webpack --config debian/webpack.config.js \ - debian/autoprefixer-entry.js vendor/autoprefixer.js + #webpack --config debian/webpack.config.js \ + #debian/autoprefixer-entry.js vendor/autoprefixer.js + rollup --config debian/rollup.config.js -- GitLab From 2ae34fe9752bae7bdf308ed7a59e87cfa27d71ae Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Thu, 7 Feb 2019 10:46:57 +0100 Subject: [PATCH 2/6] Fix insecure-copyright-format-uri --- debian/copyright | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/copyright b/debian/copyright index e46b1f7..a77421c 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,4 +1,4 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: autoprefixer-rails Source: https://github.com/ai/autoprefixer-rails Files-Excluded: vendor/autoprefixer.js -- GitLab From 753f99f365bf7b827d5d86fe3d8e30d530e03db4 Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Thu, 7 Feb 2019 10:47:38 +0100 Subject: [PATCH 3/6] Trailing whitespaces --- debian/changelog | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index a0c897b..a7f82ec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,6 @@ ruby-autoprefixer-rails (8.6.5+dfsg-2) unstable; urgency=medium - * Reupload to unstable + * Reupload to unstable -- Pirate Praveen Thu, 07 Feb 2019 13:24:36 +0530 @@ -28,7 +28,7 @@ ruby-autoprefixer-rails (7.1.4.1-1) experimental; urgency=medium ruby-autoprefixer-rails (6.7.6-1) unstable; urgency=medium * Team upload - * New upstream release + * New upstream release -- Sruthi Chandran Wed, 28 Jun 2017 13:50:16 +0530 @@ -54,8 +54,8 @@ ruby-autoprefixer-rails (6.3.3.1-1) unstable; urgency=medium ruby-autoprefixer-rails (6.0.3-2) unstable; urgency=medium - * Re-upload to unstable. - * Check gemspec dependencies during build. + * Re-upload to unstable. + * Check gemspec dependencies during build. -- Pirate Praveen Sun, 20 Dec 2015 12:47:59 +0530 -- GitLab From a9c0a481036c86741672143a392171c0ccdd4396 Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Thu, 7 Feb 2019 10:48:37 +0100 Subject: [PATCH 4/6] Remove useless license --- debian/copyright | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/debian/copyright b/debian/copyright index a77421c..94e7108 100644 --- a/debian/copyright +++ b/debian/copyright @@ -29,30 +29,3 @@ License: Expat 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: BSD-3C - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are - met: - . - * Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials provided - with the distribution. - * Neither the name of Google Inc. nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - . - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- GitLab From f82791040ceb125b117159003bfc2ca761fc2df2 Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Thu, 7 Feb 2019 10:49:16 +0100 Subject: [PATCH 5/6] Remove useless lintian overrides --- debian/source/lintian-overrides | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 debian/source/lintian-overrides diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides deleted file mode 100644 index f328db4..0000000 --- a/debian/source/lintian-overrides +++ /dev/null @@ -1,2 +0,0 @@ -# False positive -ruby-autoprefixer-rails source: source-is-missing vendor/autoprefixer.js line length is 852 characters (>512) -- GitLab From 5259a354b0cd7e5d516bc4b656800c35938eddd1 Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Thu, 7 Feb 2019 10:49:45 +0100 Subject: [PATCH 6/6] Add upstream/metadata --- debian/upstream/metadata | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 debian/upstream/metadata diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..0343407 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,7 @@ +--- +Archive: GitHub +Bug-Database: https://github.com/ai/autoprefixer-rails/issues +Contact: https://github.com/ai/autoprefixer-rails/issues +Name: autoprefixer-rails +Repository: https://github.com/ai/autoprefixer-rails.git +Repository-Browse: https://github.com/ai/autoprefixer-rails -- GitLab