-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
189 lines (189 loc) · 5.88 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
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
187
188
189
{
"name": "live-code",
"displayName": "Live Code",
"publisher": "ambar",
"description": "Interactive code playground",
"license": "MIT",
"version": "0.0.12",
"private": true,
"repository": {
"url": "https://github.com/ambar/vscode-live-code.git",
"directory": "vscode-live-code"
},
"engines": {
"vscode": "^1.61.0"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact"
],
"icon": "images/logo.png",
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "liveCode.choosePreviewToTheSide",
"title": "Choose Live Code Preview to the Side",
"category": "Live Code",
"icon": "images/logo-plain.svg"
},
{
"command": "liveCode.openBrowserPreviewToSide",
"title": "Open Live Code Preview in Browser to the Side",
"category": "Live Code",
"icon": "images/browser-plain.svg"
},
{
"command": "liveCode.openNodePreviewToSide",
"title": "Open Live Code Preview in Node.js to the Side",
"category": "Live Code",
"icon": "images/node-plain.svg"
},
{
"command": "liveCode.changeCurrentRuntimeOfPreview",
"title": "Change Current Runtime of Live Code Preview",
"category": "Live Code",
"icon": "images/logo-plain.svg"
}
],
"menus": {
"editor/context": [
{
"command": "liveCode.openBrowserPreviewToSide",
"when": "editorLangId in liveCode.supportedLanguageIds",
"group": "liveCode"
},
{
"command": "liveCode.openNodePreviewToSide",
"when": "editorLangId in liveCode.supportedLanguageIds",
"group": "liveCode"
}
],
"editor/title": [
{
"command": "liveCode.openBrowserPreviewToSide",
"when": "editorLangId in liveCode.supportedLanguageIds && config.liveCode.showBrowserPreviewInTitle",
"group": "navigation"
},
{
"command": "liveCode.openNodePreviewToSide",
"when": "editorLangId in liveCode.supportedLanguageIds && config.liveCode.showNodePreviewInTitle",
"group": "navigation"
},
{
"command": "liveCode.choosePreviewToTheSide",
"when": "editorLangId in liveCode.supportedLanguageIds && config.liveCode.showChoosePreviewInTitle",
"group": "navigation"
},
{
"command": "liveCode.changeCurrentRuntimeOfPreview",
"when": "activeWebviewPanelId == 'liveCode.preview'",
"group": "navigation"
}
]
},
"keybindings": [
{
"command": "liveCode.choosePreviewToTheSide",
"key": "ctrl+k l",
"mac": "cmd+k l",
"when": "editorLangId in liveCode.supportedLanguageIds"
}
],
"configuration": {
"type": "object",
"title": "Live Code",
"properties": {
"liveCode.showChoosePreviewInTitle": {
"type": "boolean",
"default": false,
"description": "Wether to show the 'Choose Live Code Preview to the Side' button in the editor title"
},
"liveCode.showBrowserPreviewInTitle": {
"type": "boolean",
"default": true,
"description": "Wether to show the 'Open Live Code Preview in Browser to the Side' button in the editor title"
},
"liveCode.showNodePreviewInTitle": {
"type": "boolean",
"default": true,
"description": "Wether to show the 'Open Live Code Preview in Node.js to the Side' button in the editor title"
},
"liveCode.renderJSX": {
"type": "boolean",
"default": true,
"description": "Wether to render JSX elements in the preview panel (browser platform only)"
},
"liveCode.showLineNumbers": {
"type": "boolean",
"default": true,
"description": "Wether to show line numbers in the preview panel"
}
}
}
},
"scripts": {
"prepare": "yarn build",
"build:vscode": "vsce package --yarn --no-dependencies",
"vscode:prepublish": "yarn build",
"prewatch": "yarn setup",
"watch": "node scripts/build-all.mjs --watch --sourcemap",
"setup": "rm -rf out/** || true",
"copy": "node scripts/copy.mjs",
"build": "yarn setup && node scripts/build-all.mjs --minify --analyze",
"build:extension": "node scripts/build-extension.mjs",
"build:preview": "node scripts/build-preview.mjs",
"lint": "biome check .",
"lint:fix": "biome check --apply .",
"lint:fix-unsafe": "biome check --apply-unsafe .",
"test": "jest"
},
"jest": {
"preset": "es-jest",
"transformIgnorePatterns": [
"/node_modules/(?!(node-fetch-cache)/)"
],
"collectCoverageFrom": [
"src/**/*"
]
},
"dependencies": {
"esbuild": "^0.20.2"
},
"devDependencies": {
"@biomejs/biome": "^1.7.1",
"@emotion/react": "^11.5.0",
"@esbuild-plugins/node-modules-polyfill": "^0.1.2",
"@recommended/biome-config": "^1.0.0",
"@types/jest": "^27.0.2",
"@types/minimist": "^1",
"@types/node": "14.x",
"@types/react": "^17.0.33",
"@types/react-dom": "^17.0.10",
"@types/react-inspector": "^4.0.2",
"@types/vscode": "^1.61.0",
"@vscode/webview-ui-toolkit": "^1.4.0",
"console-feed": "^3.6.0",
"es-jest": "^2.1.0",
"esbuild-node-externals": "^1.13.0",
"is-promise": "^4.0.0",
"jest": "^29.7.0",
"ldrs": "^1.0.1",
"minimist": "^1.2.8",
"node-fetch-cache": "^3.0.3",
"pretty-format": "^27.3.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-inline-center": "^1.0.1",
"react-inspector": "^5.1.1",
"recast": "^0.20.5",
"shiki": "^1.2.3",
"typescript": "^5.4.5"
},
"packageManager": "yarn@4.1.1"
}