{"bugs":{"url":"https://github.com/ember-cli/ember-cli-preprocessor-registry/issues"},"dist":{"shasum":"94139abd18a48d81a4d475ac0b197776798c892d","tarball":"https://registry.npmjs.org/ember-cli-preprocess-registry/-/ember-cli-preprocess-registry-4.0.0-beta.1.tgz","fileCount":5,"integrity":"sha512-jDNUdh0zYSh/Jn8QPmFstTSKvXHnLVdSl3Q0WCcbZ9mbOJENuSPT8mlPUwFlHk6LJ+ecz9BuwXmjyDtyjaLCJQ==","signatures":[{"sig":"MEUCIQDLfn1IUxrcawFtJf+EUnYm/YfIuBnYeyNvKOgk8WWmMQIgFNfkGW4Lma6E9o9rsMPG+YrctshwPYR6RqHr9vRy1P8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9456,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa3kIMCRA9TVsSAnZWagAAE9IP/3Ee499u1Wz63PHjDp8e\nZZ80+aKz5MqGegl2eoDRZKIaYxHRQa1Y1rqm9/bzeLJT2Ok4OnlvJgbEXn3O\nRAIGBHFDwtI51HSV9QECJ5CGMKZZAmPE58L15iW8tT5UNXyULsNjZ4CdbS5c\nEd2Pid3xvs9rXSUhz8tNCikNXNYZpBkHnFvJCSU9CYq4TovcxJZfOhEfbGvW\nZaace62DhoWMXyry4w7XdSNDGaKpsCDX45RPdx6OA70SDti+KEIAdYlvKsbL\nZNpuqx4gDDWtJL8NBOdVtEIJ4/cZLJPdvdCTsp8a27Hhhy12WBGWo5HyS4R5\nOyRkC3FuWvU9Jg5gCrShiKCVs67vi6aEA4PoPHLBU+S4d2Svj0IdJYNsO9jW\nCr3Y950H8Gxt/K8OFuV/0lzHiOtTla1PQyxqxq4wZaLoRQaQn32yGHWdO3zp\nowKbIo4Z0WwN0wyUhoiwfB6feqa+qGVT450x8aix19cRGNF6Tsakk6zaPqCe\nGvOIJUOAUwz6DIBu17Bxp9y0iG6CtqcHSw1LX5rccim9sca0CvS4iq1u0hwQ\n8CpP4Inrr32MKUA8tlMhq7UIoVALVVXN6PiKkpg0RTAWCmDDZ17SSSq5d0Ai\nQL9gZz4hydSnJCULtZumLJ70LasnLRiTiAWZ+jknm2BvvSuvv5a6ayAArV/4\nHRdc\r\n=yIWC\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"ember-cli-preprocess-registry","files":["index.js","preprocessors.js","lib"],"author":{"name":"ember-cli Contributors"},"readme":"# ember-cli-preprocessor-registry\n\nUsed by Ember CLI to provide a registry of preprocessors. The main types\nused throughout the system are `css`, `template`, `js`.\n\n## Addon Usage\n\nYou can access both your own addon's and your parent's (whichever item is including you)\nregistry via the `setupPreprocessorRegistry` hook in your addon's `index.js`.\n\nExample:\n\n```js\nmodule.exports = {\n  name: 'special-js-sauce',\n  \n  setupPreprocessorRegistry(type, registry) {\n    if (type !== 'parent') { return; }\n\n    registry.add('js', {\n      name: 'special-js-sauce-preprocessor',\n      toTree() {\n        // do your thing here....\n      }\n    });\n  }\n}\n```\n\n## API\n\n### `Registry.prototype.add(type: String, plugin: Plugin)`\n\nAdds the provided plugin to the registry for the type specified.\n\nExample:\n\n```js\nclass SpecialSauce {\n  get name() { return 'special-sauce'; }\n\n  toTree(tree) {\n    // return new tree after processing\n  }\n}\n\nregistry.add('js', new SpecialSauce);\n```\n\n### `Registry.prototype.load(type: String): Plugin[]`\n\nReturns an array of all plugins that are registered for a given type.\n\n### `Registry.prototype.extensionsForType(type: String): string[]`\n\nReturns an array of all known extensions for a given type.\n\n### `Registry.prototype.remove(type: String, plugin: Plugin)`\n\nRemoves the provided plugin from the specified type listing.\n\n## Running Tests\n\n```bash\nnpm install\nnpm test\n```\n","engines":{"node":"> 4"},"gitHead":"2953209967999e291bda7a2d96c6bfa94738eb2f","license":"MIT","scripts":{"lint":"mocha tests/unit/lint-test.js","test":"mocha tests/**/*"},"_npmUser":{"name":"rwjblue","email":"me@rwjblue.com"},"homepage":"https://github.com/ember-cli/ember-cli-preprocessor-registry#readme","repository":{"url":"git+https://github.com/ember-cli/ember-cli-preprocessor-registry.git","type":"git"},"_npmVersion":"5.7.1","description":"Preprocessor registry used internally by ember-cli.","directories":{},"maintainers":[{"name":"chadhietala","email":"chadhietala@gmail.com"},{"name":"rwjblue","email":"me@rwjblue.com"},{"name":"stefanpenner","email":"stefan.penner@gmail.com"}],"_nodeVersion":"9.4.0","dependencies":{"debug":"^2.2.0","silent-error":"^1.0.0","broccoli-funnel":"^1.0.0","broccoli-merge-trees":"^1.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"^3.0.0","mocha":"^3.0.1","mocha-eslint":"^3.0.1","eslint-plugin-chai-expect":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/ember-cli-preprocess-registry_4.0.0-beta.1_1524515339214_0.7438090750032289","host":"s3://npm-registry-packages"},"_id":"ember-cli-preprocess-registry@4.0.0-beta.1","version":"4.0.0-beta.1"}