Skip to content

Commit d46b7a2

Browse files
squash!
1 parent 1d40c0f commit d46b7a2

1 file changed

Lines changed: 327 additions & 0 deletions

File tree

package.json

Lines changed: 327 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,327 @@
1+
{
2+
"name": "__EXTENSIONNAME__",
3+
"displayName": "__DISPLAYNAME__",
4+
"description": "__DESCRIPTION__",
5+
"version": "0.0.0-UNTRACKEDVERSION",
6+
"publisher": "__PUBLISHER__",
7+
"instrumentationKey": "__AIKEY__",
8+
"icon": "assets/icon.png",
9+
"engines": {
10+
"vscode": "^1.43.0"
11+
},
12+
"categories": [
13+
"Other"
14+
],
15+
"preview": true,
16+
"license": "MIT",
17+
"homepage": "https://github.com/microsoft/vscode-python-devicesimulator",
18+
"repository": {
19+
"type": "git",
20+
"url": "https://github.com/microsoft/vscode-python-devicesimulator"
21+
},
22+
"bugs": {
23+
"url": "https://github.com/microsoft/vscode-python-devicesimulator/issues"
24+
},
25+
"keywords": [
26+
"python",
27+
"CircuitPython",
28+
"Adafruit",
29+
"microbit",
30+
"MicroPython"
31+
],
32+
"activationEvents": [
33+
"onCommand:deviceSimulatorExpress.common.installDependencies",
34+
"onCommand:deviceSimulatorExpress.common.openSerialMonitor",
35+
"onCommand:deviceSimulatorExpress.common.runSimulator",
36+
"onCommand:deviceSimulatorExpress.common.selectSerialPort",
37+
"onCommand:deviceSimulatorExpress.common.gettingStarted",
38+
"onCommand:deviceSimulatorExpress.common.deployToDevice",
39+
"onCommand:deviceSimulatorExpress.common.newFile",
40+
"onCommand:deviceSimulatorExpress.common.openSimulator",
41+
"onDebug"
42+
],
43+
"main": "./out/extension.js",
44+
"contributes": {
45+
"commands": [
46+
{
47+
"command": "deviceSimulatorExpress.common.installDependencies",
48+
"title": "%deviceSimulatorExpressExtension.commands.common.installDependencies%",
49+
"category": "%deviceSimulatorExpressExtension.commands.common.label%"
50+
},
51+
{
52+
"command": "deviceSimulatorExpress.common.changeBaudRate",
53+
"title": "%deviceSimulatorExpressExtension.commands.common.changeBaudRate%",
54+
"category": "%deviceSimulatorExpressExtension.commands.common.label%"
55+
},
56+
{
57+
"command": "deviceSimulatorExpress.common.closeSerialMonitor",
58+
"title": "%deviceSimulatorExpressExtension.commands.common.closeSerialMonitor%",
59+
"category": "%deviceSimulatorExpressExtension.commands.common.label%"
60+
},
61+
{
62+
"command": "deviceSimulatorExpress.common.openSerialMonitor",
63+
"title": "%deviceSimulatorExpressExtension.commands.common.openSerialMonitor%",
64+
"category": "%deviceSimulatorExpressExtension.commands.common.label%"
65+
},
66+
{
67+
"command": "deviceSimulatorExpress.common.selectSerialPort",
68+
"title": "%deviceSimulatorExpressExtension.commands.common.selectSerialPort%",
69+
"category": "%deviceSimulatorExpressExtension.commands.common.label%"
70+
},
71+
{
72+
"command": "deviceSimulatorExpress.common.runSimulator",
73+
"title": "%deviceSimulatorExpressExtension.commands.common.runSimulator%",
74+
"category": "%deviceSimulatorExpressExtension.commands.common.label%"
75+
},
76+
{
77+
"command": "deviceSimulatorExpress.common.gettingStarted",
78+
"title": "%deviceSimulatorExpressExtension.commands.common.gettingStarted%",
79+
"category": "%deviceSimulatorExpressExtension.commands.common.label%"
80+
},
81+
{
82+
"command": "deviceSimulatorExpress.common.deployToDevice",
83+
"title": "%deviceSimulatorExpressExtension.commands.common.deployToDevice%",
84+
"category": "%deviceSimulatorExpressExtension.commands.common.label%"
85+
},
86+
{
87+
"command": "deviceSimulatorExpress.common.newFile",
88+
"title": "%deviceSimulatorExpressExtension.commands.common.newFile%",
89+
"category": "%deviceSimulatorExpressExtension.commands.common.label%"
90+
},
91+
{
92+
"command": "deviceSimulatorExpress.common.openSimulator",
93+
"title": "%deviceSimulatorExpressExtension.commands.common.openSimulator%",
94+
"category": "%deviceSimulatorExpressExtension.commands.common.label%"
95+
}
96+
],
97+
"colors": [
98+
{
99+
"id": "highContrastButtonBorderOverride.color",
100+
"description": "Color for the high contrast border updated",
101+
"defaults": {
102+
"dark": "debugToolBar.background",
103+
"light": "debugToolBar.background",
104+
"highContrast": "#6FC3DF"
105+
}
106+
},
107+
{
108+
"id": "badgeForegroundOverride",
109+
"description": "Color that fixes the issue with midnight blue ",
110+
"defaults": {
111+
"dark": "#FFFFFF",
112+
"light": "badge.foreground",
113+
"highContrast": "#FFFFFF"
114+
}
115+
}
116+
],
117+
"configuration": {
118+
"type": "object",
119+
"title": "%deviceSimulatorExpressExtension.configuration.title%",
120+
"properties": {
121+
"deviceSimulatorExpress.configNewEnvironmentUponSwitch": {
122+
"type": "boolean",
123+
"default": false,
124+
"description": "%deviceSimulatorExpressExtension.configuration.properties.configEnvOnChange%",
125+
"scope": "resource"
126+
},
127+
"deviceSimulatorExpress.enableUSBDetection": {
128+
"type": "boolean",
129+
"default": true
130+
},
131+
"deviceSimulatorExpress.showDependencyInstall": {
132+
"type": "boolean",
133+
"default": true,
134+
"description": "%deviceSimulatorExpressExtension.configuration.properties.dependencyChecker%",
135+
"scope": "resource"
136+
},
137+
"deviceSimulatorExpress.showNewFilePopup": {
138+
"type": "boolean",
139+
"default": true,
140+
"scope": "resource"
141+
},
142+
"deviceSimulatorExpress.debuggerServerPort": {
143+
"type": "number",
144+
"default": 5577,
145+
"description": "%deviceSimulatorExpressExtension.configuration.properties.debuggerPort%",
146+
"scope": "resource"
147+
}
148+
}
149+
},
150+
"breakpoints": [
151+
{
152+
"language": "python"
153+
}
154+
],
155+
"debuggers": [
156+
{
157+
"type": "deviceSimulatorExpress",
158+
"label": "Device Simulator Express Debugger",
159+
"languages": [
160+
"python"
161+
],
162+
"configurationAttributes": {
163+
"launch": {
164+
"properties": {
165+
"program": {
166+
"type": "string",
167+
"description": "Absolute path to the code file.",
168+
"default": "${file}"
169+
},
170+
"stopOnEntry": {
171+
"type": "boolean",
172+
"description": "Automatically stop after launch.",
173+
"default": true
174+
},
175+
"console": {
176+
"enum": [
177+
"internalConsole",
178+
"integratedTerminal",
179+
"externalTerminal"
180+
],
181+
"description": "Where to launch the debug target: internal console, integrated terminal, or external terminal.",
182+
"default": "integratedTerminal"
183+
},
184+
"args": {
185+
"type": "array",
186+
"description": "Command line arguments passed to the program.",
187+
"default": [],
188+
"items": {
189+
"filePath": "string",
190+
"serverPort": "string"
191+
}
192+
},
193+
"rules": {
194+
"type": "array",
195+
"description": "Debugger rules.",
196+
"default": [],
197+
"items": {
198+
"path": "string",
199+
"include": "boolean"
200+
}
201+
}
202+
}
203+
}
204+
},
205+
"initialConfigurations": [
206+
{
207+
"type": "deviceSimulatorExpress",
208+
"request": "launch",
209+
"name": "Device Simulator Express Debugger",
210+
"console": "integratedTerminal"
211+
}
212+
],
213+
"configurationSnippets": [
214+
{
215+
"label": "Device Simulator Express Debugger : Launch",
216+
"description": "Device Simulator Express Debugger - A configuration for debugging a python code file for the Device Simulator Express simulator.",
217+
"body": {
218+
"type": "deviceSimulatorExpress",
219+
"request": "launch",
220+
"name": "Device Simulator Express Debugger",
221+
"console": "integratedTerminal"
222+
}
223+
}
224+
]
225+
}
226+
]
227+
},
228+
"scripts": {
229+
"start": "webpack-dev-server",
230+
"vscode:prepublish": "npm run compile",
231+
"build": "gulp build",
232+
"clean": "gulp clean",
233+
"compile": "npm-run-all compile:*",
234+
"compile:extension": "gulp compile",
235+
"compile:views": "webpack --mode development",
236+
"watch": "npm-run-all -p watch:*",
237+
"watch:extension": "tsc --watch",
238+
"watch:views": "webpack --watch --mode development",
239+
"pretest": "npm run compile",
240+
"test": "npm-run-all test:*",
241+
"test:extension-tests": "node ./out/test/runTest.js",
242+
"test:ts": "jest",
243+
"test:api-tests": "pytest src",
244+
"lint": "npm-run-all lint:*",
245+
"lint:ts": "tslint -c tslint.json src/**/*.{ts,tsx}",
246+
"lint:python": "pylint src",
247+
"format": "npm-run-all format:*",
248+
"format:ts": "prettier --config .prettierrc.yaml --write src/**/*.{css,ts,tsx}",
249+
"format:python": "black src",
250+
"check": "npm-run-all check:*",
251+
"check:ts": "prettier --config .prettierrc.yaml --check src/**/*.{css,ts,tsx}",
252+
"check:python": "black src --check",
253+
"package": "vsce package"
254+
},
255+
"devDependencies": {
256+
"@types/glob": "^7.1.1",
257+
"@types/node": "^10.12.21",
258+
"@types/react": "16.8.6",
259+
"@types/react-dom": "16.8.4",
260+
"@types/vscode": "^1.45.1",
261+
"css-loader": "^1.0.0",
262+
"del": "^4.0.0",
263+
"event-stream": "^4.0.1",
264+
"gulp": "^4.0.2",
265+
"gulp-cli": "^2.1.0",
266+
"gulp-filter": "^5.1.0",
267+
"gulp-sourcemaps": "^2.6.5",
268+
"gulp-typescript": "^5.0.1",
269+
"less": "^3.7.0",
270+
"less-loader": "^4.1.0",
271+
"mocha": "^6.1.4",
272+
"npm-run-all": "^4.1.3",
273+
"prettier": "^1.19.1",
274+
"react-scripts": "^3.4.0",
275+
"style-loader": "^0.21.0",
276+
"ts-import-plugin": "^1.5.4",
277+
"ts-loader": "^4.4.2",
278+
"tslint": "^5.12.1",
279+
"tslint-config-prettier": "^1.18.0",
280+
"tslint-microsoft-contrib": "^6.1.0",
281+
"tslint-react": "^3.6.0",
282+
"tslint-react-hooks": "^2.0.0",
283+
"typescript": "^3.8.3",
284+
"typescript-react-intl": "^0.4.0",
285+
"version-from-git": "^1.1.1",
286+
"vsce": "^1.47.0",
287+
"vscode-nls-dev": "^3.2.6",
288+
"vscode-test": "^1.0.0",
289+
"webpack": "^4.15.1",
290+
"webpack-cli": "^3.0.8"
291+
},
292+
"dependencies": {
293+
"@babel/preset-typescript": "^7.8.3",
294+
"@testing-library/jest-dom": "^5.0.2",
295+
"@testing-library/react": "^9.4.0",
296+
"@types/jest": "^24.9.0",
297+
"@types/open": "^6.1.0",
298+
"@types/react-test-renderer": "^16.9.0",
299+
"@types/socket.io": "^2.1.2",
300+
"babel-jest": "^25.1.0",
301+
"compare-versions": "^3.5.1",
302+
"eventemitter2": "^5.0.1",
303+
"glob": "^7.1.4",
304+
"jest": "^25.1.0",
305+
"jest-transform-css": "^2.0.0",
306+
"office-ui-fabric-react": "^7.105.12",
307+
"open": "^6.4.0",
308+
"os": "^0.1.1",
309+
"react": "^16.9.0",
310+
"react-dom": "^16.9.0",
311+
"react-intl": "^3.1.9",
312+
"react-test-renderer": "^16.9.0",
313+
"socket.io": "^2.4.0",
314+
"svg-inline-react": "^3.1.0",
315+
"ts-jest": "^25.0.0",
316+
"usb-native": "^5.0.1",
317+
"util": "^0.12.1",
318+
"vscode-extension-telemetry": "^0.1.1",
319+
"vscode-nls": "^4.1.0"
320+
},
321+
"eslintConfig": {
322+
"extends": "react-app"
323+
},
324+
"extensionDependencies": [
325+
"ms-python.python"
326+
]
327+
}

0 commit comments

Comments
 (0)