Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
186 lines (186 loc) · 7.31 KB
/
Copy pathpackage.json
File metadata and controls
186 lines (186 loc) · 7.31 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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"name": "han-flow",
"version": "1.0.0-rc.1",
"description": "Windows와 macOS용 HWP/HWPX 뷰어 및 제한적 HWPX 편집기",
"author": "Seongwon Park",
"license": "Apache-2.0",
"packageManager": "npm@10.9.3",
"engines": {
"node": ">=22 <23",
"npm": ">=10 <12"
},
"main": "./out/main/index.js",
"build": {
"appId": "com.hanflow.viewer",
"productName": "Han-Flow",
"asar": true,
"extraResources": [
{
"from": "node_modules/@rhwp/core/LICENSE",
"to": "licenses/rhwp-MIT.txt"
},
{
"from": "THIRD_PARTY_NOTICES.md",
"to": "licenses/THIRD_PARTY_NOTICES.md"
},
{
"from": "LICENSE",
"to": "licenses/Han-Flow-Apache-2.0.txt"
}
],
"directories": {
"output": "release"
},
"files": ["out/**/*", "package.json"],
"linux": {
"target": ["dir"],
"category": "Office",
"icon": "build/icon.png",
"executableName": "han-flow",
"fileAssociations": [
{ "ext": "hwp", "name": "HWP 문서", "mimeType": "application/x-hwp" },
{ "ext": "hwpx", "name": "HWPX 문서", "mimeType": "application/hwp+zip" }
]
},
"win": {
"target": [{ "target": "nsis", "arch": ["x64"] }, "dir"],
"icon": "build/icon.ico",
"artifactName": "Han-Flow-${version}-win-x64.${ext}",
"fileAssociations": [
{
"ext": "hwp",
"name": "HWP 문서",
"description": "HWP 문서",
"mimeType": "application/x-hwp",
"role": "Viewer"
},
{
"ext": "hwpx",
"name": "HWPX 문서",
"description": "HWPX 문서",
"mimeType": "application/hwp+zip",
"role": "Viewer"
}
]
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"shortcutName": "Han-Flow",
"language": "1042",
"deleteAppDataOnUninstall": false
},
"mac": {
"category": "public.app-category.productivity",
"minimumSystemVersion": "13.0",
"icon": "build/icon.icns",
"identity": null,
"target": ["dir"],
"extendInfo": {
"CFBundleDisplayName": "Han-Flow",
"CFBundleDocumentTypes": [
{
"CFBundleTypeName": "HWP 문서",
"CFBundleTypeRole": "Viewer",
"CFBundleTypeIconFile": "icon.icns",
"CFBundleTypeExtensions": ["hwp"],
"LSHandlerRank": "Alternate"
},
{
"CFBundleTypeName": "HWPX 문서",
"CFBundleTypeRole": "Viewer",
"CFBundleTypeIconFile": "icon.icns",
"CFBundleTypeExtensions": ["hwpx"],
"LSHandlerRank": "Alternate",
"LSItemContentTypes": ["com.hanflow.hwpx", "com.haansoft.hancomofficeviewer.mac.hwpx"]
}
],
"UTExportedTypeDeclarations": [
{
"UTTypeIdentifier": "com.hanflow.hwpx",
"UTTypeDescription": "HWPX 문서",
"UTTypeConformsTo": ["public.data", "public.archive"],
"UTTypeTagSpecification": {
"public.filename-extension": ["hwpx"],
"public.mime-type": "application/hwp+zip"
}
}
]
}
}
},
"scripts": {
"dev": "electron-vite dev",
"build": "electron-vite build",
"icon:ico": "node scripts/build/make_ico.mjs",
"typecheck": "tsc --noEmit && tsc -p src/renderer/tsconfig.json --noEmit",
"package:mac": "npm run build && electron-builder --mac dir --publish never",
"package:win": "npm run build && electron-builder --win dir --x64 --publish never",
"package:win:installer": "npm run build && electron-builder --win nsis --x64 --publish never",
"package:win:release": "node scripts/build/check_windows_signing.mjs && npm run build && electron-builder --config scripts/build/electron-builder.win-release.cjs --win nsis --x64 --publish never",
"package:linux": "npm run build && electron-builder --linux dir --publish never",
"experiment:package:mac:x64": "npm run build && electron-builder --mac dir --x64 --publish never",
"experiment:package:mac:universal": "npm run build && electron-builder --mac dir --universal --publish never",
"preview": "electron-vite preview",
"test": "jest",
"benchmark:decoder": "HAN_FLOW_BENCHMARK=1 jest --runInBand tests/performance/decoder_benchmark.test.ts",
"benchmark:app": "node scripts/benchmark_app.mjs",
"benchmark:memory": "node scripts/benchmark_memory.mjs",
"benchmark:edit-latency": "node scripts/benchmark_edit_latency.mjs",
"measure:package": "node scripts/measure_package_size.mjs",
"verify:notices": "node scripts/verify_package_notices.mjs",
"verify:app": "node scripts/verify_app.mjs",
"verify:ime:mac": "node scripts/verify_macos_ime.mjs",
"verify:ime:mac:matrix": "npm run verify:ime:mac -- --scenario basic --surface paragraph && npm run verify:ime:mac -- --scenario basic --surface cell && npm run verify:ime:mac -- --scenario backspace --surface paragraph && npm run verify:ime:mac -- --scenario escape --surface paragraph && npm run verify:ime:mac -- --scenario range-forward --surface paragraph && npm run verify:ime:mac -- --scenario range-backward --surface paragraph && npm run verify:ime:mac -- --scenario history --surface paragraph",
"verify:matrix": "node scripts/verify_public_matrix.mjs",
"verify:corpus": "node scripts/verify_public_corpus.mjs",
"corpus:intake": "node scripts/corpus/intake_external_fixture.mjs",
"corpus:editing-coverage": "node scripts/corpus/editing_coverage.mjs",
"verify:hwp-matrix": "node scripts/verify_hwp_matrix.mjs",
"verify:pdf": "node scripts/verify_pdf.mjs",
"fixture:v3-acceptance": "node scripts/create_v3_acceptance_bundle.mjs",
"fixture:v3-windows": "node scripts/create_v3_acceptance_bundle.mjs artifacts/v3-windows",
"fixture:hwp": "electron scripts/fixtures/generate_public_hwp_main.cjs tests/fixtures/public/synthetic-layout.hwp",
"probe:hwp": "node scripts/probes/compare_hwp_probes.mjs",
"test:probe": "node --test scripts/probes/*.test.mjs",
"release:audit": "node scripts/audit_macos_release.mjs",
"release:audit:win": "node scripts/audit_windows_release.mjs",
"experiment:verify:mac-arch": "node scripts/verify_macos_architectures.mjs",
"release:check": "node scripts/release_check.mjs"
},
"dependencies": {
"adm-zip": "0.6.0",
"cfb": "^1.2.2",
"fast-xml-parser": "5.11.0",
"font-list": "^2.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"unzipper": "0.12.5"
},
"devDependencies": {
"@electron/asar": "3.4.1",
"@electron-toolkit/eslint-config-prettier": "^2.0.0",
"@electron-toolkit/eslint-config-ts": "^1.0.1",
"@electron-toolkit/tsconfig": "^1.0.1",
"@electron-toolkit/utils": "^3.0.0",
"@rhwp/core": "0.7.19",
"@types/adm-zip": "^0.5.8",
"@types/jest": "^29.5.11",
"@types/node": "^22.20.4",
"@types/react": "^18.2.42",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react": "^4.7.0",
"electron": "^44.4.5",
"electron-builder": "^26.15.3",
"electron-vite": "^2.3.0",
"eslint": "^8.55.0",
"jest": "^29.7.0",
"kordoc": "4.2.7",
"prettier": "^3.1.0",
"ts-jest": "^29.1.1",
"typescript": "^5.3.3",
"vite": "^5.0.7"
}
}