Skip to content

Commit 9018a5c

Browse files
committed
Configure source map upload to Sentry.io
1 parent 0890cd0 commit 9018a5c

File tree

3 files changed

+245
-12
lines changed

3 files changed

+245
-12
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ pnpm-debug.log*
3333

3434
# Development debug pages
3535
/src/pages/debug
36+
37+
# Sentry Config File
38+
.sentryclirc

package-lock.json

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

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",
7-
"build": "vue-cli-service build --mode production",
7+
"build": "vue-cli-service build --mode production && npm run sentry:sourcemaps",
88
"build_staging": "NODE_ENV=production vue-cli-service build --mode staging",
99
"make_tar": "scripts/make_dist_tar.sh $npm_package_version prod",
1010
"make_tar_staging": "scripts/make_dist_tar.sh $npm_package_version staging",
1111
"test:unit": "vue-cli-service test:unit",
1212
"lint": "vue-cli-service lint",
13-
"dbg": "webpack -h"
13+
"dbg": "webpack -h",
14+
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org csg --project bravo-vue ./dist && sentry-cli sourcemaps upload --org csg --project bravo-vue ./dist"
1415
},
1516
"dependencies": {
1617
"@coreui/vue": "^4.4.0",
1718
"@fortawesome/fontawesome-svg-core": "^1.2.36",
1819
"@fortawesome/free-regular-svg-icons": "^5.15.4",
1920
"@fortawesome/free-solid-svg-icons": "^5.15.4",
2021
"@fortawesome/vue-fontawesome": "^3.0.0-4",
22+
"@sentry/cli": "^2.53.0",
2123
"@sentry/vue": "^10.11.0",
2224
"@vue/cli": "^5.0.0-rc.0",
2325
"axios": "^1.7.7",
@@ -107,4 +109,4 @@
107109
"last 2 versions",
108110
"not dead"
109111
]
110-
}
112+
}

0 commit comments

Comments
 (0)