-
Notifications
You must be signed in to change notification settings - Fork 0
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 #17 from EOEFANS/main
add sentry to production env
- Loading branch information
Showing
12 changed files
with
2,112 additions
and
206 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,3 @@ | ||
| module.exports = { | ||
| extends: ["gitmoji"], | ||
| }; |
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,48 @@ | ||
| module.exports = { | ||
| types: [ | ||
| { | ||
| value: ":zap: feat", | ||
| name: "⚡️ feat: 新功能", | ||
| }, | ||
| { | ||
| value: ":bug: fix", | ||
| name: "🐛 fix: 修复bug", | ||
| }, | ||
| { | ||
| value: ":pencil2: docs", | ||
| name: "✏️ docs: 文档变更", | ||
| }, | ||
| { | ||
| value: ":lipstick: style", | ||
| name: "💄 style: 代码的样式美化", | ||
| }, | ||
| { | ||
| value: ":building_construction: refactor", | ||
| name: "🏗️ refactor: 重构", | ||
| }, | ||
| { | ||
| value: ":wheelchair: perf", | ||
| name: "♿️ perf: 性能优化", | ||
| }, | ||
| { | ||
| value: ":monocle_face: test", | ||
| name: "🧐 test: 测试", | ||
| }, | ||
| { | ||
| value: ":technologist: chore", | ||
| name: "🧑💻 chore: 构建/工程依赖/工具", | ||
| }, | ||
| ], | ||
| messages: { | ||
| type: "请选择提交类型(必填)", | ||
| customScope: "请输入文件修改范围(可选)", | ||
| subject: "请简要描述提交(必填)", | ||
| body: "请输入详细描述(可选)", | ||
| breaking: "列出任何BREAKING CHANGES(可选)", | ||
| footer: "请输入要关闭的issue(可选)", | ||
| confirmCommit: "确定提交此说明吗?", | ||
| }, | ||
| allowCustomScopes: true, | ||
| allowBreakingChanges: ["feat", "fix"], // 当提交类型为feat、fix时才有破坏性修改选项 | ||
| subjectLimit: 72, | ||
| }; |
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 |
|---|---|---|
|
|
@@ -23,4 +23,7 @@ dist-ssr | |
| *.sln | ||
| *.sw? | ||
|
|
||
| stats.html | ||
| stats.html | ||
|
|
||
|
|
||
| vite.config.ts.* | ||
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 @@ | ||
| #!/bin/sh | ||
|
|
||
| npx --no-install commitlint --edit "$1" |
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,9 @@ | ||
| [defaults] | ||
| url = https://sentry.vtb.link | ||
| org = eoefans | ||
| project = eoefans-web | ||
|
|
||
|
|
||
|
|
||
| [auth] | ||
| token = 78eaf826e5e2483d9f64db473183b2894c80b247893e40a8b990f54c35fec9e5 |
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,10 +1,23 @@ | ||
| import fs from "fs"; | ||
| import path from "path"; | ||
|
|
||
| fs.cp( | ||
| "./dist/EOEFANS/eoefans-web/assets", | ||
| "./dist/assets", | ||
| { recursive: true }, | ||
| (err) => { | ||
| console.log(err); | ||
| /** | ||
| * delete source map after upload to sentry | ||
| */ | ||
| const filePath = `./dist/assets/`; | ||
| const fileList = fs.readdirSync(filePath); | ||
| fileList.forEach((file) => { | ||
| const full_name_file = path.join(filePath, file); | ||
| if (path.extname(full_name_file) === ".map") { | ||
| fs.unlinkSync(full_name_file); | ||
| } | ||
| ); | ||
| }); | ||
|
|
||
| // fs.cp( | ||
| // "./dist/EOEFANS/eoefans-web/assets", | ||
| // "./dist/assets", | ||
| // { recursive: true }, | ||
| // (err) => { | ||
| // console.log(err); | ||
| // } | ||
| // ); |
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,58 +1,75 @@ | ||
| { | ||
| "name": "eoefans-web", | ||
| "version": "0.0.0", | ||
| "version": "0.0.1", | ||
| "type": "module", | ||
| "scripts": { | ||
| "dev": "vite", | ||
| "build": "tsc && vite build && node build.js", | ||
| "preview": "vite preview", | ||
| "localdev": "vite --host 192.168.2.250" | ||
| "commit": "cz" | ||
| }, | ||
| "config": { | ||
| "commitizen": { | ||
| "path": "node_modules/cz-customizable" | ||
| }, | ||
| "cz-customizable": { | ||
| "config": ".cz-config.cjs" | ||
| } | ||
| }, | ||
| "dependencies": { | ||
| "@dnd-kit/core": "^6.0.7", | ||
| "@dnd-kit/modifiers": "^6.0.1", | ||
| "@dnd-kit/sortable": "^7.0.2", | ||
| "@dnd-kit/utilities": "^3.2.1", | ||
| "@emotion/react": "^11.10.5", | ||
| "@emotion/styled": "^11.10.5", | ||
| "@mui/icons-material": "^5.11.0", | ||
| "@emotion/react": "^11.10.6", | ||
| "@emotion/styled": "^11.10.6", | ||
| "@mui/icons-material": "^5.11.9", | ||
| "@mui/lab": "5.0.0-alpha.119", | ||
| "@mui/material": "^5.11.3", | ||
| "@reduxjs/toolkit": "^1.9.1", | ||
| "axios": "^1.2.3", | ||
| "@mui/material": "^5.11.9", | ||
| "@reduxjs/toolkit": "^1.9.2", | ||
| "@sentry/react": "^7.37.2", | ||
| "@sentry/tracing": "^7.37.2", | ||
| "axios": "^1.3.3", | ||
| "dayjs": "^1.11.7", | ||
| "intersection-observer": "^0.12.2", | ||
| "json-bigint": "^1.0.0", | ||
| "loading-attribute-polyfill": "^2.1.0", | ||
| "masonic": "^3.7.0", | ||
| "material-ui-popup-state": "^5.0.4", | ||
| "nanoid": "^4.0.0", | ||
| "nanoid": "^4.0.1", | ||
| "normalize.css": "^8.0.1", | ||
| "react": "^18.2.0", | ||
| "react-dom": "^18.2.0", | ||
| "react-flip-toolkit": "^7.0.17", | ||
| "react-intersection-observer": "^9.4.1", | ||
| "react-intersection-observer": "^9.4.2", | ||
| "react-photo-view": "^1.2.3", | ||
| "react-redux": "^8.0.5", | ||
| "react-router-dom": "^6.6.1", | ||
| "react-router-dom": "^6.8.1", | ||
| "react-use": "^17.4.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@babel/core": ">=7.0.0 <8.0.0", | ||
| "@babel/core": "^7.20.12", | ||
| "@types/imagesloaded": "^4.1.2", | ||
| "@types/json-bigint": "^1.0.1", | ||
| "@types/node": "^18.11.18", | ||
| "@types/react": "^18.0.26", | ||
| "@types/react-dom": "^18.0.9", | ||
| "@types/node": "^18.13.0", | ||
| "@types/react": "^18.0.28", | ||
| "@types/react-dom": "^18.0.11", | ||
| "@types/react-lazy-load-image-component": "^1.5.2", | ||
| "@vitejs/plugin-legacy": "^4.0.1", | ||
| "@vitejs/plugin-react-swc": "^3.0.0", | ||
| "@vitejs/plugin-react-swc": "^3.1.0", | ||
| "commitizen": "^4.3.0", | ||
| "commitlint": "^17.4.3", | ||
| "commitlint-config-gitmoji": "^2.3.1", | ||
| "cz-conventional-changelog": "^3.3.0", | ||
| "cz-customizable": "^7.0.0", | ||
| "husky": "^8.0.3", | ||
| "less": "^4.1.3", | ||
| "rollup-plugin-visualizer": "^5.9.0", | ||
| "terser": ">=5.4.0 <6.0.0", | ||
| "typescript": "^4.9.3", | ||
| "terser": "^5.16.3", | ||
| "typescript": "^4.9.5", | ||
| "vite": "4.1.1", | ||
| "vite-plugin-compression": "^0.5.1", | ||
| "vite-plugin-html": "^3.2.0" | ||
| "vite-plugin-html": "^3.2.0", | ||
| "vite-plugin-sentry": "^1.1.7" | ||
| } | ||
| } |
Oops, something went wrong.