package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. {
  2. "name": "@antv/x6",
  3. "version": "1.34.13",
  4. "description": "JavaScript diagramming library that uses SVG and HTML for rendering.",
  5. "main": "lib/index.js",
  6. "module": "es/index.js",
  7. "unpkg": "dist/x6.js",
  8. "jsdelivr": "dist/x6.js",
  9. "types": "lib/index.d.ts",
  10. "files": [
  11. "dist",
  12. "es",
  13. "lib",
  14. "src"
  15. ],
  16. "keywords": [
  17. "graph",
  18. "diagram",
  19. "flowchart",
  20. "uml",
  21. "x6-editor",
  22. "editor",
  23. "svg",
  24. "x6",
  25. "antv"
  26. ],
  27. "scripts": {
  28. "clean:build": "rimraf dist es lib",
  29. "clean:coverage": "rimraf ./test/coverage",
  30. "clean": "run-p clean:build clean:coverage",
  31. "lint:ts": "eslint 'src/**/*.{js,ts}?(x)' --fix",
  32. "lint:style": "stylelint 'src/**/*.less' --syntax less --fix",
  33. "lint": "run-s lint:ts lint:style",
  34. "build:esm": "tsc --module esnext --target es2015 --outDir ./es",
  35. "build:cjs": "tsc --module commonjs --target es5 --outDir ./lib",
  36. "build:umd": "rollup -c",
  37. "build:less": "node ./scripts/style",
  38. "build:readme": "node ./scripts/readme.js",
  39. "build:csstype": "node ./scripts/csstype.js",
  40. "build:dev": "run-p build:csstype build:less build:cjs build:esm",
  41. "build:watch": "yarn build:esm --w",
  42. "build:watch:esm": "yarn build:esm --w",
  43. "build:watch:cjs": "yarn build:cjs --w",
  44. "build": "run-p build:readme build:dev build:umd",
  45. "prebuild": "run-s lint clean",
  46. "test": "karma start",
  47. "coveralls": "cat ./test/coverage/lcov.info | coveralls",
  48. "pretest": "run-p clean:coverage",
  49. "prepare": "run-s test build",
  50. "precommit": "lint-staged"
  51. },
  52. "lint-staged": {
  53. "src/**/*.less": [
  54. "stylelint --syntax less --fix"
  55. ],
  56. "src/**/*.ts": [
  57. "eslint --fix"
  58. ]
  59. },
  60. "inherits": [
  61. "@antv/x6-package-json/cli.json",
  62. "@antv/x6-package-json/less.json",
  63. "@antv/x6-package-json/karma.json",
  64. "@antv/x6-package-json/eslint.json",
  65. "@antv/x6-package-json/rollup.json"
  66. ],
  67. "dependencies": {
  68. "csstype": "^3.0.3",
  69. "jquery": "^3.5.1",
  70. "jquery-mousewheel": "^3.1.13",
  71. "lodash-es": "^4.17.15",
  72. "mousetrap": "^1.6.5",
  73. "utility-types": "^3.10.0"
  74. },
  75. "devDependencies": {
  76. "@rollup/plugin-commonjs": "^20.0.0",
  77. "@rollup/plugin-node-resolve": "^13.0.4",
  78. "@rollup/plugin-replace": "^3.0.0",
  79. "@rollup/plugin-typescript": "^8.2.5",
  80. "@types/jasmine": "^3.9.0",
  81. "@types/jquery": "^3.5.5",
  82. "@types/jquery-mousewheel": "^3.1.8",
  83. "@types/lodash-es": "^4.17.4",
  84. "@types/mousetrap": "^1.6.5",
  85. "@types/node": "^16.9.1",
  86. "@types/resize-observer-browser": "^0.1.5",
  87. "@types/sinon": "^10.0.2",
  88. "@typescript-eslint/eslint-plugin": "^4.31.0",
  89. "@typescript-eslint/parser": "^4.31.0",
  90. "coveralls": "^3.1.1",
  91. "eslint": "^7.32.0",
  92. "eslint-config-airbnb-base": "^14.2.1",
  93. "eslint-config-prettier": "^8.3.0",
  94. "eslint-plugin-eslint-comments": "^3.2.0",
  95. "eslint-plugin-import": "^2.24.2",
  96. "eslint-plugin-jest": "^24.4.0",
  97. "eslint-plugin-jsx-a11y": "^6.4.1",
  98. "eslint-plugin-prettier": "^4.0.0",
  99. "eslint-plugin-promise": "^5.1.0",
  100. "eslint-plugin-react": "^7.25.1",
  101. "eslint-plugin-react-hooks": "^4.2.0",
  102. "eslint-plugin-unicorn": "^36.0.0",
  103. "fs-extra": "^10.0.0",
  104. "jasmine-core": "^3.9.0",
  105. "karma": "^6.3.4",
  106. "karma-chrome-launcher": "^3.1.0",
  107. "karma-cli": "^2.0.0",
  108. "karma-jasmine": "^4.0.1",
  109. "karma-spec-reporter": "^0.0.32",
  110. "karma-typescript": "5.3.0",
  111. "karma-typescript-es6-transform": "5.3.0",
  112. "less": "^4.1.1",
  113. "lint-staged": "^11.1.2",
  114. "npm-run-all": "^4.1.5",
  115. "postcss": "^8.3.6",
  116. "prettier": "^2.4.0",
  117. "pretty-quick": "^3.1.1",
  118. "rimraf": "^3.0.2",
  119. "rollup": "^2.56.3",
  120. "rollup-plugin-auto-external": "^2.0.0",
  121. "rollup-plugin-filesize": "^9.1.1",
  122. "rollup-plugin-postcss": "^4.0.1",
  123. "rollup-plugin-progress": "^1.1.2",
  124. "rollup-plugin-terser": "^7.0.2",
  125. "sinon": "^11.1.2",
  126. "stylelint": "^13.13.1",
  127. "stylelint-config-prettier": "^8.0.2",
  128. "stylelint-config-rational-order": "^0.1.2",
  129. "stylelint-config-standard": "^22.0.0",
  130. "stylelint-declaration-block-no-ignored-properties": "^2.4.0",
  131. "stylelint-order": "^4.1.0",
  132. "ts-node": "^10.2.1",
  133. "tslib": "^2.3.1",
  134. "typescript": "^4.4.3"
  135. },
  136. "author": {
  137. "name": "bubkoo",
  138. "email": "bubkoo.wy@gmail.com"
  139. },
  140. "contributors": [],
  141. "license": "MIT",
  142. "homepage": "https://github.com/antvis/x6",
  143. "bugs": {
  144. "url": "https://github.com/antvis/x6/issues"
  145. },
  146. "repository": {
  147. "type": "git",
  148. "url": "ssh://git@github.com/antvis/x6.git",
  149. "directory": "packages/x6"
  150. },
  151. "publishConfig": {
  152. "access": "public",
  153. "registry": "https://registry.npmjs.org"
  154. },
  155. "gitHead": "de35af5d84eb6874287f27f3142f73c908bb1bdc"
  156. }