{"_id":"@buschtoens/ember-cli-deploy-compress","_rev":"2-1411ac21b71f1daeb56a7609d4946d86","name":"@buschtoens/ember-cli-deploy-compress","dist-tags":{"latest":"0.3.2"},"versions":{"0.3.1":{"name":"@buschtoens/ember-cli-deploy-compress","version":"0.3.1","description":"Ember CLI Deploy plugin to compress files in gzip or brotli automatically depending on supported browsers","scripts":{"start":"ember server","build":"ember build","test":"mocha tests && eslint index.js tests/**/*.js"},"repository":{"type":"git","url":"https://github.com/dockyard/ember-cli-deploy-compress"},"engines":{"node":"8.* || >= 10.*"},"author":{"name":"Miguel Camba"},"license":"MIT","devDependencies":{"chai":"^3.5.0","chai-as-promised":"^6.0.0","ember-cli":"^3.1.4","ember-cli-release":"^1.0.0-beta.2","eslint":"^3.18.0","github":"^9.2.0","glob":"^7.0.5","mocha":"^5.2.0","multiline":"^1.0.2","node-zopfli-es":"^1.0.1","rimraf":"^2.3.4"},"keywords":["ember-addon","ember-cli-deploy-plugin"],"dependencies":{"caniuse-api":"^2.0.0","chalk":"^1.1.3","core-object":"^2.0.6","ember-cli-deploy-plugin":"^0.2.9","iltorb":"^2.3.2","minimatch":"^3.0.3","rsvp":"^3.5.0"},"ember-addon":{"configPath":"tests/dummy/config"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2015\n\nPermission 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:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE 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.\n","_id":"@buschtoens/ember-cli-deploy-compress@0.3.1","dist":{"shasum":"b95c9c661f76609a8079c92e332bd0cc2eb55f62","integrity":"sha512-XshNJfRZ0cRsz4PY4PSCa9IfrO3bKU6xLxKuiaDon+upqlnGQr/V4UhfaHhMpRg83rfVVQj9BQJLTaQU4SgSZw==","tarball":"https://registry.npmjs.org/@buschtoens/ember-cli-deploy-compress/-/ember-cli-deploy-compress-0.3.1.tgz","fileCount":8,"unpackedSize":14063,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcYqQPCRA9TVsSAnZWagAAAhoP/0mxUJ/NhcxZMxjhwBdh\nwBrojz48M6TQZxICAcBPcCdG2FDOebOileoQufLRhouHkSsYfEElkx6IkA4F\nFY4rZSrZTIjlPCjSEPRILOUQvlONyToeqkRJKjAShiMP9uFJ3ifGye17/DI6\nVVlg6OOc5UHacyolYkMkC2y7XKir+xgFLnliRrp/IBZs0FuEuXPnVDeWu/gM\nth4c+XJTFK9AMz1EnQszi/KeUGX4rZB6mvGUX6U34V0pp+1gVPHYbqa/oSvN\n1KjCXaF1XrsrFyI9WGJ0U/dk5GY3xB5Bq4twAEUgSRHJ6yXb/DBe8qbwaGps\n68Yluuq4SBhdTrXUEE06bcv2/twXGl+RXXvvXX8aw5MxngMTYAUw7BA8Z4/Z\nyT+Ka5EqkYJ7Ue1yJEvblx+GiHORySSuSsE9raAiniC5RS9W9LLEv7tjWvCY\n7RT6FVITG+027JRPEWA1nB+DRTCOVeAqwNrCUYSfgWyO7eqRQQmyds6SQuPC\nFoB9diSYUbMCGlzO/Y8NlxnyRDDtqOVWVdNZPCeKEx+lj77W2dwm2UIBi64d\nudLhOI7335NjtsCPojqqycsCDnjxTWnP5r54a+HZsn9FD7ToPDg7l8piVlRN\nsJnU/mg8upEwcqhRCwv1PqL1PZtC6bfFts9xvvzADJ7Y3GpK0EdLGSLfhGnr\nbmvA\r\n=b+5x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDewNTTW6MfvmQ65h6oik+4dnegsOt4dSBMNv8cKTZaygIgQt9JVPhf4AXG5rf0l96LE9DdY3k3o/BjykP/oODep/M="}]},"maintainers":[{"name":"buschtoens","email":"buschtoens@gmail.com"}],"_npmUser":{"name":"buschtoens","email":"buschtoens@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ember-cli-deploy-compress_0.3.1_1549968398858_0.5825608733202161"},"_hasShrinkwrap":false},"0.3.2":{"name":"@buschtoens/ember-cli-deploy-compress","version":"0.3.2","description":"Ember CLI Deploy plugin to compress files in gzip or brotli automatically depending on supported browsers","scripts":{"start":"ember server","build":"ember build","test":"mocha tests && eslint index.js tests/**/*.js"},"repository":{"type":"git","url":"https://github.com/dockyard/ember-cli-deploy-compress"},"engines":{"node":"8.* || >= 10.*"},"author":{"name":"Miguel Camba"},"license":"MIT","devDependencies":{"chai":"^3.5.0","chai-as-promised":"^6.0.0","ember-cli":"^3.1.4","ember-cli-release":"^1.0.0-beta.2","eslint":"^3.18.0","github":"^9.2.0","glob":"^7.0.5","mocha":"^5.2.0","multiline":"^1.0.2","node-zopfli-es":"^1.0.1","rimraf":"^2.3.4"},"keywords":["ember-addon","ember-cli-deploy-plugin"],"dependencies":{"caniuse-api":"^2.0.0","chalk":"^1.1.3","core-object":"^2.0.6","ember-cli-deploy-plugin":"^0.2.9","iltorb":"^2.3.2","minimatch":"^3.0.3","rsvp":"^3.5.0"},"ember-addon":{"configPath":"tests/dummy/config"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2015\n\nPermission 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:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE 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.\n","_id":"@buschtoens/ember-cli-deploy-compress@0.3.2","dist":{"shasum":"005266c06f02a3cad52927bc8308ae5e0b00658a","integrity":"sha512-m8G8TaMrQh7SzJeJGRviDZrC8zCKvJ91LM68aJUBb94LyNrYYB+m6LJ/b0fzudBJEvVK+9ZZhh0pbS8toxmwTg==","tarball":"https://registry.npmjs.org/@buschtoens/ember-cli-deploy-compress/-/ember-cli-deploy-compress-0.3.2.tgz","fileCount":8,"unpackedSize":14052,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcYqT4CRA9TVsSAnZWagAA4LEQAINwh5+XvI4bvz4gGpTl\nPbdbSQBgDy4L6rEqKRuB4Vbnz9CZ42rMXb1968MqmHT/lGHta5mI20noljxO\nNdOL9vMoeyIhTS5ZxDN43zoWW45RIPVekvC1ft85eF/8I57txOwSuNzW0IOh\ne/2xBI/clu93Vq80I11WM2A0HaKTfo/K37lGMvZ/wzYRkQYxVWdLC0WmJJ7i\nMnwvhguEyw0AYHpfYJ7GMB8fw3mAGl3j6jA0Xat2DB6WnROStv8FLbVLFWKP\nclbFGZF76OnrQLbRPg1WWFmHVn3srzwfQm2EySi4F0kwmr5quXv8J9beT2lk\nu3cRoeeMBJcNEIteV561zt4BnMDCXv5MEAhlWcY/VJPk8R6PVna+WJ5z0aNt\nRV8AcPz8MsF9rjDC4G31r2O42MDZSrRSh1ya1kgTBegTQFkxUZNhZ0e5Be76\nSfKcYqdxkYWrtP5ZGJ2VJxJ7hIGzcV26/p1fvDKUto5w/E7CjckTepDvEVM7\nJ8zarR6PF/0F70qi7LF1zSdwfhMUPahy0uqUJ1Zmc1Xg4nS7m3nRlfgIm6nG\nt3a1TDHf9gUlln/pBtYYnfAa6RtBYERme0X49nltbtWdhcg0gcduGtCWdnuw\njRf52X96ex9kVQ3Pj/8ECd/EMDqO50gDvMPuBhrb12AgEau1N5+GYR29QFSB\nVjEZ\r\n=QK/9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuVtoDMrILs5fNIhct8cysAGxEvDEvPFSYZCmHIshmAwIhALo7eTtObGM2N7FHKW652l6uvd876C2PVJBI5ZMqs+7X"}]},"maintainers":[{"name":"buschtoens","email":"buschtoens@gmail.com"}],"_npmUser":{"name":"buschtoens","email":"buschtoens@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ember-cli-deploy-compress_0.3.2_1549968632271_0.906767185157453"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-12T10:46:38.680Z","0.3.1":"2019-02-12T10:46:39.010Z","modified":"2022-04-04T21:08:41.536Z","0.3.2":"2019-02-12T10:50:32.395Z"},"maintainers":[{"name":"buschtoens","email":"buschtoens@gmail.com"}],"description":"Ember CLI Deploy plugin to compress files in gzip or brotli automatically depending on supported browsers","keywords":["ember-addon","ember-cli-deploy-plugin"],"repository":{"type":"git","url":"https://github.com/dockyard/ember-cli-deploy-compress"},"author":{"name":"Miguel Camba"},"license":"MIT","readme":"# ember-cli-deploy-compress\n\n> An ember-cli-deploy plugin to compress files in-place choosing between gzip or brotli compression automatically based on your supported browsers.\n\nThis plugin is more or less the fusion of [ember-cli-deploy-gzip](https://github.com/ember-cli-deploy/ember-cli-deploy-gzip) and [ember-cli-deploy-brotli](https://github.com/mfeckie/ember-cli-deploy-brotli) that smartly uses your matrix of supported browsers (from `config/targets.js`) and the information\nfrom [caniuse.com](https://caniuse.com/#feat=brotli) to decide the best compression automatically.\n\nWhen brotli is supported you typically get around 17% reduction on file size of the average javascript files.  This compression is even larger with html and css files.\n\n## What is an ember-cli-deploy plugin?\n\nA plugin is an addon that can be executed as a part of the ember-cli-deploy pipeline. A plugin will implement one or more of ember-cli-deploy's pipeline hooks.\n\nFor more information on what plugins are and how they work, please refer to the [Plugin Documentation][1].\n\n## Installation\n\nRun the following command in your terminal:\n\n```bash\nember install ember-cli-deploy-compress\n```\n\nNote that this addon requires at least node.js 8!\n\n## ember-cli-deploy Hooks Implemented\n\nFor detailed information on what plugin hooks are and how they work, please refer to the [Plugin Documentation][1].\n\n- `configure`\n- `willUpload`\n\n## Configuration Options\n\nFor detailed information on how configuration of plugins works, please refer to the [Plugin Documentation][1].\n\n### filePattern\n\nFiles matching this pattern will be compressed.\nNote: image files such as `.png`, `.jpg` and `.gif` are already compressed and therefore should not be included.\n\n*Default:* `'\\*\\*/\\*.{js,css,json,ico,map,xml,txt,svg,eot,ttf,woff,woff2}'`\n\n### ignorePattern\n\nFiles matching this pattern will *not* be compressed even if they match `filePattern`.\n\n*Default:* null\n\n### distDir\n\nThe root directory where the files match `filePattern` will be searched.\n\nBy default, this option will use the `distDir` property of the deployment context, provided by [ember-cli-deploy-build][2].\n\n*Default:* `context.distDir`\n\n### distFiles\n\nThe list of built project files.\n\nThis option should be relative to `distDir` and should include the files that match `filePattern`. By default, this option will use the `distFiles` property of the deployment context, provided by [ember-cli-deploy-build][2].\n\n*Default:* `context.distDir`\n\n### zopfli\n\nIf brotli is not available for your browsers, use zopfli for gzip compression. It is better than regular gzip compression and a good substitute when brotli is not available.\n\nIf set to `true`, you will need to install `node-zopfli-es` (recommended) or `node-zopfli` in your app: `npm install node-zopfli-es --save-dev`.\n\n*Default:* `false`\n\n### keep\n\nKeep original file and write compressed data to `originalFile.gz` (or `originalFile.br`, or both).\n\n*Default:* `false`\n\n### compression\n\nIt determines the compression algorithm used.\n\n*Default:* `[\"best\"]`\n\nWhen the value is `[\"best\"]`, it will automatically decide whether it can use brotli or if it has to stick\nwith gzip automatically.\nIf the users want to force one algorithm, they can force it by passing `compression: [\"brotli\"]`.\nAlso, users can force the addon to use both algorithms simultaneously with `compression: [\"gzip\", \"brotli\"]`. When both algorithms are used, the user has to also enable the `keep` option.\n\n\n## Prequisites\n\nThe following properties are expected to be present on the deployment `context` object:\n\n- `distDir`      (provided by [ember-cli-deploy-build][2])\n- `distFiles`    (provided by [ember-cli-deploy-build][2])\n\n## Plugins known to work well with this one\n\n[ember-cli-deploy-build][2]\n[ember-cli-deploy-s3][3] (Starting in version 1.2.0)\n\n## Running Tests\n\n* `yarn test`\n\n## Why `ember build` and `ember test` don't work\n\nSince this is a node-only ember-cli addon, this package does not include many files and dependencies which are part of ember-cli's typical `ember build` and `ember test` processes.\n\n[1]: http://ember-cli-deploy.github.io/ember-cli-deploy/plugins/ \"Plugin Documentation\"\n[2]: https://github.com/zapnito/ember-cli-deploy-build \"ember-cli-deploy-build\"\n[3]: https://github.com/zapnito/ember-cli-deploy-s3 \"ember-cli-deploy-s3\"\n","readmeFilename":"README.md"}