package.json 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {
  2. "name": "cytoscape",
  3. "version": "3.33.2",
  4. "license": "MIT",
  5. "description": "Graph theory (a.k.a. network) library for analysis and visualisation",
  6. "homepage": "http://js.cytoscape.org",
  7. "repository": {
  8. "type": "git",
  9. "url": "https://github.com/cytoscape/cytoscape.js.git"
  10. },
  11. "bugs": {
  12. "url": "https://github.com/cytoscape/cytoscape.js/issues"
  13. },
  14. "keywords": [
  15. "graph",
  16. "graph-theory",
  17. "network",
  18. "node",
  19. "edge",
  20. "vertex",
  21. "link",
  22. "analysis",
  23. "visualisation",
  24. "visualization",
  25. "draw",
  26. "render",
  27. "biojs",
  28. "cytoscape"
  29. ],
  30. "engines": {
  31. "node": ">=0.10"
  32. },
  33. "types": "index.d.ts",
  34. "main": "dist/cytoscape.cjs.js",
  35. "module": "dist/cytoscape.esm.mjs",
  36. "exports": {
  37. ".": {
  38. "import": "./dist/cytoscape.esm.mjs",
  39. "require": "./dist/cytoscape.cjs.js",
  40. "types": "./index.d.ts"
  41. },
  42. "./dist/cytoscape.esm.mjs": {
  43. "import": "./dist/cytoscape.esm.mjs"
  44. },
  45. "./dist/cytoscape.esm": {
  46. "import": "./dist/cytoscape.esm.mjs"
  47. },
  48. "./dist/cytoscape.esm.min.mjs": {
  49. "import": "./dist/cytoscape.esm.min.mjs"
  50. },
  51. "./dist/cytoscape.esm.min": {
  52. "import": "./dist/cytoscape.esm.min.mjs"
  53. },
  54. "./dist/cytoscape.cjs.js": {
  55. "require": "./dist/cytoscape.cjs.js"
  56. },
  57. "./dist/cytoscape.umd.js": {
  58. "require": "./dist/cytoscape.umd.js"
  59. },
  60. "./dist/cytoscape.min.js": {
  61. "require": "./dist/cytoscape.min.js"
  62. }
  63. },
  64. "unpkg": "dist/cytoscape.min.js",
  65. "jsdelivr": "dist/cytoscape.min.js",
  66. "scripts": {
  67. "lint": "eslint src/**/*.mjs",
  68. "build": "rollup -c",
  69. "build:esm": "cross-env FILE=esm rollup -c",
  70. "build:esm.min": "cross-env FILE=esm.min rollup -c",
  71. "build:cjs": "cross-env FILE=cjs rollup -c",
  72. "build:umd": "cross-env FILE=umd rollup -c",
  73. "build:min": "cross-env FILE=min rollup -c",
  74. "clean": "rimraf build/*",
  75. "copyright": "node license-update.mjs",
  76. "dist:copy": "cpy --flat build/cytoscape.umd.js build/cytoscape.min.js build/cytoscape.cjs.js build/cytoscape.esm.mjs build/cytoscape.esm.min.mjs dist",
  77. "dist": "cross-env NODE_ENV=production run-s build dist:*",
  78. "release": "run-s copyright dist docs",
  79. "watch": "run-s watch:fast",
  80. "watch:sync": "livereload \"build, debug\" -w 500",
  81. "watch:http": "http-server -p 3333 -s -c -1 -o debug",
  82. "watch:fast": "run-p watch:sync watch:http watch:build:fast",
  83. "watch:umd": "run-p watch:sync watch:http watch:build:umd",
  84. "watch:build:fast": "cross-env FILE=umd SOURCEMAPS=true BABEL=false NODE_ENV=development rollup -c -w",
  85. "watch:build:umd": "cross-env FILE=umd SOURCEMAPS=true NODE_ENV=development rollup -c -w",
  86. "watch:build:cjs": "cross-env FILE=cjs SOURCEMAPS=true NODE_ENV=development rollup -c -w",
  87. "test": "run-s test:js test:modules test:playwright lint",
  88. "test:js": "mocha --recursive",
  89. "test:js:debug": "mocha inspect --recursive",
  90. "test:build": "cross-env TEST_BUILD=true mocha",
  91. "test:modules": "mocha test/modules",
  92. "test:modules:debug": "mocha inspect test/modules",
  93. "test:playwright:http": "http-server -p 3333 -s -c -1",
  94. "test:playwright:build": "cross-env FILE=umd SOURCEMAPS=true BABEL=false NODE_ENV=development rollup -c",
  95. "test:playwright:setup": "run-s test:playwright:build test:playwright:http",
  96. "test:playwright": "playwright test",
  97. "docs": "run-s docs:build docs:js",
  98. "docs:js": "cpy --flat build/cytoscape.min.js documentation/js",
  99. "docs:build": "node documentation/docmaker.mjs",
  100. "docs:push": "gh-pages -d documentation",
  101. "benchmark": "run-s benchmark:all",
  102. "benchmark:download": "download https://raw.githubusercontent.com/cytoscape/cytoscape.js/master/dist/cytoscape.cjs.js --out build --filename cytoscape.benchmark.js",
  103. "benchmark:all:exec": "node benchmark/all",
  104. "benchmark:all": "run-s benchmark:download benchmark:all:exec",
  105. "benchmark:single:exec": "node benchmark/single",
  106. "benchmark:single": "run-s benchmark:download benchmark:single:exec"
  107. },
  108. "devDependencies": {
  109. "@babel/core": "^7.26.0",
  110. "@babel/preset-env": "^7.26.0",
  111. "@eslint/js": "^9.18.0",
  112. "@playwright/test": "^1.49.1",
  113. "@rollup/plugin-babel": "^6.0.4",
  114. "@rollup/plugin-commonjs": "^28.0.2",
  115. "@rollup/plugin-node-resolve": "^16.0.0",
  116. "@rollup/plugin-replace": "^6.0.2",
  117. "@rollup/plugin-terser": "^0.4.4",
  118. "@types/node": "^22.10.7",
  119. "benchmark": "^2.1.4",
  120. "bluebird": "^3.5.0",
  121. "chai": "^5.1.2",
  122. "cpy-cli": "^5.0.0",
  123. "cross-env": "^7.0.0",
  124. "download-cli": "^1.0.5",
  125. "eslint": "^9.18.0",
  126. "gh-pages": "^5.0.0",
  127. "gl-matrix": "^3.4.3",
  128. "globals": "^15.14.0",
  129. "handlebars": "^4.7.6",
  130. "heap": "^0.2.7",
  131. "highlight.js": "^10.0.0",
  132. "http-server": "^14.1.1",
  133. "jsonlint": "^1.6.2",
  134. "livereload": "^0.9.1",
  135. "lodash": "^4.17.21",
  136. "marked": "^4.0.10",
  137. "mocha": "^11.1.0",
  138. "npm-run-all": "^4.1.5",
  139. "rimraf": "^3.0.0",
  140. "rollup": "^4.31.0",
  141. "rollup-plugin-license": "^3.5.3"
  142. }
  143. }