{"_id":"@boundless-inc/ember-cli-deploy-rollbar","_rev":"2-a9f02e1cb2f05b878ee5f72d4ec0d046","name":"@boundless-inc/ember-cli-deploy-rollbar","dist-tags":{"latest":"1.4.0"},"versions":{"1.4.0":{"name":"@boundless-inc/ember-cli-deploy-rollbar","version":"1.4.0","description":"ember-cli-deploy addon that integrates Rollbar to your index.html file and uploads source maps to Rollbar API","directories":{"doc":"doc","test":"tests"},"scripts":{"build":"ember build","start":"ember server","test":"node tests/runner.js"},"repository":{"type":"git","url":"git+https://github.com/boundless-inc/ember-cli-deploy-rollbar.git"},"engines":{"node":">= 0.10.0"},"author":{"name":"Kuba Niechcial"},"license":"MIT","devDependencies":{"chai":"^2.2.0","chai-as-promised":"^5.0.0","broccoli-asset-rev":"^2.2.0","ember-cli":"1.13.12","ember-cli-app-version":"^1.0.0","ember-cli-content-security-policy":"0.4.0","ember-cli-dependency-checker":"^1.1.0","ember-cli-htmlbars":"^1.0.1","ember-cli-htmlbars-inline-precompile":"^0.3.1","ember-cli-ic-ajax":"0.2.4","ember-cli-inject-live-reload":"^1.3.1","ember-cli-qunit":"^1.0.4","ember-cli-release":"0.2.8","ember-cli-sri":"^1.1.0","ember-cli-uglify":"^1.2.0","ember-data":"1.13.15","ember-disable-proxy-controllers":"^1.0.1","ember-export-application-global":"^1.0.4","ember-disable-prototype-extensions":"^1.0.0","ember-try":"~0.0.8","mocha":"^2.2.4"},"keywords":["ember-addon","ember-cli-deploy-plugin"],"dependencies":{"ember-cli-babel":"^6.14.1","ember-cli-deploy-plugin":"^0.2.0","form-data":"^1.0.0-rc3","glob":"^5.0.5","lodash":"^3.10.1","mime":"^1.3.4","minimatch":"^2.0.4","rsvp":"^3.0.17"},"ember-addon":{"configPath":"tests/dummy/config"},"bugs":{"url":"https://github.com/boundless-inc/ember-cli-deploy-rollbar/issues"},"homepage":"https://github.com/boundless-inc/ember-cli-deploy-rollbar#readme","gitHead":"627ee8bb1fdd5116b995a16af1fde21701c5a637","_id":"@boundless-inc/ember-cli-deploy-rollbar@1.4.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"scudco","email":"adamandersonis@gmail.com"},"dist":{"integrity":"sha512-/JLTAefj8djGiIqPyzUkb8xb7k2koDrGJys0M6F4UaaKrgKX8kGmRF4Kt3qu/tf2CjgiZxZHVqJopswP/qTfvA==","shasum":"e6a4f1ec5839be0498e24e39f8ccc42bda48d54b","tarball":"https://registry.npmjs.org/@boundless-inc/ember-cli-deploy-rollbar/-/ember-cli-deploy-rollbar-1.4.0.tgz","fileCount":11,"unpackedSize":22090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbM64TCRA9TVsSAnZWagAAbCQP/jPVo/8YaLTtOS7zu1Bg\nQqYscqi5VMPPA7IvWUG51UfvZNR2vYCV25G2PWWULAJ5R/NC/PUHKHUJ5eRj\nDhUHC2tnxKuy+XZFdzI0rl7jousPVWZJwJSTQRXH3nwTTPK87sn0C6K5PTpd\neK8Mvc2IXrRXqJaYLH2ElsnCvuDjPl4mngvgcv8S6MaYUvaKhazxFbyB3FLG\nQt+Rqd0bkO4JJz5hCAUcvcXIIk0mk1a+zuAlrXECOxPkBG+noDE7ru5tCIoh\n1ogdm/jnV0pyiEaYPJBFeWY1YJLjXMdoDWkjL6MfBoQLyPVYbCEBKFYF//pD\nyatOJZHsZZnaV2wSRu2i1NbsKASUIS6dEiEaVGxwPdD64Tl2beKS8HNTUFh2\n/o0B0DWfYpzfkU3/VHCOXy02IpLLolXI9aEf0koM7q2h9qbNY6gHZQDjAePS\noU7syNbMfuWsL3XKXXfMv+ziaNtFycjJyv37qBvIoJ1st2IUbg4F82NGJYxU\njVDxOEP3eRCB4DG6AcyFuWBPMpql2XW2NLkS0x8j3qieFTirpywK4ALqDGep\nRwf4pL/edv65HH3Xj0dSgU0dkpkHDCcc6v9RB3hHZKW2lFNJ7GuzCD37DCJs\nXKbgnawljPbz7yW6Oyu0LdODuTm3FCfwszqLeXoVv1Y4CxLgIYFms8xk7I8q\n/tLp\r\n=iKdO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB5jNAxalnTA2NKcvth7mRmvf9dx8BjR2ut6VNU6OJcdAiEAxZ/ssqHQHC5bwDbz91Ho2YZ/2IDMfjpPMq6MlrnaztI="}]},"maintainers":[{"name":"scudco","email":"adamandersonis@gmail.com"},{"name":"sdhull","email":"p.witty@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ember-cli-deploy-rollbar_1.4.0_1530113555102_0.048427805694694515"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-27T15:32:35.011Z","1.4.0":"2018-06-27T15:32:35.239Z","modified":"2022-04-04T20:16:01.691Z"},"maintainers":[{"email":"nolane@gmail.com","name":"nolman"},{"email":"adamandersonis@gmail.com","name":"scudco"},{"email":"p.witty@gmail.com","name":"sdhull"}],"description":"ember-cli-deploy addon that integrates Rollbar to your index.html file and uploads source maps to Rollbar API","homepage":"https://github.com/boundless-inc/ember-cli-deploy-rollbar#readme","keywords":["ember-addon","ember-cli-deploy-plugin"],"repository":{"type":"git","url":"git+https://github.com/boundless-inc/ember-cli-deploy-rollbar.git"},"author":{"name":"Kuba Niechcial"},"bugs":{"url":"https://github.com/boundless-inc/ember-cli-deploy-rollbar/issues"},"license":"MIT","readme":"[![Build Status](https://travis-ci.org/netguru/ember-cli-deploy-rollbar.svg?branch=master)](https://travis-ci.org/netguru/ember-cli-deploy-rollbar)\n\n# ember-cli-deploy-rollbar\n\n> An ember-cli-deploy plugin that first __integrates Rollbar to your application__ and second __uploads your source maps to Rollbar__.\n\nThis plugin will integrate Rollbar into your `index.html` file and uploads generated source maps via Rollbar API. During upload of the source maps to Rollbar you must provide `source_code` string that will match the error raised in Rollbar with the same value. To do this, Rollbar snippet is injected into `index.html` after the revision data is generated with revision key as `source_code`. After all, the plugin uploads the source maps with the same revision key as injected into `index.html`.\n\n[You can take a look here how Rollbar defines its flow with source maps][5]\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 the 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## Quick Start\nTo get up and running quickly, do the following:\n\n- Ensure [ember-cli-deploy-build][2] is installed and configured\n- Ensure [ember-cli-deploy-revision-data][4] is installed and configured\n\n- Install this plugin\n\n```bash\n$ ember install ember-cli-deploy-rollbar\n```\n\n- Run the pipeline\n\n```bash\n$ ember deploy\n```\n\n## Installation\nRun the following command in your terminal:\n\n```bash\nember install ember-cli-deploy-rollbar\n```\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][6].\n\n- `willUpload` (inject Rollbar snippet)\n- `upload` (upload source maps)\n- `didDeploy` (send information about deploy to Rollbar)\n\n## Configuration Options\n\nFor detailed information on how configuration of plugins works, please refer to the [Plugin Documentation][7].\n\n### accessToken (required)\n\nRollbar client access token to trigger errors.\n\n### accessServerToken (required)\n\nRollbar server access token to allow uploading source maps to your account.\n\n### minifiedPrependUrl (required)\n\nRollbar demands to upload both source map and URL to minified file. This config let's you define the prepend to URL your assets will be available after upload. E.g. if you are using `ember-cli-deploy-s3`, add the same string as in `fingerprint/prepend` option in your `ember-cli-deploy` file.\n\nThis property can be a string or a function returning a string or an array of strings, which is passed the deploy `context`. Use a function here if you want to add multiple sources for multiple deploy locations. A possible scenario would be that you deploy both by git hash and a production deploy:\n\n```javascript\nminifiedPrependUrl: function(context) {\n  return [\n    'https://dev.example.com/' + context.revisionData.revisionKey + '/',\n    'https://app.example.com/'\n  ];\n}\n```\n\n### enabled\n\nDefines internal `enabled` Rollbar config.\n\n*Default:* `true`\n*Alternatives:* `false`\n\n### environment\n\nDefines internal `environment` Rollbar config.\n\n*Default:* environment setting from ember-cli-deploy-build || `production`\n*Alternatives:* any other env\n\n### captureUncaught\n\nDefines internal `captureUncaught` Rollbar config.\n\n*Default:* `true`\n*Alternatives:* `false`\n\n### username\n\nRollbar `local_username` config that is displayed in Deploys section.\n\n*Default:* `unknown user`\n*Alternatives:* any string or function returning string\n\n### rollbarFileURI\n\nDefines the URI to download the Rollbar JS file.\n\n*Default:* `https://d37gvrvc0wt4s1.cloudfront.net/js/v1.8/rollbar.min.js`\n*Alternatives:* any string that points to the file (e.g. https://mycdn.com/js/rollbar.min.js)\n\n### additionalFiles\n\nDefines additional sourcemap files to be uploaded to Rollbar. Use this if you build .js files other than `projectName.js` and `vendor.js`.\n\nSet to an array of filenames excluding their extentions. For example in an app that builds `exta-functionality.js` and `additional-library.js` set to `['exta-functionality', 'additional-library']`.\n\n*Default:* `[]`\n*Alternatives:* an array of filenames without extensions\n\n## Prerequisites\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- `revisionData` (provided by [ember-cli-deploy-revision-data][4])\n\n## Plugins known to work well with this one\n\n* [ember-cli-deploy-redis](https://github.com/ember-cli-deploy/ember-cli-deploy-redis)\n* [ember-cli-deploy-s3](https://github.com/ember-cli-deploy/ember-cli-deploy-s3)\n\n## Known issues\n* You must enable source maps in your `ember-cli-build.js` file, even in `production` env. However, you don't need to upload them anywhere (they won't be available online) - they are only needed during `upload` phase in deploy pipeline.\n* If you are using gzipping, make sure that you are not gzipping source maps - Rollbar will not accept gzipped files.\n* If you bump in any other issue in your deployment flow, give me a sign and I'll try to make this addon more flexible for you.\n\n[1]: http://ember-cli-deploy.com/docs/v0.6.x/ \"Plugin Documentation\"\n[2]: https://github.com/ember-cli-deploy/ember-cli-deploy-build \"ember-cli-deploy-build\"\n[3]: https://github.com/ember-cli/ember-cli-deploy \"ember-cli-deploy\"\n[4]: https://github.com/ember-cli-deploy/ember-cli-deploy-revision-data \"ember-cli-deploy-revision-data\"\n[5]: https://rollbar.com/docs/source-maps/ \"Rollbar Documentation\"\n[6]: http://ember-cli-deploy.com/docs/v0.6.x/pipeline-hooks/ \"Plugin Documentation\"\n[7]: http://ember-cli-deploy.com/docs/v0.6.x/configuration-overview/ \"Plugin Documentation\"\n","readmeFilename":"README.md"}