UNPKG

5.78 kBJSONView Raw
1{
2 "name": "vis-network",
3 "version": "9.1.9",
4 "description": "A dynamic, browser-based visualization library.",
5 "homepage": "https://visjs.github.io/vis-network/",
6 "license": "(Apache-2.0 OR MIT)",
7 "repository": {
8 "type": "git",
9 "url": "https://github.com/visjs/vis-network.git"
10 },
11 "bugs": {
12 "url": "https://github.com/visjs/vis-network/issues"
13 },
14 "keywords": [
15 "vis",
16 "visualization",
17 "web based",
18 "browser based",
19 "typescript",
20 "javascript",
21 "chart",
22 "graph",
23 "network",
24 "browser"
25 ],
26 "browser": "peer/umd/vis-network.min.js",
27 "jsnext": "esnext/esm/vis-network.js",
28 "main": "peer/umd/vis-network.js",
29 "module": "peer/esm/vis-network.js",
30 "types": "declarations/index.d.ts",
31 "files": [
32 "HISTORY.md",
33 "LICENSE*",
34 "declarations",
35 "dist",
36 "esnext",
37 "peer",
38 "standalone",
39 "styles"
40 ],
41 "funding": {
42 "type": "opencollective",
43 "url": "https://opencollective.com/visjs"
44 },
45 "scripts": {
46 "serve": "serve -l tcp://127.0.0.1:58253",
47 "test": "npm run test:unit && npm run test:e2e:functional && npm run test:e2e:visual",
48 "test:e2e:functional": "cross-env CYPRESS_FUNCTIONAL=true npm run test:e2e:headless",
49 "test:e2e:gui": "start-server-and-test test:e2e:transpile-watch-and-serve \"http://127.0.0.1:58253\" \"cypress open\"",
50 "test:e2e:headless": "start-server-and-test test:e2e:transpile-and-serve \"http://127.0.0.1:58253\" \"cypress run\"",
51 "test:e2e:transpile": "tsc --project cypress",
52 "test:e2e:transpile-and-serve": "npm run test:e2e:transpile && npm run serve",
53 "test:e2e:transpile-and-watch": "npm run test:e2e:transpile -- --watch",
54 "test:e2e:transpile-watch-and-serve": "npm run test:e2e:transpile && start-server-and-test serve :58253 test:e2e:transpile-and-watch",
55 "test:e2e:visual": "npm run test:e2e:visual:update:latest && npm run test:e2e:visual:verify:head",
56 "test:e2e:visual:update:base": "shx rm -rf \"cypress/snapshots/*\" && cross-env CYPRESS_VISUAL=true CYPRESS_UPDATE=true npm run test:e2e:headless",
57 "test:e2e:visual:update:head": "npm run test:e2e:visual:update:base",
58 "test:e2e:visual:update:latest": "cross-env CYPRESS_VIS_NETWORK_TAG=latest npm run test:e2e:visual:update:base",
59 "test:e2e:visual:verify:base": "cross-env CYPRESS_VISUAL=true npm run test:e2e:headless",
60 "test:e2e:visual:verify:head": "npm run test:e2e:visual:verify:base",
61 "test:e2e:visual:verify:latest": "cross-env CYPRESS_VIS_NETWORK_TAG=latest npm run test:e2e:visual:verify:base",
62 "test:unit": "cross-env BABEL_ENV=test-cov nyc mocha --exit",
63 "build": "npm run build:declarations && npm run build:code && npm run build:legacy:types && npm run build:legacy:code && npm run build:legacy:images",
64 "build:legacy:types": "shx mkdir -p dist && shx cp -r \"types/\" dist && tsc -p tsconfig.types.json",
65 "build:legacy:code": "rollup --bundleConfigAsCjs --config rollup.config.js",
66 "build:legacy:images": "shx mkdir -p dist/img/network && shx cp \"lib/assets/*\" dist/img/network",
67 "build:declarations": "shx mkdir -p declarations && shx cp -r \"types/*\" declarations && tsc -p tsconfig.declarations.json",
68 "build:code": "rollup --bundleConfigAsCjs --config rollup.build.js",
69 "build:watch": "rollup --bundleConfigAsCjs --watch --config rollup.build.js",
70 "prepublishOnly": "npm run build",
71 "generate-examples-index": "generate-examples-index --config generate-examples-index.json",
72 "style": "prettier --check .",
73 "style-fix": "prettier --write .",
74 "lint": "eslint --ext .js,.ts .",
75 "lint-fix": "eslint --fix --ext .js,.ts .",
76 "clean": "shx rm -rf \"declarations\" \"dist\" \"examples/index.html\" \"examples/static/*\" \"peer\" \"standalone\" \"styles\" \"vis-network*\" \"cypress/{fixtures,integration,pages,support}/**/*.js{,.map}\" \"cypress/snapshots/{actual,diff}/*\"",
77 "prepare": "husky install"
78 },
79 "husky": {
80 "hooks": {
81 "pre-commit": "lint-staged"
82 }
83 },
84 "lint-staged": {
85 "*.{js,ts,css,html,json,md,yml,yaml}": "prettier --write",
86 "*.{js,ts}": "eslint --fix",
87 ".*.{js,ts,css,html,json,md,yml,yaml}": "prettier --write",
88 ".*.{js,ts}": "eslint --fix"
89 },
90 "config": {
91 "snap-shot-it": {
92 "sortSnapshots": true,
93 "useRelativePath": true
94 }
95 },
96 "peerDependencies": {
97 "@egjs/hammerjs": "^2.0.0",
98 "component-emitter": "^1.3.0",
99 "keycharm": "^0.2.0 || ^0.3.0 || ^0.4.0",
100 "uuid": "^3.4.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
101 "vis-data": "^6.3.0 || ^7.0.0",
102 "vis-util": "^5.0.1"
103 },
104 "devDependencies": {
105 "@babel/plugin-proposal-object-rest-spread": "7.18.0",
106 "@egjs/hammerjs": "2.0.17",
107 "@mdi/font": "7.3.67",
108 "@semantic-release/commit-analyzer": "11.0.0",
109 "@semantic-release/github": "9.2.1",
110 "@semantic-release/npm": "11.0.1",
111 "@semantic-release/release-notes-generator": "12.0.0",
112 "@types/chai": "4.3.9",
113 "@types/mocha": "10.0.3",
114 "@types/sinon": "10.0.20",
115 "@types/uuid": "9.0.6",
116 "compare-versions": "6.1.0",
117 "component-emitter": "1.3.0",
118 "cross-env": "7.0.3",
119 "cypress": "13.3.0",
120 "cypress-visual-regression": "3.0.0",
121 "eslint": "8.52.0",
122 "gh-pages": "6.0.0",
123 "husky": "8.0.3",
124 "jsdom": "22.1.0",
125 "jsdom-global": "3.0.2",
126 "keycharm": "0.4.0",
127 "lint-staged": "15.0.2",
128 "mocha": "10.2.0",
129 "nyc": "15.1.0",
130 "postcss": "8.4.31",
131 "sazerac": "2.0.0",
132 "semantic-release": "22.0.6",
133 "serve": "14.2.1",
134 "shx": "0.3.4",
135 "sinon": "17.0.1",
136 "snap-shot-it": "7.9.10",
137 "start-server-and-test": "2.0.1",
138 "tmp-promise": "3.0.2",
139 "uuid": "9.0.1",
140 "vis-data": "7.1.7",
141 "vis-dev-utils": "4.0.41",
142 "vis-util": "5.0.5"
143 }
144}