package.json 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. {
  2. "name": "datart",
  3. "version": "1.0.0",
  4. "private": true,
  5. "description": "",
  6. "repository": {
  7. "type": "git",
  8. "url": ""
  9. },
  10. "engines": {
  11. "npm": ">=6.4.1",
  12. "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
  13. },
  14. "author": "",
  15. "license": "Apache-2.0",
  16. "scripts": {
  17. "bootstrap": "npm install --legacy-peer-deps",
  18. "start": "craco start",
  19. "build": "cross-env GENERATE_SOURCEMAP=false craco build",
  20. "build:task": "rollup -c",
  21. "build:all": "npm run build:theme && npm run build:task && npm run build",
  22. "build:theme": "node scripts/extractAntdTheme",
  23. "test": "craco test",
  24. "test:coverage": "npm run test -- --watchAll=false --coverage",
  25. "test:ci": "npm run test -- --watchAll=false --runInBand --silent",
  26. "checkTs": "tsc --noEmit",
  27. "eslint": "eslint --ext js,ts,tsx",
  28. "lint": "npm run eslint src",
  29. "lint:fix": "npm run eslint --fix src",
  30. "lint:css": "npx stylelint \"src/**/*.css\"",
  31. "lint:style": "npx stylelint \"src/**/*.{js,ts,jsx,tsx}\"",
  32. "prettify": "prettier --write src",
  33. "prepare": "cd .. && husky install frontend/.husky",
  34. "eject": "react-scripts eject",
  35. "doc:types": "tsc --project tsconfig.dHelper.json",
  36. "doc:html": "jsdoc -c jsdoc.config.json"
  37. },
  38. "eslintConfig": {
  39. "extends": [
  40. "react-app",
  41. "react-app/jest"
  42. ]
  43. },
  44. "browserslist": {
  45. "production": [
  46. ">0.2%",
  47. "not dead",
  48. "not op_mini all"
  49. ],
  50. "development": [
  51. "last 1 chrome version",
  52. "last 1 firefox version",
  53. "last 1 safari version"
  54. ]
  55. },
  56. "lint-staged": {
  57. "*.{ts,tsx,js,jsx}": [
  58. "npm run eslint --fix",
  59. "npm run lint:style",
  60. "prettier --write"
  61. ],
  62. "*.{css,md,json}": [
  63. "prettier --write"
  64. ]
  65. },
  66. "jest": {
  67. "testMatch": [
  68. "<rootDir>/src/**/__tests__/**/*.{spec,test}.{js,jsx,ts,tsx}"
  69. ],
  70. "coverageReporters": [
  71. "html",
  72. "lcov",
  73. "text-summary"
  74. ],
  75. "collectCoverageFrom": [
  76. "src/**/*.{js,jsx,ts,tsx}",
  77. "!src/**/*/*.d.ts",
  78. "!src/**/*/Loadable.{js,jsx,ts,tsx}",
  79. "!src/**/*/messages.ts",
  80. "!src/**/*/types.ts",
  81. "!src/index.tsx"
  82. ],
  83. "coverageThreshold": {
  84. "global": {
  85. "branches": 90,
  86. "functions": 90,
  87. "lines": 90,
  88. "statements": 90
  89. }
  90. }
  91. },
  92. "dependencies": {
  93. "@ant-design/icons": "^4.5.0",
  94. "@ant-design/pro-table": "2.60.1",
  95. "@antv/s2": "1.19.0",
  96. "@antv/s2-react": "1.18.0",
  97. "@dinero.js/currencies": "^2.0.0-alpha.8",
  98. "@reduxjs/toolkit": "^1.8.0",
  99. "@types/react": "17.0.38",
  100. "antd": "4.16.13",
  101. "antd-theme-generator": "1.2.11",
  102. "antd-watermark": "^1.0.1",
  103. "axios": "^0.21.1",
  104. "chokidar": "^3.6.0",
  105. "classnames": "^2.3.1",
  106. "currency.js": "^2.0.4",
  107. "debounce-promise": "3.1.2",
  108. "echarts": "5.3.1",
  109. "echarts-wordcloud": "^2.0.0",
  110. "file-saver": "^2.0.5",
  111. "flexlayout-react": "^0.5.12",
  112. "i18next": "^19.9.1",
  113. "i18next-browser-languagedetector": "^6.0.1",
  114. "immer": "^9.0.5",
  115. "invariant": "^2.2.4",
  116. "js-cookie": "^2.2.1",
  117. "lodash": "^4.17.21",
  118. "monaco-editor": "0.28.1",
  119. "polished": "^4.1.1",
  120. "qs": "^6.10.3",
  121. "quill-image-drop-module": "1.0.3",
  122. "quilljs-markdown": "1.1.10",
  123. "react": "17.0.2",
  124. "react-app-polyfill": "3.0.0",
  125. "react-beautiful-dnd": "^13.1.0",
  126. "react-color": "2.19.3",
  127. "react-dev-inspector": "^1.6.0",
  128. "react-dnd": "^14.0.2",
  129. "react-dnd-html5-backend": "^14.0.0",
  130. "react-dom": "17.0.2",
  131. "react-draggable": "^4.4.3",
  132. "react-grid-layout": "^1.2.4",
  133. "react-helmet-async": "1.2.2",
  134. "react-hotkeys-hook": "^3.4.0",
  135. "react-i18next": "11.15.3",
  136. "react-monaco-editor": "0.46.0",
  137. "react-quill": "1.3.5",
  138. "react-redux": "7.2.6",
  139. "react-resizable": "^1.11.1",
  140. "react-resize-detector": "^6.7.6",
  141. "react-router-dom": "5.2.0",
  142. "react-window": "^1.8.6",
  143. "redux-undo": "^1.0.1",
  144. "reveal.js": "^4.1.0",
  145. "split.js": "^1.6.4",
  146. "sql-formatter": "9.2.0",
  147. "uuid": "^8.3.2",
  148. "video-react": "^0.15.0"
  149. },
  150. "devDependencies": {
  151. "@babel/core": "^7.15.8",
  152. "@babel/preset-env": "^7.15.8",
  153. "@commitlint/cli": "13.1.0",
  154. "@commitlint/config-conventional": "13.1.0",
  155. "@craco/craco": "^6.1.1",
  156. "@rollup/plugin-babel": "^5.3.0",
  157. "@rollup/plugin-commonjs": "^21.0.1",
  158. "@rollup/plugin-json": "^4.1.0",
  159. "@rollup/plugin-node-resolve": "^13.0.6",
  160. "@rollup/plugin-replace": "^2.4.2",
  161. "@rollup/plugin-typescript": "^8.3.0",
  162. "@stylelint/postcss-css-in-js": "^0.38.0",
  163. "@testing-library/jest-dom": "5.16.1",
  164. "@testing-library/react": "12.1.2",
  165. "@testing-library/user-event": "^12.8.0",
  166. "@types/jest": "27.4.0",
  167. "@types/js-cookie": "^2.2.6",
  168. "@types/lodash": "^4.14.172",
  169. "@types/node": "14.14.31",
  170. "@types/react-color": "^3.0.6",
  171. "@types/react-dom": "17.0.11",
  172. "@types/react-grid-layout": "^1.1.1",
  173. "@types/react-redux": "7.1.22",
  174. "@types/react-resizable": "^1.7.4",
  175. "@types/react-router-dom": "5.3.2",
  176. "@types/react-test-renderer": "17.0.1",
  177. "@types/styled-components": "5.1.20",
  178. "@types/testing-library__jest-dom": "5.14.2",
  179. "@types/webpack": "4.41.22",
  180. "@types/webpack-env": "1.15.2",
  181. "@wojtekmaj/enzyme-adapter-react-17": "^0.6.0",
  182. "babel-plugin-styled-components": "^2.0.7",
  183. "cross-env": "7.0.3",
  184. "cz-conventional-changelog": "^3.3.0",
  185. "docdash": "^1.2.0",
  186. "enzyme": "^3.11.0",
  187. "eslint-config-prettier": "^8.1.0",
  188. "eslint-plugin-jsdoc": "^37.8.0",
  189. "eslint-plugin-prettier": "^3.3.1",
  190. "eslint-plugin-react-hooks": "^4.2.0",
  191. "html2canvas": "^1.3.2",
  192. "husky": "^7.0.4",
  193. "jest-canvas-mock": "^2.3.1",
  194. "jest-styled-components": "7.0.8",
  195. "jsdoc": "^3.6.10",
  196. "lint-staged": "12.1.7",
  197. "monaco-editor-webpack-plugin": "4.2.0",
  198. "postcss": "^8.4.6",
  199. "postcss-syntax": "^0.36.2",
  200. "prettier": "^2.2.1",
  201. "prettier-plugin-organize-imports": "^2.3.3",
  202. "react-scripts": "4.0.3",
  203. "react-test-renderer": "17.0.2",
  204. "rollup": "^2.62.0",
  205. "rollup-plugin-cleanup": "^3.2.1",
  206. "serve": "13.0.2",
  207. "source-map-explorer": "^2.5.2",
  208. "styled-components": "5.3.3",
  209. "stylelint": "^14.9.1",
  210. "stylelint-config-prettier": "^9.0.3",
  211. "stylelint-config-recess-order": "^3.0.0",
  212. "stylelint-config-recommended": "^8.0.0",
  213. "stylelint-config-styled-components": "^0.1.1",
  214. "typescript": "4.5.4",
  215. "webpack-cli": "^4.7.2",
  216. "webpackbar": "5.0.2"
  217. },
  218. "resolutions": {
  219. "react-error-overlay": "6.0.9",
  220. "@types/react": "17.0.38",
  221. "@types/react-dom": "17.0.11"
  222. },
  223. "config": {
  224. "commitizen": {
  225. "path": "cz-conventional-changelog"
  226. }
  227. }
  228. }