初始化项目
parents
Showing
.babelrc
0 → 100644
.env
0 → 100644
.eslintignore
0 → 100644
.eslintrc.js
0 → 100644
.gitignore
0 → 100644
.npmrc
0 → 100644
.prettierignore
0 → 100644
.prettierrc
0 → 100644
.stylelintrc.json
0 → 100644
README.md
0 → 100644
build/webpack.base.config.ts
0 → 100644
build/webpack.dev.config.ts
0 → 100644
build/webpack.prod.config.ts
0 → 100644
package-lock.json
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
package.json
0 → 100644
{ | ||
"name": "base-react-ts-web", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"preinstall": "only-allow npm", | ||
"dev": "cross-env ENV=local NODE_ENV=development node --no-deprecation node_modules/webpack-dev-server/bin/webpack-dev-server.js --config build/webpack.dev.config.ts", | ||
"build": "cross-env ENV=prod NODE_ENV=production webpack --config build/webpack.prod.config.ts", | ||
"fix": "eslint --fix" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@gitlab.viz-cloud.top:fe/product/ig-packag-manage-web.git" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@babel/core": "^7.18.6", | ||
"@babel/plugin-transform-modules-commonjs": "^7.18.6", | ||
"@babel/plugin-transform-runtime": "^7.18.6", | ||
"@babel/preset-env": "^7.18.6", | ||
"@babel/preset-react": "^7.18.6", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@types/koa": "^2.13.5", | ||
"@types/koa-static": "^4.0.2", | ||
"@types/lodash": "^4.14.182", | ||
"@types/progress-bar-webpack-plugin": "^2.1.2", | ||
"@types/react": "^18.0.15", | ||
"@types/react-dom": "^18.0.6", | ||
"@types/styled-components": "^5.1.25", | ||
"@types/unused-webpack-plugin": "^2.4.2", | ||
"@types/webpack-bundle-analyzer": "^4.4.1", | ||
"@typescript-eslint/eslint-plugin": "^5.30.5", | ||
"@typescript-eslint/parser": "^5.30.5", | ||
"add-asset-html-webpack-plugin": "^5.0.2", | ||
"autoprefixer": "^10.4.7", | ||
"babel-loader": "^8.2.5", | ||
"babel-plugin-import": "^1.13.5", | ||
"clean-webpack-plugin": "^4.0.0", | ||
"copy-webpack-plugin": "^11.0.0", | ||
"cross-env": "^7.0.3", | ||
"css-loader": "^6.7.1", | ||
"css-minimizer-webpack-plugin": "^4.0.0", | ||
"dotenv": "^16.0.1", | ||
"eslint": "^8.19.0", | ||
"eslint-config-standard": "^17.0.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-import-helpers": "^1.2.1", | ||
"eslint-plugin-n": "^15.2.4", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-react": "^7.30.1", | ||
"eslint-webpack-plugin": "^3.2.0", | ||
"file-loader": "^6.2.0", | ||
"html-webpack-plugin": "^5.5.0", | ||
"less": "^4.1.3", | ||
"less-loader": "^11.0.0", | ||
"mini-css-extract-plugin": "^2.6.1", | ||
"node-loader": "^2.0.0", | ||
"nodemon": "^2.0.20", | ||
"only-allow": "^1.1.1", | ||
"postcss-loader": "^7.0.0", | ||
"postcss-preset-env": "^7.7.2", | ||
"progress-bar-webpack-plugin": "^2.1.0", | ||
"style-loader": "^3.3.1", | ||
"stylelint-config-standard": "^26.0.0", | ||
"terser-webpack-plugin": "^5.3.3", | ||
"ts-node": "^10.8.2", | ||
"typescript": "^4.7.4", | ||
"unused-webpack-plugin": "^2.4.0", | ||
"webpack": "^5.73.0", | ||
"webpack-bundle-analyzer": "^4.5.0", | ||
"webpack-cli": "^4.10.0", | ||
"webpack-dev-server": "^4.9.3", | ||
"webpack-merge": "^5.8.0" | ||
}, | ||
"dependencies": { | ||
"@arco-design/mobile-react": "^2.21.2", | ||
"@reduxjs/toolkit": "^1.8.3", | ||
"ahooks": "^3.5.2", | ||
"axios": "^0.27.2", | ||
"lodash": "^4.17.21", | ||
"rc-tween-one": "^3.0.6", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-redux": "^8.0.2", | ||
"react-router-dom": "^6.3.0", | ||
"redux-persist": "^6.0.0", | ||
"styled-components": "^5.3.5" | ||
}, | ||
"engines": { | ||
"node": "18.x || 16.x" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [ | ||
"eslint --fix", | ||
"git add" | ||
] | ||
} | ||
} |
public/.gitKeep
0 → 100644
src/components/.gitkeep
0 → 100644
src/config/config.ts
0 → 100644
src/config/index.ts
0 → 100644
src/hooks/useParams.ts
0 → 100644
src/hooks/useRequest.ts
0 → 100644
src/hooks/useStore.ts
0 → 100644
src/index.html
0 → 100644
src/layouts/BaseLayout.tsx
0 → 100644
src/less/main.less
0 → 100644
src/less/reset.less
0 → 100644
src/main.tsx
0 → 100644
src/pages/GameRoomTools/index.tsx
0 → 100644
src/pages/GameRoomTools/services.ts
0 → 100644
src/pages/Home/index.tsx
0 → 100644
This diff is collapsed.
Click to expand it.
src/pages/Home/services.ts
0 → 100644
src/pages/Login/common/services.ts
0 → 100644
src/pages/Login/index.tsx
0 → 100644
src/router/AuthRouter.tsx
0 → 100644
src/router/index.tsx
0 → 100644
src/router/interface/index.ts
0 → 100644
src/services/common.ts
0 → 100644
src/store/index.ts
0 → 100644
src/store/user.ts
0 → 100644
src/typings/images.d.ts
0 → 100644
src/typings/index.d.ts
0 → 100644
src/typings/login.ts
0 → 100644
src/utils/lazyLoad.tsx
0 → 100644
src/utils/request.ts
0 → 100644
src/utils/utils.ts
0 → 100644
tsconfig.json
0 → 100644
Please
register
or
sign in
to comment