-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Update Ember plugin docs #507
Conversation
👍 Thanks for the PR! Will review this soon. |
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'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be node_modules
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
.
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.
a53a86a
to
1bece62
Compare
@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. |
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. |
Good point. I'm sure there's a better way than what I have here. |
This is based on the Angular docs, but suited for Ember / Ember CLI.