-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
99 lines (99 loc) · 2.89 KB
/
Copy pathpackage.json
File metadata and controls
99 lines (99 loc) · 2.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
{
"name": "dwf-viewer",
"version": "0.6.7",
"private": false,
"type": "module",
"description": "World's first open-source pure frontend DWF/DWFx preview component with WebGL XPS/W2D 2D rendering, W3D/HSF 3D rendering, embedded fonts, and WASM fallback.",
"license": "AGPL-3.0-only",
"author": "flyfish-dev",
"homepage": "https://github.com/flyfish-dev/dwf-viewer#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/flyfish-dev/dwf-viewer.git"
},
"bugs": {
"url": "https://github.com/flyfish-dev/dwf-viewer/issues"
},
"keywords": [
"dwf",
"dwf-viewer",
"dwfx",
"dwfx-viewer",
"w2d",
"w3d",
"hsf",
"xps",
"cad",
"pure-frontend",
"frontend",
"lineweight",
"line-width",
"xps-webgl",
"viewer",
"webgl",
"threejs",
"wasm"
],
"sideEffects": [
"styles/dwf-viewer.css"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./styles.css": "./styles/dwf-viewer.css",
"./wasm/dwfv-render.wasm": "./public/dwfv-render.wasm",
"./package.json": "./package.json"
},
"files": [
"dist",
"public/dwfv-render.wasm",
"styles/dwf-viewer.css",
"README.md",
"LICENSE",
"NOTICE",
"CHANGELOG.md",
"PRODUCTION_3D_NOTES.md"
],
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=18"
},
"packageManager": "npm@11.12.1",
"scripts": {
"build:wasm": "bash scripts/build-wasm.sh",
"build:ts": "tsc -p tsconfig.json",
"build": "npm run build:wasm && npm run build:ts",
"build:demo": "npm run build && node scripts/build-demo.mjs",
"clean": "rm -rf dist demo-dist public/dwfv-render.wasm",
"inspect:dwfx": "node scripts/inspect-dwfx.mjs",
"validate:production": "node scripts/validate-production.mjs",
"test:color-policy": "npm run build:ts && node scripts/validate-monochrome.mjs && node scripts/validate-contrast.mjs",
"check:examples": "node scripts/check-examples.mjs",
"check:package": "node scripts/package-check.mjs",
"prepublishOnly": "npm run build && npm run validate:production && npm run check:package",
"pack:dry": "npm pack --dry-run",
"publish:unscoped": "node scripts/publish-npm.mjs dwf-viewer",
"publish:scoped": "node scripts/publish-npm.mjs @flyfish-dev/dwf-viewer",
"publish:all": "node scripts/publish-npm.mjs dwf-viewer @flyfish-dev/dwf-viewer",
"demo:serve": "npm run build:demo && python3 -m http.server 8080 -d demo-dist",
"deploy:pages": "npm run build:demo && npx wrangler pages deploy demo-dist --project-name=dwf-viewer-demo --branch=main"
},
"devDependencies": {
"typescript": "^4.9.5"
},
"peerDependencies": {
"three": ">=0.150.0"
},
"peerDependenciesMeta": {
"three": {
"optional": true
}
}
}