UNPKG

6.09 kBJSONView Raw
1{
2 "name": "vis-network",
3 "version": "9.1.0",
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://localhost: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 :58253 \"cypress open\"",
50 "test:e2e:headless": "start-server-and-test test:e2e:transpile-and-serve :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": "rimraf \"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": "cpy --parents \"types/**/*\" dist && tsc -p tsconfig.types.json",
65 "build:legacy:code": "rollup --config rollup.config.js",
66 "build:legacy:images": "cpy \"lib/assets/*\" dist/img/network",
67 "build:declarations": "cpy --cwd=types --parents \"**/*\" ../declarations && tsc -p tsconfig.declarations.json",
68 "build:code": "rollup --config rollup.build.js",
69 "build:watch": "rollup --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": "rimraf \"declarations\" \"dist\" \"examples/index.html\" \"examples/static/*\" \"peer\" \"standalone\" \"styles\" \"vis-network*\" \"cypress/{fixtures,integration,pages,support}/**/*.js{,.map}\" \"cypress/snapshots/{actual,diff}/*\"",
77 "postinstall": "opencollective postinstall || exit 0",
78 "prepare": "husky install"
79 },
80 "husky": {
81 "hooks": {
82 "pre-commit": "lint-staged"
83 }
84 },
85 "lint-staged": {
86 "*.{js,ts,css,html,json,md,yml,yaml}": "prettier --write",
87 "*.{js,ts}": "eslint --fix",
88 ".*.{js,ts,css,html,json,md,yml,yaml}": "prettier --write",
89 ".*.{js,ts}": "eslint --fix"
90 },
91 "config": {
92 "snap-shot-it": {
93 "sortSnapshots": true,
94 "useRelativePath": true
95 }
96 },
97 "dependency": {
98 "opencollective": "1.0.3"
99 },
100 "peerDependencies": {
101 "@egjs/hammerjs": "^2.0.0",
102 "component-emitter": "^1.3.0",
103 "keycharm": "^0.2.0 || ^0.3.0 || ^0.4.0",
104 "timsort": "^0.3.0",
105 "uuid": "^3.4.0 || ^7.0.0 || ^8.0.0",
106 "vis-data": "^7.0.0",
107 "vis-util": "^5.0.1"
108 },
109 "devDependencies": {
110 "@egjs/hammerjs": "2.0.17",
111 "@mdi/font": "5.9.55",
112 "@semantic-release/commit-analyzer": "8.0.1",
113 "@semantic-release/github": "7.2.3",
114 "@semantic-release/npm": "7.1.3",
115 "@semantic-release/release-notes-generator": "9.0.3",
116 "@types/chai": "4.2.21",
117 "@types/mocha": "9.0.0",
118 "@types/sinon": "10.0.2",
119 "@types/timsort": "0.3.0",
120 "@types/uuid": "8.3.1",
121 "chai": "4.3.4",
122 "compare-versions": "3.6.0",
123 "component-emitter": "1.3.0",
124 "cpy-cli": "3.1.1",
125 "cross-env": "7.0.3",
126 "cypress": "8.3.1",
127 "cypress-visual-regression": "1.6.0",
128 "eslint": "7.32.0",
129 "gh-pages": "3.2.3",
130 "husky": "7.0.2",
131 "jsdom": "17.0.0",
132 "jsdom-global": "3.0.2",
133 "keycharm": "0.4.0",
134 "lint-staged": "11.1.2",
135 "mocha": "9.1.1",
136 "nyc": "15.1.0",
137 "postcss": "8.3.6",
138 "prettier": "2.3.2",
139 "rimraf": "3.0.2",
140 "rollup": "2.56.3",
141 "rollup-plugin-commonjs": "10.1.0",
142 "rollup-plugin-node-resolve": "5.2.0",
143 "rollup-plugin-postcss": "4.0.1",
144 "rollup-plugin-terser": "7.0.2",
145 "sazerac": "2.0.0",
146 "semantic-release": "17.4.7",
147 "serve": "12.0.0",
148 "sinon": "11.1.2",
149 "snap-shot-it": "7.9.6",
150 "start-server-and-test": "1.13.1",
151 "timsort": "0.3.0",
152 "tslib": "2.3.1",
153 "typescript": "4.4.2",
154 "uuid": "8.3.2",
155 "vis-data": "7.1.2",
156 "vis-dev-utils": "2.9.82",
157 "vis-util": "5.0.2"
158 },
159 "collective": {
160 "type": "opencollective",
161 "url": "https://opencollective.com/visjs"
162 }
163}