-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpackage.json
171 lines (171 loc) · 4.52 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
{
"name": "vscode-python-web-wasm",
"preview": true,
"publisher": "ms-vscode",
"displayName": "Experimental - Python for the Web",
"description": "Experimental support for Python in the Web using WebAssemblies",
"version": "0.13.0",
"author": "Microsoft Corporation",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vscode-python-web-wasm.git"
},
"bugs": {
"url": "https://github.com/microsoft/vscode-python-web-wasm/issues"
},
"engines": {
"vscode": "^1.75.0"
},
"main": "./dist/desktop/extension.js",
"browser": "./dist/web/extension.js",
"activationEvents": [
"onLanguage:python",
"onDebugResolve:python-web-wasm",
"onDebug"
],
"extensionDependencies": [
"ms-vscode.remote-repositories"
],
"dependencies": {
"@types/path-browserify": "^1.0.0",
"@vscode/debugprotocol": "^1.59.0",
"@vscode/sync-api-service": "0.9.0",
"@vscode/wasm-wasi": "0.9.0",
"vscode-uri": "^3.0.7",
"path-browserify": "^1.0.1",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/node": "^16.11.57",
"@types/vscode": "1.75.0",
"@types/uuid": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"esbuild": "^0.17.7",
"eslint": "^8.33.0",
"typescript": "4.9.5",
"serve": "^14.2.0",
"localtunnel": "^2.0.2",
"shelljs": "^0.8.5",
"rimraf": "^4.1.2",
"@vscode/vsce": "^2.17.0"
},
"scripts": {
"vscode:prepublish": "npm run all",
"symlink:vscode-wasm": "node ./bin/symlink",
"compile:tsc": "tsc -b ./tsconfig.json",
"esbuild": "node ./bin/esbuild.mjs",
"watch:tsc": "tsc -b ./tsconfig.json -w",
"watch:esbuild": "node ./bin/esbuild.mjs --watch",
"lint": "node ./node_modules/eslint/bin/eslint.js --ext ts src",
"clean": "rimraf out && rimraf dist",
"all": "npm run clean && npm run compile:tsc && npm run esbuild && npm run lint",
"serve": "serve --cors -l 5000 --ssl-cert $HOME/certs/localhost.pem --ssl-key $HOME/certs/localhost-key.pem -c ./configs/serve.json",
"serve-tunnel": "serve --cors -l 5000 -c ./configs/serve.json",
"tunnel": "lt -p 5000"
},
"contributes": {
"debuggers": [
{
"type": "python-web-wasm",
"languages": [
"python"
],
"label": "Debug Python in WASM",
"configurationAttributes": {
"launch": {
"properties": {
"args": {
"default": [],
"description": "Command line arguments passed to the file.",
"items": {
"type": "string"
},
"type": [
"array",
"string"
]
},
"program": {
"default": "${file}",
"description": "Absolute path to the python file.",
"type": "string"
},
"stopOnEntry": {
"description": "Whether or not to stop the debugger on the first line of the first file",
"default": true,
"type": "boolean"
},
"console": {
"default": "internalConsole",
"description": "Where to launch the debug target",
"type": "string",
"enum": [
"internalConsole",
"integratedTerminal"
],
"enumDescriptions": [
"VS Code's Debug Console (which doesn't support to read from stdin)",
"VSCode's integrated terminal"
]
}
}
}
}
}
],
"breakpoints": [
{
"language": "python"
}
],
"menus": {
"editor/title/run": [
{
"command": "vscode-python-web-wasm.debug.runEditorContents",
"when": "resourceLangId == python",
"group": "navigation@1"
},
{
"command": "vscode-python-web-wasm.debug.debugEditorContents",
"when": "resourceLangId == python",
"group": "navigation@2"
}
]
},
"commands": [
{
"command": "vscode-python-web-wasm.debug.runEditorContents",
"title": "Run Python File in WASM",
"category": "Python WASM",
"enablement": "!inDebugMode",
"icon": "$(play)"
},
{
"command": "vscode-python-web-wasm.debug.debugEditorContents",
"title": "Debug Python File in WASM",
"category": "Python WASM",
"enablement": "!inDebugMode",
"icon": "$(debug-alt)"
},
{
"command": "vscode-python-web-wasm.repl.start",
"title": "Start REPL",
"category": "Python WASM",
"icon": "$(play)"
}
],
"configuration": {
"type": "object",
"title": "Python WASM",
"properties": {
"python.wasm.runtime": {
"scope": "machine-overridable",
"type": "string",
"description": "A URL for a GitHub that hosts the python.wasm file together with the default Python libraries."
}
}
}
}
}