package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {
  2. "name": "@antv/f2",
  3. "version": "3.8.9",
  4. "description": "Charts for mobile visualization.",
  5. "keywords": [
  6. "f2",
  7. "charts",
  8. "mobile",
  9. "visualization",
  10. "data visualization",
  11. "canvas",
  12. "2d draw",
  13. "mobile visualization",
  14. "interactive"
  15. ],
  16. "main": "lib/index.js",
  17. "module": "es/index.js",
  18. "browser": "dist/f2.js",
  19. "types": "types/index.d.ts",
  20. "homepage": "https://github.com/antvis/f2",
  21. "author": "https://github.com/orgs/antvis/people",
  22. "repository": {
  23. "type": "git",
  24. "url": "https://github.com/antvis/f2"
  25. },
  26. "bugs": {
  27. "url": "https://github.com/antvis/f2/issues"
  28. },
  29. "files": [
  30. "src",
  31. "lib",
  32. "es",
  33. "dist",
  34. "bundler",
  35. "types"
  36. ],
  37. "devDependencies": {
  38. "@antv/data-set": "^0.10.2",
  39. "@antv/gatsby-theme-antv": "^1.0.0-beta.11",
  40. "@babel/cli": "^7.0.0",
  41. "@babel/core": "^7.0.0",
  42. "@babel/plugin-proposal-class-properties": "^7.8.3",
  43. "@babel/plugin-transform-arrow-functions": "^7.10.4",
  44. "@babel/preset-env": "^7.0.0",
  45. "@rollup/plugin-alias": "^3.1.0",
  46. "@rollup/plugin-babel": "^5.0.0",
  47. "@rollup/plugin-commonjs": "^11.1.0",
  48. "@rollup/plugin-node-resolve": "^7.1.3",
  49. "babel-eslint": "~10.1.0",
  50. "babel-loader": "^8.0.0",
  51. "babel-plugin-transform-remove-strict-mode": "~0.0.2",
  52. "babel-preset-gatsby": "^0.4.0",
  53. "body-parser": "^1.18.2",
  54. "chai": "~4.2.0",
  55. "commander": "~2.9.0",
  56. "connect": "~3.7.0",
  57. "d3-queue": "~3.0.7",
  58. "debug": "~4.1.1",
  59. "electron": "^7.1.9",
  60. "eslint": "^6.7.2",
  61. "eslint-config-egg": "~4.2.0",
  62. "f2-svg-engine": "^0.0.2",
  63. "gatsby": "^2.17.7",
  64. "get-port": "~3.1.0",
  65. "gh-pages": "^2.1.1",
  66. "jest": "^24.9.0",
  67. "jest-electron": "^0.1.11",
  68. "jquery": "^3.3.1",
  69. "jszip": "^3.1.5",
  70. "nightmare": "~2.10.0",
  71. "nunjucks": "~3.2.1",
  72. "open": "~7.0.0",
  73. "parseurl": "~1.3.1",
  74. "pre-commit": "~1.2.2",
  75. "prettier": "~2.0.5",
  76. "react-i18next": "^11.0.1",
  77. "rollup": "^2.9.1",
  78. "rollup-plugin-terser": "^5.3.0",
  79. "serve-static": "~1.12.4",
  80. "shelljs": "~0.7.8",
  81. "typescript": "~3.9.5",
  82. "uglify-js": "~3.0.15"
  83. },
  84. "scripts": {
  85. "start": "npm run site:develop",
  86. "site:develop": "BABEL_ENV=site gatsby develop --open",
  87. "site:build": "npm run site:clean && BABEL_ENV=site gatsby build --prefix-paths",
  88. "site:clean": "BABEL_ENV=site gatsby clean",
  89. "site:deploy": "npm run site:build && gh-pages -d public",
  90. "build": "npm run build-lib && npm run build-es && npm run build-umd && npm run build-types",
  91. "build-lib": "rm -rf lib && babel src --out-dir lib",
  92. "build-es": "rm -rf es && BABEL_ENV=esm babel src --out-dir es",
  93. "build-umd": "rm -rf dist && rollup --config",
  94. "build-types": "node ./scripts/patch-types.js",
  95. "ci": "npm run lint && npm run test && npm run test-types",
  96. "compress": "sh ./bin/compress.sh",
  97. "coverage": "jest --coverage",
  98. "demos": "electron ./demos/app.js",
  99. "demos-web": "node ./demos/app.js --web --port 2048",
  100. "dev": "npm run watch & DEBUG=app:* npm run demos-web",
  101. "lint": "eslint ./",
  102. "lint-fix": "eslint --fix ./",
  103. "prepublishOnly": "npm run build",
  104. "screenshot": "DEBUG=app:* ./bin/screenshot.js",
  105. "test": "jest",
  106. "test-unit": "jest test/unit",
  107. "test-bug": "jest test/bug",
  108. "test-live": "DEBUG_MODE=1 jest --watch",
  109. "test-types": "tsc --noEmit",
  110. "watch": "webpack --config webpack-dev.config.js"
  111. },
  112. "pre-commit": {
  113. "run": [
  114. "lint",
  115. "test"
  116. ],
  117. "silent": false
  118. },
  119. "jest": {
  120. "runner": "jest-electron/runner",
  121. "testEnvironment": "jest-electron/environment",
  122. "testRegex": "/test/.*-spec\\.js?$",
  123. "verbose": false
  124. },
  125. "dependencies": {
  126. "@antv/adjust": "~0.1.1",
  127. "@antv/scale": "~0.3.3",
  128. "@antv/util": "~2.0.6",
  129. "@babel/runtime": "^7.7.7",
  130. "@types/hammerjs": "^2.0.36",
  131. "hammerjs": "^2.0.8",
  132. "type-fest": "^0.15.1"
  133. }
  134. }