Skip to content

Commit

Permalink
⚡ feat(custom): 添加entry
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #15
  • Loading branch information
master1lan committed Feb 17, 2023
1 parent e2db505 commit ca939da
Show file tree
Hide file tree
Showing 8 changed files with 493 additions and 150 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ dist-ssr
*.sln
*.sw?

stats.html
stats.html


vite.config.ts.*
4 changes: 4 additions & 0 deletions .sentryclirc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[auth]
token=78eaf826e5e2483d9f64db473183b2894c80b247893e40a8b990f54c35fec9e5
[defaults]
url=https://sentry.vtb.link
27 changes: 20 additions & 7 deletions build.js
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);
// }
// );
37 changes: 20 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eoefans-web",
"version": "0.0.0",
"version": "0.0.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand All @@ -21,40 +21,43 @@
"@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",
"@sentry/vite-plugin": "^0.4.0",
"@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",
Expand All @@ -63,8 +66,8 @@
"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"
Expand Down
Loading

0 comments on commit ca939da

Please sign in to comment.