![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ember-cli-deploy-rollbar-sourcemap
Advanced tools
ember-cli-deploy addon that uploads source maps to Rollbar's API
An ember-cli-deploy plugin that uploads your source maps to Rollbar.
This plugin uploads generated source maps to the 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
.
You can take a look here how Rollbar defines its flow with source maps
This library was adapted from @netguru's ember-cli-deploy-rollbar and ember-cli-deploy-bugsnag.
A 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.
For more information on what plugins are and how they work, please refer to the Plugin Documentation.
To get up and running quickly, do the following:
Ensure ember-cli-deploy-build is installed and configured
Ensure ember-cli-deploy-revision-data is installed and configured
Install this plugin
$ ember install ember-cli-deploy-rollbar-sourcemap
ember-cli-build.js
:/* jshint node:true */
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
// …
sourcemaps: {
enabled: true, // This allows sourcemaps to be generated in all environments
extensions: ['js']
}
});
$ ember deploy
Run the following command in your terminal:
ember install ember-cli-deploy-rollbar-sourcemap
For detailed information on what plugin hooks are and how they work, please refer to the Plugin Documentation.
willUpload
(inject Rollbar snippet)upload
(upload source maps)didDeploy
(send information about deploy to Rollbar)For detailed information on how configuration of plugins works, please refer to the Plugin Documentation.
Configure this addon in your deploy.js
ENV
:
'rollbar-sourcemap': {
accessServerToken: process.env.ROLLBAR_SERVER_ACCESS_TOKEN,
},
Rollbar server access token to allow uploading source maps to your account.
The fully qualified domain name for your application e.g., https://app.fancy-app.com
Defines internal enabled
Rollbar config.
Default: true
Alternatives: false
Defines internal environment
Rollbar config.
Default: environment setting from ember-cli-deploy-build || production
Alternatives: any other env
Defines internal captureUncaught
Rollbar config.
Default: true
Alternatives: false
Rollbar local_username
config that is displayed in Deploys section.
Default: unknown user
Alternatives: any string or function returning string
Defines the URI to download the Rollbar JS file.
Default: https://d37gvrvc0wt4s1.cloudfront.net/js/v1.8/rollbar.min.js
Alternatives: any string that points to the file (e.g. https://mycdn.com/js/rollbar.min.js)
Defines additional sourcemap files to be uploaded to Rollbar. Use this if you build .js files other than projectName.js
and vendor.js
.
Set 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']
.
Default: []
Alternatives: an array of filenames without extensions
The following properties are expected to be present on the deployment context
object:
distDir
(provided by ember-cli-deploy-build)distFiles
(provided by ember-cli-deploy-build)revisionData
(provided by ember-cli-deploy-revision-data)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.git clone https://github.com/netguru/ember-cli-deploy-rollbar-sourcemap
cd my-addon
npm install
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versionsember serve
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.
FAQs
ember-cli-deploy addon that uploads source maps to Rollbar's API
We found that ember-cli-deploy-rollbar-sourcemap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.