{"id":22706779,"url":"https://github.com/bigbinary/grunt-honeybadger-sourcemaps","last_synced_at":"2025-03-29T20:43:34.705Z","repository":{"id":57255125,"uuid":"105642049","full_name":"bigbinary/grunt-honeybadger-sourcemaps","owner":"bigbinary","description":"Plugin for uploading sourcemaps to honeybadger","archived":false,"fork":false,"pushed_at":"2018-07-16T06:52:36.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-03-06T04:46:37.969Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://blog.bigbinary.com/2018/07/16/how-to-upload-source-maps-to-honeybadger.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bigbinary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-03T11:05:05.000Z","updated_at":"2018-07-16T06:52:37.000Z","dependencies_parsed_at":"2022-09-04T13:01:58.600Z","dependency_job_id":null,"html_url":"https://github.com/bigbinary/grunt-honeybadger-sourcemaps","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigbinary%2Fgrunt-honeybadger-sourcemaps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigbinary%2Fgrunt-honeybadger-sourcemaps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigbinary%2Fgrunt-honeybadger-sourcemaps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigbinary%2Fgrunt-honeybadger-sourcemaps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigbinary","download_url":"https://codeload.github.com/bigbinary/grunt-honeybadger-sourcemaps/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246243565,"owners_count":20746307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-10T10:09:42.094Z","updated_at":"2025-03-29T20:43:34.685Z","avatar_url":"https://github.com/bigbinary.png","language":"JavaScript","readme":"# grunt-honeybadger-sourcemaps\n\n\u003e Plugin for uploading sourcemaps to honeybadger\n\nSee [this blog](https://blog.bigbinary.com/2018/07/16/how-to-upload-source-maps-to-honeybadger.html) for much more detailed information.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.5`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-honeybadger-sourcemaps --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-honeybadger-sourcemaps');\n```\n\n## The \"honeybadger_sourcemaps\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `honeybadger_sourcemaps` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  honeybadger_sourcemaps: {\n    default_options: {\n      options: {\n        // Task-specific options go here.\n      },\n      your_target: {\n        // Target-specific file lists and/or options go here.\n      },\n    }\n  },\n});\n```\n\n### Options\n\n#### options.appId\nType: `String`\n\nThe API key of your Honeybadger project (see the API Key tab in project settings).\n\n#### options.token\nType: `String`\n\nThe Honeybadger-Token can be used to authenticate requests from Honeybadger servers:\n\n#### options.urlPrefix\nType: `String`\n\nThe URL of your minified JavaScript file in production. \n\n### options.prepareUrlParam\nType: `function`\n\nA function to manipulate the file path.\n\n### Usage Examples\n\n#### Default Options\n```js\ngrunt.initConfig({\n  honeybadger_sourcemaps: {\n    default_options:{\n      options: {\n        appId: \"xxxx\",\n        token: \"xxxxxxxxxxxxxx\",\n        urlPrefix: \"http://example.com/\",\n        prepareUrlParam: function(fileSrc){\n          return filesrc.replace('built/', '');\n        }\n      },\n      files: [{\n        src: ['@path/to/**/*.map']\n      }],\n    }\n  },\n});\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n_(Nothing yet)_\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigbinary%2Fgrunt-honeybadger-sourcemaps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigbinary%2Fgrunt-honeybadger-sourcemaps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigbinary%2Fgrunt-honeybadger-sourcemaps/lists"}