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