npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@boundless-inc/ember-cli-deploy-rollbar

v1.4.0

Published

ember-cli-deploy addon that integrates Rollbar to your index.html file and uploads source maps to Rollbar API

Downloads

1

Readme

Build Status

ember-cli-deploy-rollbar

An ember-cli-deploy plugin that first integrates Rollbar to your application and second uploads your source maps to Rollbar.

This 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.

You can take a look here how Rollbar defines its flow with source maps

What is an ember-cli-deploy plugin?

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.

Quick Start

To get up and running quickly, do the following:

$ ember install ember-cli-deploy-rollbar
  • Run the pipeline
$ ember deploy

Installation

Run the following command in your terminal:

ember install ember-cli-deploy-rollbar

ember-cli-deploy Hooks Implemented

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)

Configuration Options

For detailed information on how configuration of plugins works, please refer to the Plugin Documentation.

accessToken (required)

Rollbar client access token to trigger errors.

accessServerToken (required)

Rollbar server access token to allow uploading source maps to your account.

minifiedPrependUrl (required)

Rollbar 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.

This 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:

minifiedPrependUrl: function(context) {
  return [
    'https://dev.example.com/' + context.revisionData.revisionKey + '/',
    'https://app.example.com/'
  ];
}

enabled

Defines internal enabled Rollbar config.

Default: true Alternatives: false

environment

Defines internal environment Rollbar config.

Default: environment setting from ember-cli-deploy-build || production Alternatives: any other env

captureUncaught

Defines internal captureUncaught Rollbar config.

Default: true Alternatives: false

username

Rollbar local_username config that is displayed in Deploys section.

Default: unknown user Alternatives: any string or function returning string

rollbarFileURI

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)

additionalFiles

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

Prerequisites

The following properties are expected to be present on the deployment context object:

Plugins known to work well with this one

Known issues

  • 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.
  • If you are using gzipping, make sure that you are not gzipping source maps - Rollbar will not accept gzipped files.
  • 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.