diff --git a/debian/changelog b/debian/changelog index a0c897bfb6d407e34928fe1032cf41ea9a7ece81..a7f82ec52be6f65812347f65a9de1378c66bfa2c 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 diff --git a/debian/control b/debian/control index e82b141ecde1b711bd3e4853b332ee405bbc9b82..0b639b144d273b55d39170ae2ea9167c59cfdef3 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/copyright b/debian/copyright index e46b1f724e58424d02ee2c90408ff95d8956a77e..94e7108beadf74e1365b24784a0cdd13cc957122 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 @@ -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. diff --git a/debian/rollup.config.js b/debian/rollup.config.js new file mode 100644 index 0000000000000000000000000000000000000000..06619b6721b4a6f44c29f4e8f852e249fb7c4ab2 --- /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 30487f15d7c25e7f2ed5324bc221aee8cefc1ad8..5256b396614ca039afc8ea3397047968309da014 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 diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides deleted file mode 100644 index f328db4d62d5a35f1c186105c2a03c8bef119a86..0000000000000000000000000000000000000000 --- 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) diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000000000000000000000000000000000000..034340774de9e58cdc610e3fafaed67601b013f7 --- /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