package.json 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. {
  2. "name": "labeling-tool-front",
  3. "version": "1.0.0",
  4. "description": "an admin starter-template with typescript, react, mobx and webpack...",
  5. "main": "index.js",
  6. "sideEffects": [
  7. "src/**",
  8. "node_modules/@ant-design/**",
  9. "node_modules/antd/**",
  10. "node_modules/lodash-es/**"
  11. ],
  12. "scripts": {
  13. "start": "cross-env NODE_ENV=development APP_ENV=dev webpack serve --config config/webpack.config.js",
  14. "lint:eslint": "eslint --fix -c .eslintrc.js --ext .ts,.tsx,.js,.jsx src",
  15. "lint:stylelint": "stylelint --fix --config .stylelintrc.js src/**/*.{less,css,scss}",
  16. "build": "cross-env NODE_ENV=production webpack --config config/webpack.config.js",
  17. "build:qa": "cross-env APP_ENV=qa npm run build",
  18. "build:prod": "cross-env APP_ENV=prod npm run build"
  19. },
  20. "keywords": [
  21. "webpack",
  22. "typescript",
  23. "admin",
  24. "react",
  25. "mobx",
  26. "starter-template"
  27. ],
  28. "husky": {
  29. "hooks": {
  30. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  31. }
  32. },
  33. "author": "jackple",
  34. "dependencies": {
  35. "@babel/plugin-transform-runtime": "^7.12.17",
  36. "@loadable/component": "5.15.0",
  37. "@superwf/mobx-react-router": "6.0.0",
  38. "ahooks": "^2.10.11",
  39. "antd": "4.16.9",
  40. "antd-mobile": "^2.3.4",
  41. "axios": "^0.21.1",
  42. "bourbon": "7.0.0",
  43. "copy-webpack-plugin": "^9.0.1",
  44. "crypto-js": "^4.1.1",
  45. "css-loader": "^1.0.0",
  46. "dotenv": "^10.0.0",
  47. "dotenv-expand": "^5.1.0",
  48. "eventemitter3": "4.0.7",
  49. "express": "^4.17.1",
  50. "label-studio": "^1.0.1",
  51. "lodash-es": "^4.17.21",
  52. "nprogress": "^0.2.0",
  53. "path-to-regexp": "6.2.0",
  54. "polished": "^4.1.3",
  55. "prop-types": "^15.7.2",
  56. "query-string": "^7.0.1",
  57. "react": "17.0.2",
  58. "react-document-title": "^2.0.3",
  59. "react-dom": "17.0.2",
  60. "react-intl-universal": "2.4.8",
  61. "react-json-view": "1.21.3",
  62. "react-router-dom": "5.2.0",
  63. "react-virtualized": "9.22.3",
  64. "recoil": "^0.4.1",
  65. "socket.io-client": "2.3.0",
  66. "socketio-wildcard": "2.0.0",
  67. "styled-components": "^5.3.1",
  68. "tslib": "^2.3.1",
  69. "tslint": "^6.1.3",
  70. "webpack-api-mocker": "^1.7.6"
  71. },
  72. "devDependencies": {
  73. "@babel/core": "^7.15.5",
  74. "@babel/helper-builder-react-jsx": "^7.15.4",
  75. "@babel/node": "^7.15.4",
  76. "@babel/plugin-proposal-class-properties": "7.14.5",
  77. "@babel/plugin-proposal-decorators": "7.14.5",
  78. "@babel/plugin-proposal-optional-chaining": "^7.13.12",
  79. "@babel/plugin-syntax-dynamic-import": "^7.2.0",
  80. "@babel/plugin-transform-react-constant-elements": "^7.12.13",
  81. "@babel/plugin-transform-react-inline-elements": "^7.12.13",
  82. "@babel/plugin-transform-runtime": "^7.12.17",
  83. "@babel/preset-env": "7.14.8",
  84. "@babel/preset-react": "7.14.5",
  85. "@babel/preset-typescript": "7.14.5",
  86. "@babel/runtime": "^7.13.10",
  87. "@babel/runtime-corejs3": "^7.13.10",
  88. "@commitlint/cli": "13.1.0",
  89. "@commitlint/config-conventional": "13.1.0",
  90. "@svgr/webpack": "5.5.0",
  91. "@types/classnames": "2.3.1",
  92. "@types/crypto-js": "^4.0.1",
  93. "@types/enzyme": "3.10.9",
  94. "@types/enzyme-adapter-react-16": "^1.0.5",
  95. "@types/express": "^4.17.11",
  96. "@types/jest": "26.0.24",
  97. "@types/loadable__component": "5.13.4",
  98. "@types/lodash": "4.14.171",
  99. "@types/lodash-es": "^4.17.4",
  100. "@types/mockjs": "^1.0.3",
  101. "@types/node": "16.4.8",
  102. "@types/nprogress": "^0.2.0",
  103. "@types/qs": "6.9.7",
  104. "@types/react": "17.0.15",
  105. "@types/react-dom": "17.0.9",
  106. "@types/react-router-dom": "5.1.8",
  107. "@types/react-virtualized": "9.21.12",
  108. "@types/socket.io-client": "1.4.34",
  109. "@types/styled-components": "^5.1.9",
  110. "@types/webpack-env": "1.16.2",
  111. "@typescript-eslint/eslint-plugin": "4.28.5",
  112. "@typescript-eslint/parser": "4.28.5",
  113. "autoprefixer": "10.3.1",
  114. "babel-loader": "8.2.2",
  115. "babel-plugin-dynamic-import-node": "^2.3.3",
  116. "babel-plugin-import": "1.13.3",
  117. "babel-plugin-remove-graphql-queries": "^3.3.0",
  118. "cache-loader": "4.1.0",
  119. "case-sensitive-paths-webpack-plugin": "2.4.0",
  120. "classnames": "2.3.1",
  121. "core-js": "3.16.0",
  122. "cross-env": "7.0.3",
  123. "css-loader": "6.2.0",
  124. "customaddcomponents": "^1.0.35",
  125. "enzyme": "^3.10.0",
  126. "enzyme-adapter-react-16": "1.15.6",
  127. "enzyme-to-json": "3.6.2",
  128. "eslint": "7.32.0",
  129. "eslint-config-prettier": "8.3.0",
  130. "eslint-import-resolver-typescript": "^2.4.0",
  131. "eslint-import-resolver-webpack": "^0.13.0",
  132. "eslint-plugin-import": "^2.22.1",
  133. "eslint-plugin-jsx-a11y": "^6.4.1",
  134. "eslint-plugin-prettier": "3.4.0",
  135. "eslint-plugin-promise": "^4.3.1",
  136. "eslint-plugin-react": "7.24.0",
  137. "eslint-plugin-react-hooks": "^4.2.0",
  138. "eslint-plugin-unicorn": "^28.0.2",
  139. "eslint-webpack-plugin": "^3.0.1",
  140. "file-loader": "6.2.0",
  141. "fork-ts-checker-webpack-plugin": "6.2.13",
  142. "fs-extra": "10.0.0",
  143. "html-webpack-plugin": "^5.3.2",
  144. "husky": "7.0.1",
  145. "identity-obj-proxy": "^3.0.0",
  146. "jest": "27.0.6",
  147. "less": "4.1.1",
  148. "less-loader": "10.0.1",
  149. "lint-staged": "11.1.1",
  150. "mini-css-extract-plugin": "1.3.1",
  151. "moment": "^2.29.1",
  152. "moment-locales-webpack-plugin": "1.2.0",
  153. "postcss": "8.3.6",
  154. "postcss-loader": "6.1.1",
  155. "prettier": "2.3.2",
  156. "prettier-stylelint": "^0.4.2",
  157. "react-dev-utils": "11.0.4",
  158. "sass": "1.37.0",
  159. "sass-loader": "12.1.0",
  160. "style-loader": "^3.3.1",
  161. "stylelint": "13.13.1",
  162. "stylelint-config-prettier": "8.0.2",
  163. "stylelint-order": "4.1.0",
  164. "stylelint-prettier": "1.2.0",
  165. "terser-webpack-plugin": "5.1.4",
  166. "thread-loader": "3.0.4",
  167. "ts-jest": "27.0.4",
  168. "tsconfig-paths-webpack-plugin": "3.5.1",
  169. "typed-css-modules-webpack-plugin": "0.2.0",
  170. "typescript": "4.3.5",
  171. "url-loader": "4.1.1",
  172. "webpack": "^5.47.1",
  173. "webpack-bundle-analyzer": "4.4.2",
  174. "webpack-cli": "^4.9.1",
  175. "webpack-dev-server": "3.11.2",
  176. "webpack-hot-middleware": "^2.25.0",
  177. "workbox-webpack-plugin": "^6.2.4"
  178. },
  179. "lint-staged": {
  180. "*.{ts,tsx,js,jsx}": [
  181. "eslint --fix --config .eslintrc.js"
  182. ],
  183. "*.{css,less,scss}": [
  184. "stylelint --fix --config .stylelintrc.js"
  185. ],
  186. "*.{ts,tsx,js,json,html,yml,css,less,scss,md}": [
  187. "prettier --write"
  188. ]
  189. },
  190. "browserslist": [
  191. "> 1%",
  192. "last 2 versions",
  193. "not ie <= 11"
  194. ],
  195. "jest": {
  196. "moduleFileExtensions": [
  197. "ts",
  198. "tsx",
  199. "js"
  200. ],
  201. "transform": {
  202. "^.+\\.tsx?$": "ts-jest"
  203. },
  204. "setupFiles": [
  205. "raf/polyfill"
  206. ],
  207. "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
  208. "setupFilesAfterEnv": [
  209. "<rootDir>src/setupTests.ts"
  210. ],
  211. "snapshotSerializers": [
  212. "enzyme-to-json"
  213. ],
  214. "moduleNameMapper": {
  215. "\\.(css|less|scss|svg|jpg|jpeg|png|gif)$": "identity-obj-proxy",
  216. "^@constants/(.*)$": "<rootDir>/src/constants//$1",
  217. "^@services/(.*)$": "<rootDir>/src/services//$1",
  218. "^@utils/(.*)$": "<rootDir>/src/utils//$1",
  219. "^@assets/(.*)$": "<rootDir>/src/styles/assets//$1",
  220. "^@components/(.*)$": "<rootDir>/src/components//$1",
  221. "^@views/(.*)$": "<rootDir>/src/containers/views//$1",
  222. "^@shared/(.*)$": "<rootDir>/src/containers/shared//$1"
  223. }
  224. },
  225. "license": "ISC"
  226. }