{"bugs":{"url":"https://github.com/ampproject/rollup-plugin-closure-compiler/issues"},"dist":{"shasum":"0e0d0dd92f88577a8d309f9ae9096d2c5a7fbf08","tarball":"https://registry.npmjs.org/@ampproject/rollup-plugin-closure-compiler/-/rollup-plugin-closure-compiler-0.5.0-alpha.3.tgz","fileCount":5,"integrity":"sha512-hOkn80gFsTuRDmG4fQSzamA0kviCCaFUy1b00xRhiyGwno2QzwWWCj3j21tnCW0bg6PE3nesYFpg8VeaMzqacQ==","signatures":[{"sig":"MEUCIQDjLV02ZfqXmlX3AReF9mPQNQoB7uAso3v3YdQ2+zTW6gIgdr2LN2MGagG4DdptSRjNBYtSkafkowMOmLHJ3udx8ao=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101477,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbTnU2CRA9TVsSAnZWagAAX4cP/1DybttQhRhmPk4Rp2hw\nVVlziF2KSL1Mubuxh98L2tyfQKvqmHqYd4C3ysFbHyPLWyXv4XcQREU5gcM1\nC+eQChjKdV3TuU9mLfRp2wzcEKEaqRcqi1OS+r2kBKVBmAt4nA/JkVMR91uP\nCOvsTezfeppVrx21aCeYP/dcL3zIwgX+0xFx0RbjekX1KtZ8opp3PL6j0Taf\n+GgimavYXrYw1jTze6eWrdCux9s+/QnOFmWc8K3+tbgkacJt4t423gwP73CV\n8skfWkvKAT41Q/Dr7vFJakqtPkjeiWRVfVMbL30GnNL1z1/5jfX4lV1j5nUm\nslyJDEDryecKEsZ5fjR9btP2cCGX17vPw0C69ZNtRQjGaIjcp3hH8snL9huN\nzip0G/7KEa1+v6ooIr4Y0Z9OM7fmobWghX5U7We+zq07bXuNbWAzvWDB92O+\nobpRHa46XedK335TFmoSm5dTK2gBATt0gBiLpPLcl8igvKbJyNIrsufQOrgX\nVaej6EjRLXDupFLBb0e3WW+mbOyMx4gxg0anLsoIp6pPM00QSVMQdsCVi74E\nkVsXwgf8grwAmSdnnBaMabVCyYFO9C2ZPv5kgb7X5Ynk8++46VWKHZtQ4f47\nKNk2ib+cwWiRpZui/y9ZSQzMhRgsd/zkpyUY6t7BmkCtfUNNaBuxE0FDbvwg\n1u1z\r\n=ZBe9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","name":"@ampproject/rollup-plugin-closure-compiler","files":["dist/index.js","dist/index.mjs"],"husky":{"hooks":{"pre-push":"npm run test && npm run build","pre-commit":"lint-staged"}},"author":{"name":"The AMP HTML Authors"},"readme":"# rollup-plugin-closure-compiler\n\nLeverage [Closure Compiler](https://developers.google.com/closure/compiler/) to minify and optimize JavaScript with [Rollup](https://rollupjs.org/guide/en).\n\nGenerally Closure Compiler will produce superior minification than other projects, but historically has been more difficult to use. The goal of this plugin is to reduce this friction.\n\n## Installation\n\n```bash\nyarn add @ampproject/rollup-plugin-closure-compiler --dev\n```\n\n## Usage\n\nInvoke Closure Compiler from your Rollup configuration.\n\n```js\n// rollup.config.js\nimport compiler from '@ampproject/rollup-plugin-closure-compiler';\n\nexport default {\n  input: 'main.js',\n  output: {\n    file: 'bundle.js',\n    format: 'iife',\n  },\n  plugins: [\n    compiler(),\n  ],\n}\n```\n\nIf you would like to provide additional [flags and options](https://github.com/google/closure-compiler/wiki/Flags-and-Options) to Closure Compiler, pass them via key-value pairs.\n\n```js\n// rollup.config.js\nimport compiler from '@ampproject/rollup-plugin-closure-compiler';\n\nexport default {\n  input: 'main.js',\n  output: {\n    file: 'bundle.js',\n    format: 'iife',\n  },\n  plugins: [\n    compiler({\n      formatting: 'PRETTY_PRINT'\n    }),\n  ],\n}\n```\n\n### Automatic Closure Configuration\n\nThis plugin will modify the enable the `assume_function_wrapper` output option for Closure Compiler when `es` format is specifed to Rollup. **Note**: This is overrideable via passed flags and options.\n\n```js\n// rollup.config.js\nimport compiler from '@ampproject/rollup-plugin-closure-compiler';\n\nexport default {\n  input: 'main.js',\n  output: {\n    file: 'bundle.js',\n    format: 'es',\n  },\n  plugins: [\n    compiler(),\n  ],\n}\n```\n\nIf your Rollup configuration outputs an IIFE format bundle with a specified name, this plugin will add an extern to ensure the name does not get mangled. **Note**: This is overrideable via passed flags and options.\n\n```js\n// rollup.config.js\nimport compiler from '@ampproject/rollup-plugin-closure-compiler';\n\nexport default {\n  input: 'main.js',\n  output: {\n    file: 'bundle.js',\n    format: 'iife',\n    name: 'MyAwesomeThing'\n  },\n  plugins: [\n    compiler(),\n  ],\n}\n```\n\n## Security disclosures\n\nThe AMP Project accepts responsible security disclosures through the [Google Application Security program](https://www.google.com/about/appsecurity/).\n\n## Code of conduct\n\nThe AMP Project strives for a positive and growing project community that provides a safe environment for everyone.  All members, committers and volunteers in the community are required to act according to the [code of conduct](CODE_OF_CONDUCT.md).\n\n## License\n\nrollup-plugin-closure-compiler is licensed under the [Apache License, Version 2.0](LICENSE).","engines":{"node":">=8"},"gitHead":"6222f9af4bc3a179603f49d7314fdccf2547c722","license":"Apache-2.0","scripts":{"lint":"tslint -c tslint.json -p tsconfig.json","test":"ava -v test/**/*.js","build":"rimraf dist transpile && tsc -p tsconfig.json & wait","pretest":"rimraf dist transpile && tsc -p tsconfig.test.json & wait","postbuild":"rollup --config rollup.config.js"},"_npmUser":{"name":"kristoferbaxter","email":"kbax@me.com"},"homepage":"https://github.com/ampproject/rollup-plugin-closure-compiler#readme","keywords":["rollup-plugin"],"repository":{"url":"git+https://github.com/ampproject/rollup-plugin-closure-compiler.git","type":"git"},"_npmVersion":"5.6.0","description":"Rollup + Google Closure Compiler","directories":{},"jsnext:main":"dist/index.mjs","lint-staged":{"*.ts":["npm run lint --fix","prettier --config .prettierrc --write","git add"]},"maintainers":[{"name":"ampproject-admin","email":"admin@ampproject.org"},{"name":"jridgewell","email":"justin+npm@ridgewell.name"},{"name":"kristoferbaxter","email":"kbax@me.com"}],"_nodeVersion":"8.11.3","dependencies":{"acorn":"5.7.1","temp-write":"3.4.0","magic-string":"0.25.0","google-closure-compiler":"20180610.0.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ava":"1.0.0-beta.6","husky":"1.0.0-rc.13","rimraf":"2.6.2","rollup":"0.62.0","tslint":"5.10.0","builtins":"2.0.0","prettier":"1.13.7","typescript":"2.9.2","lint-staged":"7.2.0","@types/acorn":"4.0.3","@types/estree":"0.0.39","@types/temp-write":"3.3.0","@types/google-closure-compiler":"0.0.18"},"_npmOperationalInternal":{"tmp":"tmp/rollup-plugin-closure-compiler_0.5.0-alpha.3_1531868470157_0.5263753051139393","host":"s3://npm-registry-packages"},"_id":"@ampproject/rollup-plugin-closure-compiler@0.5.0-alpha.3","version":"0.5.0-alpha.3"}