package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "name": "zrender",
  3. "version": "6.0.0",
  4. "description": "A lightweight graphic library providing 2d draw for Apache ECharts",
  5. "keywords": [
  6. "canvas",
  7. "svg",
  8. "2d",
  9. "html5",
  10. "vector-graphics"
  11. ],
  12. "repository": {
  13. "type": "git",
  14. "url": "https://github.com/ecomfe/zrender.git"
  15. },
  16. "scripts": {
  17. "prepare": "npm run build:lib",
  18. "build": "npm run build:bundle && npm run build:lib",
  19. "release": "node build/build.js --minify && npm run build:lib",
  20. "prepublishOnly": "node build/prepublish.js",
  21. "prepare:nightly": "node build/prepareNightly.js",
  22. "prepare:nightly-next": "node build/prepareNightly.js --next",
  23. "build:bundle": "node build/build.js",
  24. "build:lib": "npx tsc -m ES2015 --outDir lib && node build/processLib.js",
  25. "watch:bundle": "node build/build.js --watch",
  26. "watch:lib": "npx tsc-watch -m ES2015 --outDir lib --synchronousWatchDirectory --onSuccess \"node build/processLib.js\"",
  27. "test": "npx jest --config test/ut/jest.config.js",
  28. "lint": "npx eslint src/**/*.ts",
  29. "checktype": "tsc --noEmit"
  30. },
  31. "license": "BSD-3-Clause",
  32. "types": "index.d.ts",
  33. "module": "index.js",
  34. "main": "dist/zrender.js",
  35. "dependencies": {
  36. "tslib": "2.3.0"
  37. },
  38. "sideEffects": [
  39. "lib/canvas/canvas.js",
  40. "lib/svg/svg.js",
  41. "lib/all.js"
  42. ],
  43. "devDependencies": {
  44. "@microsoft/api-extractor": "^7.7.2",
  45. "@rollup/plugin-node-resolve": "^11.0.0",
  46. "@rollup/plugin-replace": "^3.0.0",
  47. "@types/jest": "^27.0.2",
  48. "@typescript-eslint/eslint-plugin": "^4.33.0",
  49. "@typescript-eslint/parser": "^4.33.0",
  50. "chalk": "^3.0.0",
  51. "commander": "2.11.0",
  52. "eslint": "6.3.0",
  53. "fs-extra": "4.0.2",
  54. "globby": "^11.0.4",
  55. "jest": "^27.2.5",
  56. "jsdom": "^16.0.0",
  57. "rollup": "^1.28.0",
  58. "rollup-plugin-typescript2": "^0.25.3",
  59. "rollup-plugin-uglify": "^6.0.4",
  60. "ts-jest": "^27.0.6",
  61. "typescript": "^4.4.3",
  62. "uglify-js": "^3.10.0"
  63. },
  64. "type": "module",
  65. "exports": {
  66. ".": {
  67. "types": "./index.d.ts",
  68. "require": "./dist/zrender.js",
  69. "import": "./index.js"
  70. },
  71. "./lib/canvas/canvas": "./lib/canvas/canvas.js",
  72. "./lib/svg/svg": "./lib/svg/svg.js",
  73. "./lib/vml/vml": "./lib/vml/vml.js",
  74. "./lib/canvas/Painter": "./lib/canvas/Painter.js",
  75. "./lib/svg/Painter": "./lib/svg/Painter.js",
  76. "./lib/svg/patch": "./lib/svg/patch.js",
  77. "./lib/Storage": "./lib/Storage.js",
  78. "./lib/core/util": "./lib/core/util.js",
  79. "./lib/core/env": "./lib/core/env.js",
  80. "./lib/core/Transformable": "./lib/core/Transformable.js",
  81. "./lib/core/BoundingRect": "./lib/core/BoundingRect.js",
  82. "./lib/core/vector": "./lib/core/vector.js",
  83. "./lib/core/bbox": "./lib/core/bbox.js",
  84. "./lib/contain/polygon": "./lib/contain/polygon.js",
  85. "./lib/tool/color": "./lib/tool/color.js",
  86. "./lib/graphic/LinearGradient": "./lib/graphic/LinearGradient.js",
  87. "./lib/graphic/RadialGradient": "./lib/graphic/RadialGradient.js",
  88. "./*": "./*"
  89. }
  90. }