Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
122 lines (122 loc) · 4.02 KB
/
Copy pathpackage.json
File metadata and controls
122 lines (122 loc) · 4.02 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
{
"name": "xhtml-reader-previewer",
"displayName": "XHTML Reader Previewer",
"description": "Live XHTML and EPUB reader preview for VS Code-compatible IDEs.",
"version": "0.2.0",
"icon": "media/icon.png",
"publisher": "selvagant",
"author": "selvagant",
"license": "MIT",
"pricing": "Free",
"homepage": "https://github.com/intxdv/XHTML-Reader-Previewer#readme",
"bugs": {
"url": "https://github.com/intxdv/XHTML-Reader-Previewer/issues"
},
"galleryBanner": {
"color": "#18181b",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/intxdv/XHTML-Reader-Previewer.git"
},
"keywords": [
"xhtml",
"epub",
"ebook",
"reader",
"preview",
"viewer",
"book"
],
"engines": {
"vscode": "^1.95.0"
},
"categories": [
"Other"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "xhtmlReader.openPreview",
"title": "XHTML Reader: Open Preview"
},
{
"command": "xhtmlReader.openSplitPreview",
"title": "XHTML Reader: Open Split Preview"
}
],
"menus": {
"explorer/context": [
{
"command": "xhtmlReader.openPreview",
"when": "resourceExtname == .xhtml || resourceExtname == .html || resourceExtname == .htm || resourceExtname == .epub",
"group": "navigation"
},
{
"command": "xhtmlReader.openSplitPreview",
"when": "resourceExtname == .xhtml || resourceExtname == .html || resourceExtname == .htm || resourceExtname == .epub",
"group": "navigation@1"
}
],
"editor/title": [
{
"command": "xhtmlReader.openPreview",
"when": "resourceExtname == .xhtml || resourceExtname == .html || resourceExtname == .htm || resourceExtname == .epub",
"group": "navigation"
}
]
},
"customEditors": [
{
"viewType": "xhtmlReader.epubEditor",
"displayName": "XHTML EPUB Reader",
"selector": [
{
"filenamePattern": "*.epub"
}
],
"priority": "default"
},
{
"viewType": "xhtmlReader.customEditor",
"displayName": "XHTML Reader Previewer",
"selector": [
{
"filenamePattern": "*.xhtml"
},
{
"filenamePattern": "*.html"
},
{
"filenamePattern": "*.htm"
}
],
"priority": "option"
}
]
},
"scripts": {
"build": "npm run build:all",
"build:core": "tsc -p tsconfig.core.json --noEmit",
"build:vscode": "esbuild src/vscode/extension.ts --bundle --platform=node --format=cjs --external:vscode --outfile=dist/extension.js && esbuild src/core/xhtml.ts --bundle --platform=node --format=cjs --outfile=dist/xhtml.js && esbuild src/core/epub.ts --bundle --platform=node --format=cjs --external:vscode --outfile=dist/epub.js && esbuild src/core/state-manager.ts --bundle --platform=node --format=cjs --outfile=dist/state-manager.js && esbuild src/core/archive.ts --bundle --platform=node --format=cjs --outfile=dist/archive.js",
"build:sidecar": "esbuild src/antigravity/sidecar-server.ts --bundle --platform=node --format=cjs --outfile=dist/sidecar-server.cjs",
"build:mcp": "esbuild src/antigravity/mcp-server.ts --bundle --platform=node --format=cjs --outfile=dist/mcp-server.cjs",
"build:plugin": "npm run build:sidecar && npm run build:mcp",
"build:all": "npm run build:vscode && npm run build:plugin",
"package:vsix": "npx @vscode/vsce package --no-dependencies",
"install:plugin": "node scripts/install-plugin.js",
"deploy:local-plugin": "node scripts/install-plugin.js",
"check": "tsc --noEmit",
"check:core": "npm run build:core",
"test": "npm run build && node --test test/*.test.mjs",
"watch": "npm run build:vscode -- --watch"
},
"devDependencies": {
"@types/node": "^22.13.0",
"@types/vscode": "^1.95.0",
"esbuild": "^0.25.0",
"typescript": "^5.8.2"
}
}