1 Star 1 Fork 1

coolphk/webpack5-mobx6-typescript

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
package.json 5.82 KB
一键复制 编辑 原始数据 按行查看 历史
shanghaitao 提交于 2020-11-14 16:36 . use webpack@v5 & react@v17
{
"name": "ts-react-webpack",
"version": "1.0.0",
"description": "an admin starter-template with typescript, react, mobx and webpack...",
"main": "index.js",
"scripts": {
"test": "jest",
"add": "add-component",
"lint-staged": "lint-staged",
"lint": "eslint src --ext .ts,.tsx && stylelint \"./src/**/*.scss\"",
"dev": "cross-env NODE_ENV=development APP_ENV=dev webpack serve --config build/webpack.config.js",
"build": "cross-env NODE_ENV=production webpack --config build/webpack.config.js",
"build:qa": "cross-env APP_ENV=qa npm run build",
"build:prod": "cross-env APP_ENV=prod npm run build"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"keywords": [
"webpack",
"typescript",
"admin",
"react",
"mobx",
"starter-template"
],
"author": "jackple",
"license": "MIT",
"dependencies": {
"@loadable/component": "5.14.1",
"@superwf/mobx-react-router": "6.0.0",
"antd": "4.8.2",
"axios": "0.21.0",
"bourbon": "7.0.0",
"eventemitter3": "4.0.7",
"lodash": "4.17.20",
"mobx": "6.0.4",
"mobx-react": "7.0.5",
"path-to-regexp": "6.2.0",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-intl-universal": "2.4.2",
"react-json-view": "1.19.1",
"react-router-dom": "5.2.0",
"react-virtualized": "9.22.2",
"socket.io-client": "2.3.0",
"socketio-wildcard": "2.0.0"
},
"devDependencies": {
"@babel/core": "7.12.3",
"@babel/plugin-proposal-class-properties": "7.12.1",
"@babel/plugin-proposal-decorators": "7.12.1",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "7.12.1",
"@babel/preset-react": "7.12.5",
"@babel/preset-typescript": "7.12.1",
"@commitlint/cli": "11.0.0",
"@commitlint/config-conventional": "11.0.0",
"@svgr/webpack": "5.4.0",
"@types/classnames": "2.2.11",
"@types/enzyme": "3.10.8",
"@types/enzyme-adapter-react-16": "^1.0.5",
"@types/jest": "26.0.15",
"@types/loadable__component": "5.13.1",
"@types/lodash": "4.14.165",
"@types/node": "14.14.7",
"@types/qs": "6.9.5",
"@types/react": "16.9.56",
"@types/react-dom": "16.9.9",
"@types/react-router-dom": "5.1.6",
"@types/react-virtualized": "9.21.10",
"@types/socket.io-client": "1.4.34",
"@types/webpack-env": "1.15.3",
"@typescript-eslint/eslint-plugin": "4.7.0",
"@typescript-eslint/parser": "4.7.0",
"autoprefixer": "10.0.2",
"babel-loader": "8.2.1",
"babel-plugin-import": "1.13.1",
"cache-loader": "4.1.0",
"case-sensitive-paths-webpack-plugin": "^2.2.0",
"classnames": "^2.2.6",
"core-js": "3.7.0",
"cross-env": "7.0.2",
"css-loader": "5.0.1",
"customaddcomponents": "^1.0.35",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "1.15.5",
"enzyme-to-json": "3.6.1",
"eslint": "7.13.0",
"eslint-config-prettier": "6.15.0",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "7.21.5",
"file-loader": "6.2.0",
"fork-ts-checker-webpack-plugin": "^6.0.1",
"fs-extra": "9.0.1",
"html-webpack-plugin": "next",
"husky": "4.3.0",
"identity-obj-proxy": "^3.0.0",
"jest": "26.6.3",
"less": "3.12.2",
"less-loader": "7.1.0",
"lint-staged": "10.5.1",
"mini-css-extract-plugin": "1.3.1",
"moment-locales-webpack-plugin": "1.2.0",
"postcss": "^8.1.7",
"postcss-loader": "4.0.4",
"prettier": "2.1.2",
"prettier-stylelint": "^0.4.2",
"raf": "^3.4.1",
"react-dev-utils": "11.0.0",
"sass": "^1.29.0",
"sass-loader": "10.1.0",
"style-loader": "2.0.0",
"stylelint": "13.7.2",
"stylelint-config-prettier": "8.0.2",
"stylelint-order": "4.1.0",
"stylelint-prettier": "^1.1.1",
"terser-webpack-plugin": "5.0.3",
"thread-loader": "3.0.1",
"ts-jest": "26.4.4",
"tsconfig-paths-webpack-plugin": "3.3.0",
"typed-css-modules-webpack-plugin": "0.2.0",
"typescript": "^4.0.5",
"url-loader": "4.1.1",
"webpack": "5.4.0",
"webpack-bundle-analyzer": "4.1.0",
"webpack-cli": "4.2.0",
"webpack-dev-server": "3.11.0",
"webpack-hot-middleware": "^2.25.0",
"workbox-webpack-plugin": "6.0.0-alpha.3"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 11"
],
"jest": {
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"setupFiles": [
"raf/polyfill"
],
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
"setupFilesAfterEnv": [
"<rootDir>src/setupTests.ts"
],
"snapshotSerializers": [
"enzyme-to-json"
],
"moduleNameMapper": {
"\\.(css|less|scss|svg|jpg|jpeg|png|gif)$": "identity-obj-proxy",
"^@constants/(.*)$": "<rootDir>/src/constants//$1",
"^@services/(.*)$": "<rootDir>/src/services//$1",
"^@utils/(.*)$": "<rootDir>/src/utils//$1",
"^@assets/(.*)$": "<rootDir>/src/assets//$1",
"^@components/(.*)$": "<rootDir>/src/components//$1",
"^@views/(.*)$": "<rootDir>/src/containers/views//$1",
"^@shared/(.*)$": "<rootDir>/src/containers/shared//$1"
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lphkasl/webpack5-mobx6-typescript.git
[email protected]:lphkasl/webpack5-mobx6-typescript.git
lphkasl
webpack5-mobx6-typescript
webpack5-mobx6-typescript
master

搜索帮助