Skip to content

Commit ea82950

Browse files
merged with master
2 parents e5fe401 + d1d6bab commit ea82950

File tree

6 files changed

+101
-10
lines changed

6 files changed

+101
-10
lines changed

.env.development

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
REACT_APP_API_DOMAIN=http://localhost:8081
1+
REACT_APP_API_DOMAIN=http://localhost:8081
2+
REACT_APP_SENTRY_DSN=

.env.production

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
REACT_APP_API_DOMAIN=https://api.com
1+
REACT_APP_API_DOMAIN=https://api.com
2+
REACT_APP_SENTRY_DSN=https://5038922f15334a3aaba9e8cd4bb588cb@o433473.ingest.sentry.io/5479254

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ language: node_js
22
node_js:
33
- 13.12.0
44
script:
5-
- npm run lint
6-
- npm run prettier
7-
- npm run test
8-
- npm run build
9-
- npm run type-check
5+
- npm run travis
106
after_success:
117
- npm run coveralls

package-lock.json

Lines changed: 82 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"dependencies": {
66
"@craco/craco": "^5.7.0",
77
"@reduxjs/toolkit": "^1.4.0",
8+
"@sentry/react": "^5.27.0",
9+
"@sentry/tracing": "^5.27.0",
810
"@testing-library/jest-dom": "^4.2.4",
911
"@testing-library/react": "^9.5.0",
1012
"@testing-library/user-event": "^7.2.1",
@@ -31,9 +33,10 @@
3133
"coveralls": "cat ./coverage/lcov.info | coveralls",
3234
"lint": "tslint -p . -c tslint.json && eslint ./src/**/*.tsx",
3335
"lint-fix": "tslint --fix -p . -c tslint.json && eslint --fix ./src/**/*.tsx",
34-
"prettier": "prettier --check ./src/**/*.{js,jsx,ts,tsx,json,less}",
35-
"prettier-fix": "prettier --write ./src/**/*.{js,jsx,ts,tsx,json,less}",
36-
"type-check": "tsc"
36+
"prettier": "prettier --check ./src/**/*.{ts,tsx,less}",
37+
"prettier-fix": "prettier --write ./src/**/*.{ts,tsx,less}",
38+
"type-check": "tsc",
39+
"travis": "npm run lint && npm run prettier && npm run test && npm run build && npm run type-check"
3740
},
3841
"browserslist": {
3942
"production": [

src/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ import ReactDOM from 'react-dom';
33
import './index.css';
44
import App from './App';
55
import * as serviceWorker from './serviceWorker';
6+
import * as Sentry from '@sentry/react';
7+
import { Integrations } from '@sentry/tracing';
8+
9+
Sentry.init({
10+
dsn: process.env.REACT_APP_SENTRY_DSN,
11+
integrations: [new Integrations.BrowserTracing()],
12+
tracesSampleRate: 1.0,
13+
});
614

715
ReactDOM.render(
816
<React.StrictMode>

0 commit comments

Comments
 (0)