-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
116 lines (116 loc) · 3.89 KB
/
Copy pathpackage.json
File metadata and controls
116 lines (116 loc) · 3.89 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
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
{
"name": "@flyfish-dev/cad-viewer",
"version": "0.8.2",
"description": "A production-oriented browser CAD viewer for DWG, DXF, DWF, DWFx and XPS with worker-backed LibreDWG WASM, WebGL/Canvas rendering, external SHX references and native DWF support.",
"type": "module",
"license": "AGPL-3.0-only",
"author": "Yu Wang",
"homepage": "https://cad-viewer-iys.pages.dev",
"repository": {
"type": "git",
"url": "git+https://github.com/flyfish-dev/cad-viewer.git"
},
"bugs": {
"url": "https://github.com/flyfish-dev/cad-viewer/issues"
},
"keywords": [
"cad",
"dwg",
"dxf",
"dwf",
"dwfx",
"xps",
"autocad",
"viewer",
"canvas",
"typescript",
"frontend",
"libredwg",
"shx",
"linetype",
"web-worker",
"wasm",
"webgl",
"gpu",
"cad-viewer",
"w2d",
"w3d",
"dwf-viewer"
],
"sideEffects": [
"*.css",
"./dist/style.css",
"./src/styles.css",
"./demo/styles.css"
],
"main": "./dist/cad-viewer.umd.cjs",
"module": "./dist/cad-viewer.es.js",
"types": "./dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/cad-viewer.es.js",
"require": "./dist/cad-viewer.umd.cjs",
"default": "./dist/cad-viewer.es.js"
},
"./styles.css": "./dist/style.css",
"./package.json": "./package.json",
"./style.css": "./dist/style.css",
"./wasm/libredwg-web.wasm": "./dist/wasm/libredwg-web.wasm",
"./wasm/libredwg-web.js": "./dist/wasm/libredwg-web.js",
"./wasm/dwg-worker.js": "./dist/wasm/dwg-worker.js",
"./dist/index.js": "./dist/index.js",
"./dist/index.d.ts": "./dist/index.d.ts",
"./wasm/dwfv-render.wasm": "./dist/wasm/dwfv-render.wasm"
},
"files": [
"dist",
"README.md",
"README.zh-CN.md",
"LICENSE",
"NOTICE"
],
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"engines": {
"node": ">=20.19.0"
},
"scripts": {
"clean": "node ./scripts/clean.cjs",
"copy:wasm": "node ./scripts/copy-libredwg-wasm.cjs",
"copy:worker": "node ./scripts/copy-worker-asset.cjs",
"dev": "npm run copy:wasm && npm run build:worker && npm run copy:worker && vite --config vite.config.ts --host 0.0.0.0",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "npm run test:regression",
"test:regression": "npm run build:lib && node --test test/*.test.mjs",
"build:types": "tsc -p tsconfig.build.json",
"build:worker": "vite build --config vite.worker.config.ts",
"build:lib": "npm run copy:wasm && vite build --config vite.lib.config.ts && npm run build:worker && npm run build:types && npm run build:assets",
"build:demo": "npm run copy:wasm && npm run build:worker && npm run copy:worker && vite build --config vite.config.ts",
"build": "npm run clean && npm run typecheck && npm run build:lib && npm run build:demo",
"preview": "npm run build:demo && vite preview --config vite.config.ts --host 0.0.0.0",
"pack:dry": "npm pack --dry-run",
"release:npm": "npm publish --access public --auth-type=web",
"pages:dev": "npm run build:demo && wrangler pages dev dist-demo",
"deploy:pages": "npm run build:demo && wrangler pages deploy dist-demo --project-name cad-viewer",
"prepublishOnly": "npm run clean && npm run typecheck && npm run build:lib && node --test test/*.test.mjs && npm run pack:dry",
"build:worker-check": "npm run typecheck && npm run build:demo",
"check:wasm": "node ./scripts/check-wasm.cjs",
"build:assets": "node ./scripts/copy-dist-assets.cjs",
"preview:demo": "npm run preview"
},
"dependencies": {
"@mlightcad/libredwg-web": "0.7.9",
"@mlightcad/shx-parser": "^1.4.5",
"dwf-viewer": "^0.6.7",
"dxf-parser": "^1.1.2"
},
"devDependencies": {
"@types/node": "^20.14.12",
"typescript": "^5.8.3",
"vite": "^7.3.6",
"wrangler": "^4.129.1"
}
}