package.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. {
  2. "name": "@antv/g2",
  3. "version": "5.0.12",
  4. "description": "the Grammar of Graphics in Javascript",
  5. "license": "MIT",
  6. "main": "lib/index.js",
  7. "module": "esm/index.js",
  8. "types": "lib/index.d.ts",
  9. "files": [
  10. "src",
  11. "lib",
  12. "esm",
  13. "dist"
  14. ],
  15. "scripts": {
  16. "dev": "vite",
  17. "dev:link": "cross-env LINK=1 vite",
  18. "clean": "rimraf lib esm dist",
  19. "lint-staged": "lint-staged",
  20. "size": "limit-size",
  21. "lint": "eslint ./src ./__tests__ && prettier ./src ./__tests__ --check ",
  22. "fix": "eslint ./src ./__tests__ --fix && prettier ./src ./__tests__ --write ",
  23. "test": "node --expose-gc --max-old-space-size=4096 --unhandled-rejections=strict node_modules/jest/bin/jest __tests__/ --coverage -i --logHeapUsage",
  24. "test:unit": "node --expose-gc --max-old-space-size=4096 --unhandled-rejections=strict node_modules/jest/bin/jest __tests__/unit/ --coverage -i --logHeapUsage",
  25. "test:integration": "node --expose-gc --max-old-space-size=4096 --unhandled-rejections=strict node_modules/jest/bin/jest __tests__/integration/ --coverage -i --logHeapUsage",
  26. "test:treeshaking": "vite build -c ./__tests__/treeshaking/vite.config.js",
  27. "test-live": "cross-env DEBUG_MODE=1 jest --watch",
  28. "build:umd": "rimraf ./dist && rollup -c && npm run size",
  29. "build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
  30. "build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm",
  31. "build": "run-p build:*",
  32. "bundle-vis": "cross-env BUNDLE_VIS=1 run-p build:umd",
  33. "ci": "run-s lint test build",
  34. "prepublishOnly": "npm run ci",
  35. "prepare": "husky install",
  36. "upload": "node scripts/uploadSnapshot.js",
  37. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
  38. },
  39. "keywords": [
  40. "antv",
  41. "g2",
  42. "visualization",
  43. "chart",
  44. "grammar",
  45. "graphics",
  46. "interaction",
  47. "animation"
  48. ],
  49. "dependencies": {
  50. "@antv/coord": "^0.4.1",
  51. "@antv/event-emitter": "^0.1.3",
  52. "@antv/g": "^5.7.4",
  53. "@antv/g-canvas": "^1.7.4",
  54. "@antv/g-plugin-dragndrop": "^1.6.1",
  55. "@antv/gui": "^0.5.0-alpha.22",
  56. "@antv/path-util": "^3.0.1",
  57. "@antv/scale": "^0.4.7",
  58. "@antv/util": "^3.3.2",
  59. "d3-array": "^3.2.2",
  60. "d3-dsv": "^3.0.1",
  61. "d3-force": "^3.0.0",
  62. "d3-format": "^3.1.0",
  63. "d3-geo": "^3.0.1",
  64. "d3-hierarchy": "^3.1.2",
  65. "d3-scale-chromatic": "^3.0.0",
  66. "d3-shape": "^3.1.0",
  67. "d3-voronoi": "^1.1.4",
  68. "flru": "^1.0.2",
  69. "fmin": "^0.0.2",
  70. "pdfast": "^0.2.0"
  71. },
  72. "devDependencies": {
  73. "@antv/data-set": "^0.11.8",
  74. "@antv/g-plugin-rough-canvas-renderer": "^1.7.9",
  75. "@antv/g-plugin-rough-svg-renderer": "^1.7.9",
  76. "@antv/g-svg": "^1.8.6",
  77. "@commitlint/cli": "^11.0.0",
  78. "@commitlint/config-conventional": "^17.4.4",
  79. "@rollup/plugin-commonjs": "^21.0.2",
  80. "@types/d3-array": "^3.0.2",
  81. "@types/d3-shape": "^3.0.2",
  82. "@types/jest": "^26.0.20",
  83. "@types/pixelmatch": "^5.2.4",
  84. "@types/pngjs": "^6.0.1",
  85. "@typescript-eslint/eslint-plugin": "^4.18.0",
  86. "@typescript-eslint/parser": "^4.18.0",
  87. "ali-oss": "^6.17.1",
  88. "archiver": "^5.3.1",
  89. "canvas": "2.11.0",
  90. "conventional-changelog-cli": "^2.2.2",
  91. "cross-env": "^7.0.3",
  92. "d3-dsv": "^3.0.1",
  93. "d3-fetch": "^3.0.1",
  94. "d3-geo-projection": "^4.0.0",
  95. "d3-hierarchy": "^3.1.2",
  96. "d3-interpolate": "^3.0.1",
  97. "d3-random": "^3.0.1",
  98. "d3-regression": "^1.3.10",
  99. "eslint": "^7.22.0",
  100. "eslint-plugin-import": "^2.22.1",
  101. "fecha": "^4.2.3",
  102. "husky": "^7.0.0",
  103. "jest": "^26.0.1",
  104. "jsdom": "^19.0.0",
  105. "limit-size": "^0.1.4",
  106. "lint-staged": "^10.5.4",
  107. "npm-run-all": "^4.1.5",
  108. "pixelmatch": "5.3.0",
  109. "pngjs": "^6.0.0",
  110. "prettier": "^2.2.1",
  111. "reflect-metadata": "^0.1.13",
  112. "rimraf": "^3.0.2",
  113. "rollup": "^2.39.0",
  114. "rollup-plugin-node-resolve": "^5.2.0",
  115. "rollup-plugin-polyfill-node": "^0.8.0",
  116. "rollup-plugin-typescript": "^1.0.1",
  117. "rollup-plugin-uglify": "^6.0.4",
  118. "rollup-plugin-visualizer": "^5.6.0",
  119. "topojson": "^3.0.2",
  120. "ts-jest": "^26.5.1",
  121. "typescript": "^4.1.5",
  122. "vite": "^3.1.0",
  123. "xmlserializer": "^0.6.1"
  124. },
  125. "lint-staged": {
  126. "*.{ts,tsx}": [
  127. "eslint --fix",
  128. "prettier --write",
  129. "git add"
  130. ]
  131. },
  132. "limit-size": [
  133. {
  134. "path": "dist/g2.min.js",
  135. "limit": "750 Kb",
  136. "gzip": true
  137. },
  138. {
  139. "path": "dist/g2.min.js",
  140. "limit": "2 Mb"
  141. }
  142. ],
  143. "author": {
  144. "name": "AntV",
  145. "url": "https://antv.vision/"
  146. },
  147. "repository": {
  148. "type": "git",
  149. "url": "https://github.com/antvis/g2"
  150. },
  151. "bugs": {
  152. "url": "https://github.com/antvis/g2/issues"
  153. }
  154. }