ember-cli-deploy-airbrake-sourcemap
An ember-cli-deploy-plugin to upload javascript sourcemaps to Airbrake.
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.
Installation
ember install ember-cli-deploy-airbrake-sourcemap
Quick start
To get up and running quickly, do the following:
Enable sourcemaps for all environments in ember-cli-build.js
:
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
let app = new EmberApp(defaults, {
sourcemaps: {
enabled: true,
extensions: ['js']
}
});
Set Bugsnag options in your config/deploy.js
. The following example assumes the values for the options will be set as environment variables on your server.
module.exports = function(deployTarget) {
ENV['airbrake-sourcemap'] = {
projectId: process.env.AIRBRAKE_PROJECT_ID,
projectKey: process.env.AIRBRAKE_PROJECT_KEY,
publicUrl: 'https://my.example.com'
};
return ENV;
};
Linting
npm run lint:hbs
npm run lint:js
npm run lint:js -- --fix
Running tests
ember test
– Runs the test suite on the current Ember version
ember test --server
– Runs the test suite in "watch mode"
ember try:each
– Runs the test suite against multiple Ember versions
Running the dummy application
For more information on using ember-cli, visit https://ember-cli.com/.
License
This project is licensed under the MIT License.