-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
82 lines (82 loc) · 2.17 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
{
"name": "liang-barsky",
"type": "module",
"version": "1.0.12",
"author": "Alexander Milevski <alex@milevski.co>",
"license": "MIT",
"description": "Liang-Barsky line clipping algorithm",
"main": "dist/index.mjs",
"browser": "dist/index.umd.js",
"jsdelivr": "dist/index.mjs",
"module": "dist/index.mjs",
"node": "dist/index.cjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"scripts": {
"benchmark": "node benchmark.mjs",
"build": "vite build && npm run types && npm run docs",
"start": "rollup -c rollup.config.ts -w",
"types": "tsc --declaration --emitDeclarationOnly src/index.ts --outDir dist",
"test": "vitest run",
"test:watch": "vitest --coverage --watch",
"test:prod": "vitest run --coverage",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"docs:api": "typedoc --out dist/web/docs --theme default src",
"docs:demo": "vite -c demo/vite.config.ts build",
"docs": "npm run docs:demo && npm run docs:api",
"docs:publish": "npm run docs && gh-pages -t --nojekyll -d dist/web",
"dev": "vite -c demo/vite.config.ts"
},
"lint-staged": {
"{src,test}/**/*.ts": [
"prettier --write",
"git add"
]
},
"prettier": {
"semi": true,
"singleQuote": true
},
"devDependencies": {
"@types/benchmark": "^2.1.5",
"benchmark": "^2.1.4",
"eslint": "^9.11.1",
"gh-pages": "^6.1.1",
"husky": "^1.0.1",
"lineclip": "^1.1.5",
"lint-staged": "^13.0.3",
"prettier": "^1.14.3",
"prompt": "^1.0.0",
"reify": "^0.18.1",
"rimraf": "^2.6.2",
"tsx": "^4.19.1",
"typedoc": "^0.26.7",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"vitest": "^2.1.1"
},
"directories": {
"test": "tests"
},
"repository": {
"type": "git",
"url": "git+/~https://github.com/w8r/liang-barsky.git"
},
"keywords": [
"liang-barsky",
"line",
"clipping",
"geometry",
"algorithm"
],
"bugs": {
"url": "/~https://github.com/w8r/liang-barsky/issues"
},
"homepage": "/~https://github.com/w8r/liang-barsky#readme"
}