-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
51 lines (51 loc) · 1.66 KB
/
Copy pathpackage.json
File metadata and controls
51 lines (51 loc) · 1.66 KB
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
{
"name": "graphjs",
"version": "0.0.8",
"description": "GraphJS — a small graph data-structure, layout and rendering engine",
"author": {
"name": "Marc Mouries"
},
"type": "module",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.js",
"browser": "dist/umd/graphjs.min.js",
"jsdelivr": "dist/umd/graphjs.min.js",
"unpkg": "dist/umd/graphjs.min.js",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs",
"default": "./dist/esm/index.js"
}
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist",
"src"
],
"keywords": [
"graph",
"visualization",
"canvas",
"svg",
"force-directed"
],
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/MarcMouries/GraphJS.git"
},
"scripts": {
"clean": "rm -rf dist",
"build:esm": "bun build src/index.js --outfile dist/esm/index.js --format=esm",
"build:cjs": "bun build src/index.js --outfile dist/cjs/index.cjs --format=cjs",
"build:iife": "bun build src/iife.js --outfile dist/umd/graphjs.min.js --format=iife --minify",
"build": "bun run clean && bun run build:esm && bun run build:cjs && bun run build:iife",
"dev": "bun build src/index.js --outfile dist/esm/index.js --format=esm --watch",
"test": "bun test",
"examples": "bun run examples/force-directed.js > examples/img/force-directed.svg && bun run examples/radial.js > examples/img/radial.svg && bun run examples/org-chart.js > examples/img/org-chart.svg",
"examples:lib": "bun build src/index.js --outfile examples/graphjs.esm.js --format=esm && bun build src/iife.js --outfile examples/graphjs.iife.js --format=iife",
"prepublishOnly": "bun run build"
}
}