Skip to content
This repository was archived by the owner on Jan 8, 2019. It is now read-only.

Commit 82eb2aa

Browse files
committed
Readying release
1 parent cf766f8 commit 82eb2aa

File tree

3 files changed

+77
-4
lines changed

3 files changed

+77
-4
lines changed

ISSUE_TEMPLATE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
### Expected behavior
2+
*[Insert details on expected behaviour]*
3+
4+
### Observed behavior
5+
*[Insert details on observed behaviour]*
6+
7+
### Steps to reproduce
8+
*[Insert reproduction steps (if known)]*
9+
10+
### Version
11+
*[Insert version information]*
12+
13+
### Additional information
14+
*[Insert any additional information]*
15+
16+
#### Can't comment on Issues?
17+
Some users have been unable to comment on Github issues when an [adblocker extension is enabled](https://docs.bugsnag.com/platforms/browsers/faq/#is-bugsnag-blocked-by-ad-blockers).
18+
We recommend temporarily disabling the extension, or if that fails, contacting support@bugsnag.com.

LICENSE.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2017 Bugsnag, https://bugsnag.com/
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the "Software"),
5+
to deal in the Software without restriction, including without limitation
6+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
7+
and/or sell copies of the Software, and to permit persons to whom the Software
8+
is furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,48 @@
22

33
A [bugsnag-js](https://github.com/bugsnag/bugsnag-js) plugin for [Vue.js](https://vuejs.org/).
44

5+
This package enables you to integrate Bugsnag's error reporting with a Vue.js application at a detailed level. It creates and configures a Vue `ErrorHandler` which will capture and report unhandled errors in your app.
6+
7+
Reported errors will contain useful debugging info from Vue's internals, such as the component name, props and any other context that Vue can provide.
8+
9+
## Installation
10+
11+
You can opt to install the package from npm, using the instructions below. Alternatively you can load the plugin from our CDN via a `<script/>` tag.
12+
13+
### CDN
14+
15+
```html
16+
<script src="//d2wy8f7a9ursnm.cloudfront.net/bugsnag-plugins/bugsnag-vue/v1/bugsnag-vue.min.js"></script>
17+
```
18+
19+
### npm
20+
21+
```sh
22+
npm i --save bugsnag-js bugsnag-vue
23+
# or
24+
yarn add bugsnag-js bugsnag-vue
25+
```
26+
527
## Usage
628

7-
### Inline
29+
Depending on how your application is structured, usage differs slightly:
30+
31+
### Inline script tag
32+
33+
The script tag creates a global function called `bugsnag__vue` which needs to be passed a reference to the Vue object. Ensure that Vue is loaded/available before calling this function.
834

935
```html
10-
<script src="https://unpkg.com/vue"></script>
11-
<script src="//d2wy8f7a9ursnm.cloudfront.net/4.x.x/bugsnag.min.js"></script>
12-
<script src="//d2wy8f7a9ursnm.cloudfront.net/bugsnag-plugin-vue/1.x.x/bugsnag-vue.min.js"></script>
1336
<script>
1437
window.bugsnagClient = bugsnag('API_KEY')
38+
// after Vue has been loaded…
1539
bugsnagClient.use(bugsnag__vue(Vue))
1640
</script>
1741
```
1842

1943
### Bundled
2044

45+
If you installed the package from npm, usage will look more like the following snippet. Again, ensure you have a reference to `Vue` before you create the plugin.
46+
2147
```js
2248
const Vue = require('vue')
2349
const bugsnag = require('bugsnag-js')
@@ -26,3 +52,13 @@ const bugsnagVue = require('bugsnag-vue')
2652
const bugsnagClient = bugsnag('API_KEY')
2753
bugsnagClient.use(bugsnagVue(Vue))
2854
```
55+
56+
## Support
57+
58+
* Check out the [documentation](https://docs.bugsnag.com/platforms/browsers/)
59+
* [Search open and closed issues](https://github.com/bugsnag/bugsnag-react/issues?q=is%3Aissue) for similar problems
60+
* [Report a bug or request a feature](https://github.com/bugsnag/bugsnag-react/issues/new)
61+
62+
## License
63+
64+
The Bugsnag JS library and official plugins are free software released under the MIT License. See [LICENSE.txt](LICENSE.txt) for details.

0 commit comments

Comments
 (0)