package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. {
  2. "name": "@antv/gui",
  3. "version": "0.5.0-alpha.24",
  4. "description": "UI components for AntV G.",
  5. "license": "MIT",
  6. "main": "lib/index.js",
  7. "module": "esm/index.js",
  8. "unpkg": "dist/gui.min.js",
  9. "types": "lib/index.d.ts",
  10. "files": [
  11. "src",
  12. "lib",
  13. "esm",
  14. "dist"
  15. ],
  16. "sideEffects": false,
  17. "scripts": {
  18. "dev": "vite",
  19. "clean": "rimraf lib esm dist",
  20. "lint-staged": "lint-staged",
  21. "size": "limit-size",
  22. "lint": "NODE_ENV=test && eslint ./src/**/*.ts ./__tests__/**/*.ts && prettier ./src ./__tests__ --check ",
  23. "fix": "eslint ./src/**/*.ts ./__tests__/**/*.ts --fix && prettier ./src ./__tests__ --write ",
  24. "coverage": "jest -w 16 --coverage",
  25. "test": "run-s test:i",
  26. "test-live": "cross-env DEBUG_MODE=1 jest --watch",
  27. "test:u": "NODE_ENV=test && jest --config jest.config.js --coverage",
  28. "test:i": "NODE_ENV=test && jest --config jest.node.config.js --coverage",
  29. "build": "run-s clean build:* size",
  30. "build:umd": "webpack",
  31. "build:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib",
  32. "build:esm": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm",
  33. "ci": "run-s lint test build",
  34. "prepublishOnly": "npm run ci",
  35. "prepare": "husky install",
  36. "upload": "node scripts/uploadSnapshot.js"
  37. },
  38. "keywords": [
  39. "antv",
  40. "visualization",
  41. "ui",
  42. "GUI"
  43. ],
  44. "dependencies": {
  45. "@antv/dom-util": "^2.0.3",
  46. "@antv/g": "^5.15.15",
  47. "@antv/scale": "^0.4.3",
  48. "@antv/util": "^3.3.1",
  49. "d3-array": "^3.2.0",
  50. "svg-path-parser": "^1.1.0"
  51. },
  52. "peerDependencies": {
  53. "@antv/g": "^5.14.1"
  54. },
  55. "devDependencies": {
  56. "@antv/g": "^5.14.1",
  57. "@antv/g-canvas": "^1.9.18",
  58. "@antv/g-svg": "^1.8.27",
  59. "@babel/plugin-proposal-decorators": "^7.20.5",
  60. "@babel/plugin-transform-runtime": "^7.17.0",
  61. "@babel/preset-env": "^7.16.11",
  62. "@commitlint/cli": "^11.0.0",
  63. "@commitlint/config-conventional": "^12.0.1",
  64. "@types/d3-array": "^3.0.3",
  65. "@types/jest": "^26.0.1",
  66. "@types/jsdom": "^20.0.1",
  67. "@types/pixelmatch": "^5.2.4",
  68. "@types/pngjs": "^6.0.1",
  69. "@types/react": "^16.14.34",
  70. "@types/react-dom": "^18.0.9",
  71. "@types/svg-path-parser": "^1.1.2",
  72. "@types/xmlserializer": "^0.6.3",
  73. "@typescript-eslint/eslint-plugin": "^4.18.0",
  74. "@typescript-eslint/parser": "^4.19.0",
  75. "@vitejs/plugin-react": "^2.2.0",
  76. "ali-oss": "^6.17.1",
  77. "archiver": "^5.3.1",
  78. "antd": "^5.0.2",
  79. "babel-loader": "^8.2.3",
  80. "canvas": "2.11.0",
  81. "core-js": "^3.14.0",
  82. "cross-env": "^7.0.3",
  83. "eslint": "^7.22.0",
  84. "eslint-config-airbnb": "^18.2.1",
  85. "eslint-config-prettier": "^8.1.0",
  86. "eslint-import-resolver-typescript": "^2.4.0",
  87. "eslint-plugin-import": "^2.22.1",
  88. "eslint-plugin-prettier": "^3.3.1",
  89. "gh-pages": "^3.2.3",
  90. "husky": "^5.0.9",
  91. "jest": "^26.0.1",
  92. "jsdom": "^19.0.0",
  93. "limit-size": "^0.1.4",
  94. "lint-staged": "^10.5.4",
  95. "npm-run-all": "^4.1.5",
  96. "pixelmatch": "^5.3.0",
  97. "pngjs": "^6.0.0",
  98. "prettier": "^2.2.1",
  99. "react": "^16.14.0",
  100. "react-dom": "^16.11.0",
  101. "react-i18next": "^11.7.0",
  102. "regenerator-runtime": "^0.13.7",
  103. "rimraf": "^3.0.2",
  104. "ts-jest": "^26.5.1",
  105. "ts-loader": "^7.0.0",
  106. "tslib": "^2.0.3",
  107. "typescript": "^4.3.4",
  108. "vite": "^3.1.8",
  109. "webpack": "^4.44.2",
  110. "webpack-cli": "^4.9.1",
  111. "xmlserializer": "^0.6.1"
  112. },
  113. "lint-staged": {
  114. "*.{ts,tsx}": [
  115. "eslint --fix",
  116. "prettier --write",
  117. "git add"
  118. ]
  119. },
  120. "limit-size": [
  121. {
  122. "path": "dist/gui.min.js",
  123. "limit": "128 Kb",
  124. "gzip": true
  125. },
  126. {
  127. "path": "dist/gui.min.js",
  128. "limit": "480 Kb"
  129. }
  130. ],
  131. "author": {
  132. "name": "AntV",
  133. "url": "https://antv.vision/"
  134. },
  135. "repository": {
  136. "type": "git",
  137. "url": "https://github.com/antvis/gui"
  138. },
  139. "bugs": {
  140. "url": "https://github.com/antvis/gui/issues"
  141. }
  142. }