Skip to content

Update Ember plugin docs #507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2016

Conversation

joeyespo
Copy link
Contributor

This is based on the Angular docs, but suited for Ember / Ember CLI.

@benvinegar
Copy link
Contributor

👍

Thanks for the PR! Will review this soon.

@joeyespo
Copy link
Contributor Author

Thanks, @benvinegar!


.. code-block:: javascript

Raven.config('___PUBLIC_DSN___').install()
app.import('node_modules/raven-js/dist/raven.js');
app.import('bower_components/raven-js/dist/plugins/ember.js');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be node_modules

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ember CLI actually uses Bower. Fixed in 1bece62.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I squashed this fix btw and rebased the PR onto latest master.

@benvinegar
Copy link
Contributor

Was there any reason you omitted the CommonJS instructions (from the Angular docs)? Do they not apply?

This is based on the Angular docs, but suited for Ember / Ember CLI.
@joeyespo joeyespo force-pushed the update-ember-plugin-docs branch from a53a86a to 1bece62 Compare February 16, 2016 05:14
@joeyespo
Copy link
Contributor Author

@benvinegar Yeah, it seems like noise at this point. Raven should be loaded before your application code so an initialization bug doesn't slip by, so this documents how to do just that.

@benvinegar
Copy link
Contributor

Raven should be loaded before your application code so an initialization bug doesn't slip by, so this documents how to do just that.

You can still use Raven.js + CommonJS using a bundler (e.g. webpack/browserify), and still initialize it before your application runs. This is how we run Raven.js on getsentry.com.

benvinegar added a commit that referenced this pull request Feb 19, 2016
@benvinegar benvinegar merged commit 798d219 into getsentry:master Feb 19, 2016
@joeyespo
Copy link
Contributor Author

You can still use Raven.js + CommonJS using a bundler (e.g. webpack/browserify), and still initialize it before your application runs.

Good point. I'm sure there's a better way than what I have here.

@joeyespo joeyespo deleted the update-ember-plugin-docs branch February 19, 2016 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants