package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. {
  2. "name": "@antv/g2plot",
  3. "version": "2.4.31",
  4. "description": "An interactive and responsive charting library",
  5. "keywords": [
  6. "chart",
  7. "plot",
  8. "antv"
  9. ],
  10. "author": "https://github.com/orgs/antvis/people",
  11. "main": "lib/index.js",
  12. "module": "esm/index.js",
  13. "types": "lib/index.d.ts",
  14. "unpkg": "dist/g2plot.min.js",
  15. "files": [
  16. "lib",
  17. "esm",
  18. "dist",
  19. "src"
  20. ],
  21. "homepage": "https://g2plot.antv.vision",
  22. "repository": {
  23. "type": "git",
  24. "url": "https://github.com/antvis/G2plot"
  25. },
  26. "scripts": {
  27. "fix": "eslint --ext .ts ./src ./__tests__ --fix && prettier --write ./src ./__tests__ && lint-md --fix ./examples ./docs",
  28. "build": "run-s clean lib dist size",
  29. "size": "limit-size",
  30. "clean": "rimraf lib esm dist",
  31. "lib": "run-p lib:*",
  32. "lib:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib",
  33. "lib:esm": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm",
  34. "dist": "webpack --config webpack.config.js --mode production",
  35. "lint": "eslint --ext .ts ./src ./__tests__ && prettier --check ./src ./__tests__ && lint-md ./examples ./docs",
  36. "lint-staged": "lint-staged",
  37. "test": "jest -c jest.config.js",
  38. "test-live": "cross-env DEBUG_MODE=1 jest --watch",
  39. "coverage": "jest -c jest.config.js -w 16 --coverage",
  40. "ci": "run-s lint coverage build",
  41. "changelog": "generate-changelog",
  42. "prepublishOnly": "run-s lint test build",
  43. "analyze": "webpack --profile --json > dist/stats.json && webpack-bundle-analyzer ./dist/stats.json"
  44. },
  45. "husky": {
  46. "hooks": {
  47. "pre-commit": "lint-staged",
  48. "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  49. }
  50. },
  51. "dependencies": {
  52. "@antv/color-util": "^2.0.6",
  53. "@antv/event-emitter": "^0.1.2",
  54. "@antv/g-base": "^0.5.11",
  55. "@antv/g2": "^4.1.26",
  56. "@antv/matrix-util": "^3.1.0-beta.2",
  57. "@antv/path-util": "^3.0.1",
  58. "@antv/scale": "^0.3.18",
  59. "@antv/util": "^2.0.17",
  60. "d3-hierarchy": "^2.0.0",
  61. "d3-regression": "^1.3.5",
  62. "fmin": "^0.0.2",
  63. "pdfast": "^0.2.0",
  64. "size-sensor": "^1.0.1",
  65. "tslib": "^2.0.3"
  66. },
  67. "devDependencies": {
  68. "@antv/data-set": "^0.11.5",
  69. "@babel/core": "^7.10.4",
  70. "@babel/plugin-transform-runtime": "^7.11.5",
  71. "@babel/preset-env": "^7.10.4",
  72. "@babel/runtime": "^7.11.2",
  73. "@commitlint/cli": "^8.2.0",
  74. "@commitlint/config-angular": "^8.2.0",
  75. "@types/jest": "^25.2.1",
  76. "@typescript-eslint/eslint-plugin": "^5.54.1",
  77. "@typescript-eslint/parser": "^5.54.1",
  78. "antd": "^4.8.4",
  79. "babel-loader": "^8.1.0",
  80. "conventional-changelog-cli": "^2.0.34",
  81. "cross-env": "^7.0.2",
  82. "eslint": "^8.35.0",
  83. "eslint-config-prettier": "^8.7.0",
  84. "eslint-plugin-import": "^2.22.0",
  85. "eslint-plugin-prettier": "^4.2.0",
  86. "generate-changelog": "^1.8.0",
  87. "husky": "^4.2.3",
  88. "jest": "^26.0.1",
  89. "jest-electron": "^0.1.7",
  90. "jest-extended": "^0.11.2",
  91. "jest-matcher-deep-close-to": "^2.0.1",
  92. "limit-size": "^0.1.3",
  93. "lint-md-cli": "^0.1.2",
  94. "lint-staged": "^10.0.7",
  95. "miz": "^1.0.1",
  96. "npm-run-all": "^4.1.5",
  97. "prettier": "^2.0.1",
  98. "react": "^16.11.0",
  99. "react-dom": "^16.11.0",
  100. "react-i18next": "^11.7.0",
  101. "rimraf": "^3.0.0",
  102. "ts-jest": "^25.4.0",
  103. "ts-loader": "^7.0.0",
  104. "typescript": "^4",
  105. "webpack": "^4.44.2",
  106. "webpack-bundle-analyzer": "^3.9.0",
  107. "webpack-cli": "^3.3.7",
  108. "webpack-dev-server": "^3.9.0"
  109. },
  110. "lint-staged": {
  111. "*.ts": [
  112. "eslint --fix",
  113. "prettier --write"
  114. ],
  115. "*.md": [
  116. "lint-md --fix"
  117. ]
  118. },
  119. "limit-size": [
  120. {
  121. "path": "dist/g2plot.min.js",
  122. "limit": "1.1 Mb"
  123. },
  124. {
  125. "path": "dist/g2plot.min.js",
  126. "limit": "300 Kb",
  127. "gzip": true
  128. }
  129. ],
  130. "resolutions": {
  131. "d3-array": "2.12.1",
  132. "@types/lodash": "4.14.182",
  133. "@types/babel__traverse": "7.0.6"
  134. },
  135. "license": "MIT"
  136. }