Skip to content

Commit

Permalink
feat: 添加sentry完成
Browse files Browse the repository at this point in the history
  • Loading branch information
camera-2018 committed Feb 5, 2023
1 parent cc95c22 commit 75db683
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
registry: https://registry.npm.taobao.org
ENTRYCLI_CDNURL: https://cdn.npm.taobao.org/dist/sentry-cli
sentrycli_cdnurl: https://cdn.npm.taobao.org/dist/sentry-cli
1 change: 1 addition & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist
.output
.nuxt
.env
.sentryclirc
6 changes: 4 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
"version": "1.0.0",
"private": true,
"scripts": {
"build": "nuxi build",
"build": "nuxi build && sentry-cli releases files 1.0.0 upload-sourcemaps .nuxt/dist/client/_nuxt",
"dev": "nuxi dev",
"start": "node .output/server/index.mjs",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"generate": "nuxi generate",
"typecheck": "tsc --noEmit --incremental false",
"lint:strict": "eslint --max-warnings=0 ."
"lint:strict": "eslint --max-warnings=0 .",
"sentry": "sentry-cli releases files 1.0.0 upload-sourcemaps .nuxt/dist/client/_nuxt"
},
"dependencies": {
"@nuxt/image": "^0.7.1",
Expand All @@ -36,6 +37,7 @@
"@iconify-json/twemoji": "^1.1.5",
"@nuxtjs/color-mode": "^3.2.0",
"@pinia/nuxt": "^0.4.3",
"@sentry/cli": "^2.12.0",
"@types/marked": "^4.0.8",
"@unocss/nuxt": "^0.46.5",
"@vueuse/nuxt": "^9.5.0",
Expand Down
7 changes: 5 additions & 2 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
"lint:fix": {},
"lint:strict": {},
"typecheck": {},
"dev": {},
"dev": {
"persistent": true
},
"start": {},
"generate": {}
"generate": {},
"sentry":{}
}
}
18 changes: 17 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2669,6 +2669,17 @@
"@sentry/utils" "7.36.0"
tslib "^1.9.3"

"@sentry/cli@^2.12.0":
version "2.12.0"
resolved "https://registry.npmmirror.com/@sentry/cli/-/cli-2.12.0.tgz#425c044b71648786f8e0a2db38603e510d002a1f"
integrity sha512-EHDZVaje1Vkm0sygVyKuUtQgTw7OFzgysBXjwEad6BgZVPTtF46v0eizCrBK9jwA1P30logf76D1u+eULaSDDw==
dependencies:
https-proxy-agent "^5.0.0"
node-fetch "^2.6.7"
progress "^2.0.3"
proxy-from-env "^1.1.0"
which "^2.0.2"

"@sentry/core@6.19.7":
version "6.19.7"
resolved "https://registry.npmmirror.com/@sentry/core/-/core-6.19.7.tgz"
Expand Down Expand Up @@ -14220,6 +14231,11 @@ process@^0.11.10:
resolved "https://registry.npmmirror.com/process/-/process-0.11.10.tgz"
integrity sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==

progress@^2.0.3:
version "2.0.3"
resolved "https://registry.npmmirror.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==

prop-types@^15.5.8, prop-types@^15.6.0, prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.7.2, prop-types@^15.8.1:
version "15.8.1"
resolved "https://registry.npmmirror.com/prop-types/-/prop-types-15.8.1.tgz"
Expand Down Expand Up @@ -17835,7 +17851,7 @@ which@^1.2.14, which@^1.2.9:
dependencies:
isexe "^2.0.0"

which@^2.0.1:
which@^2.0.1, which@^2.0.2:
version "2.0.2"
resolved "https://registry.npmmirror.com/which/-/which-2.0.2.tgz"
integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
Expand Down

0 comments on commit 75db683

Please sign in to comment.