-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from edx/douglashall/add_logging_service
feat(package): add logging service
- Loading branch information
Showing
16 changed files
with
19,579 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"env": { | ||
"development": { | ||
"presets": [ | ||
["env", { | ||
"targets": { | ||
"browsers": ["last 2 versions", "ie 11"] | ||
} | ||
}], | ||
"babel-preset-react" | ||
], | ||
"plugins": [ | ||
"transform-object-rest-spread" | ||
] | ||
}, | ||
"test": { | ||
"presets": [ | ||
["env", { | ||
"targets": { | ||
"browsers": ["last 2 versions", "ie 11"] | ||
} | ||
}], | ||
"babel-preset-react" | ||
], | ||
"plugins": [ | ||
"transform-object-rest-spread" | ||
] | ||
}, | ||
"production": { | ||
"presets": [ | ||
["env", { | ||
"targets": { | ||
"browsers": ["last 2 versions", "ie 11"] | ||
} | ||
}], | ||
"babel-preset-react" | ||
], | ||
"plugins": [ | ||
"transform-object-rest-spread" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
coverage | ||
dist | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"extends": "eslint-config-edx", | ||
"rules": { | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": [ | ||
"webpack.config.js", | ||
"**/*.test.jsx", | ||
"**/*.test.js" | ||
] | ||
} | ||
] | ||
}, | ||
"env": { | ||
"jest": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
coverage | ||
dist | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"branch": "master", | ||
"tagFormat": "v${version}", | ||
"verifyConditions": [ | ||
"@semantic-release/npm", | ||
{ | ||
"path": "@semantic-release/github", | ||
"assets": { | ||
"path": "dist/*" | ||
} | ||
} | ||
], | ||
"analyzeCommits": "@semantic-release/commit-analyzer", | ||
"generateNotes": "@semantic-release/release-notes-generator", | ||
"prepare": "@semantic-release/npm", | ||
"publish": [ | ||
"@semantic-release/npm", | ||
{ | ||
"path": "@semantic-release/github", | ||
"assets": { | ||
"path": "dist/*" | ||
} | ||
} | ||
], | ||
"success": [], | ||
"fail": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
language: node_js | ||
node_js: | ||
- 8 | ||
cache: | ||
directories: | ||
- "~/.npm" | ||
install: | ||
- npm install | ||
script: | ||
- npm run lint | ||
- npm run test | ||
- npm run build | ||
- npm run is-es5 | ||
after_success: | ||
- npm run travis-deploy-once "npm run semantic-release" | ||
- npm run coveralls | ||
env: | ||
global: | ||
- secure: veHriCXJ4H716qK9jciVkdY6rdmSIsmvZavb9ggUk155NXsiUVGpur4L1jhTZrruDmXquSRQ00q1gaIJcjh3jxB6tuex5qSOXlikBSs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BIfc7hKWvA8qLzVEVlUtMNJj2Kbu0koK8jdg45vT8JE8bbun/i5lrE6449LyNk8nHAizAJr/U/bv2wyP6ataVFQJCXVObVG4oc4k3ZUuh91QT5XiW4RyKxeVUGMHNZlMEMFMb2Vzo3oiGo37ftAQgTU2E1hbVYA6dEmhSN3stPWsb3TXJypWpHiOUPEo= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
# frontend-logging | ||
# frontend-logging | ||
|
||
[![Build Status](https://api.travis-ci.org/edx/frontend-logging.svg?branch=master)](https://travis-ci.org/edx/frontend-logging) [![Coveralls](https://img.shields.io/coveralls/edx/frontend-logging.svg?branch=master)](https://coveralls.io/github/edx/frontend-logging) | ||
[![npm_version](https://img.shields.io/npm/v/@edx/frontend-logging.svg)](@edx/frontend-logging) | ||
[![npm_downloads](https://img.shields.io/npm/dt/@edx/frontend-logging.svg)](@edx/frontend-logging) | ||
[![license](https://img.shields.io/npm/l/@edx/frontend-logging.svg)](@edx/frontend-logging) | ||
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) | ||
|
||
|
||
frontend-logging contains a shared interface for logging errors and event to New Relic. | ||
|
||
## Usage | ||
|
||
To install frontend-logging into your project: | ||
|
||
``` | ||
npm i --save @edx/frontend-logging | ||
``` | ||
|
||
``` | ||
import LoggingService from '@edx/frontend-logging'; | ||
LoggingService.logAPIErrorResponse(e); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-angular'], | ||
}; |
Oops, something went wrong.