-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathpackage.json
157 lines (157 loc) · 5.04 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
{
"name": "lego-spikeprime-mindstorms-vscode",
"displayName": "LEGO SPIKE Prime / MINDSTORMS Robot Inventor Extension",
"description": "Helps you connect Lego's SPIKE Prime/MINDSTORMS Robot Inventor",
"publisher": "PeterStaev",
"version": "1.7.1",
"engines": {
"vscode": "^1.66.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension",
"contributes": {
"configuration": [
{
"title": "LEGO SPIKE Prime / MINDSTORMS Robot Inventor",
"properties": {
"legoSpikePrimeMindstorms.compileBeforeUpload": {
"type": "boolean",
"default": false,
"description": "Compile PY files to MPY before uploading to the LEGO brick."
},
"legoSpikePrimeMindstorms.saveFileToUpload": {
"type": "boolean",
"default": false,
"description": "Saves the result after importing files into current script."
},
"legoSpikePrimeMindstorms.commandTimeoutSeconds": {
"type": "number",
"default": 30,
"description": "Timeout in seconds after which the connection/command will be cancelled."
}
}
}
],
"commands": [
{
"command": "lego-spikeprime-mindstorms-vscode.connectToHub",
"title": "LEGO Hub: Connect to Hub"
},
{
"command": "lego-spikeprime-mindstorms-vscode.disconnectFromHub",
"title": "LEGO Hub: Disconnect from Hub"
},
{
"command": "lego-spikeprime-mindstorms-vscode.startProgram",
"title": "LEGO Hub: Start Program",
"icon": "$(run)"
},
{
"command": "lego-spikeprime-mindstorms-vscode.terminateProgram",
"title": "LEGO Hub: Terminate Running Program",
"icon": "$(stop)"
},
{
"command": "lego-spikeprime-mindstorms-vscode.uploadProgram",
"title": "LEGO Hub: Upload Program",
"icon": "$(refresh)"
},
{
"command": "lego-spikeprime-mindstorms-vscode.showTerminal",
"title": "LEGO Hub: Show Log Terminal",
"icon": "$(terminal)"
},
{
"command": "lego-spikeprime-mindstorms-vscode.addFileHeader",
"title": "LEGO Hub: Add File Header",
"icon": "$(note)"
}
],
"menus": {
"editor/title": [
{
"command": "lego-spikeprime-mindstorms-vscode.startProgram",
"group": "navigation@1",
"when": "editorLangId == python && lego-spikeprime-mindstorms-vscode.isConnectedIn"
},
{
"command": "lego-spikeprime-mindstorms-vscode.terminateProgram",
"group": "navigation@2",
"when": "editorLangId == python && lego-spikeprime-mindstorms-vscode.isConnectedIn"
},
{
"command": "lego-spikeprime-mindstorms-vscode.uploadProgram",
"group": "navigation@3",
"when": "editorLangId == python && lego-spikeprime-mindstorms-vscode.isConnectedIn"
},
{
"command": "lego-spikeprime-mindstorms-vscode.showTerminal",
"group": "navigation@4",
"when": "editorLangId == python && lego-spikeprime-mindstorms-vscode.isConnectedIn"
},
{
"command": "lego-spikeprime-mindstorms-vscode.addFileHeader",
"group": "navigation@5",
"when": "editorLangId == python"
}
]
}
},
"keywords": [
"lego",
"mindstorms",
"spike",
"robot inventor",
"prime"
],
"icon": "images/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/PeterStaev/lego-spikeprime-mindstorms-vscode.git"
},
"license": "Apache-2.0",
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "npm run copy.prebuilds && webpack --mode production",
"webpack": "webpack --mode production",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"copy.prebuilds": "ncp ./node_modules/@serialport/bindings-cpp/prebuilds/ ./prebuilds/",
"update-eslint": "npx npm-check-updates --upgrade --filter \"/.*eslint.*/\"",
"update-serialport": "npx npm-check-updates --upgrade --filter \"/.*serialport.*/\"",
"test-compile": "tsc -p ./"
},
"devDependencies": {
"@types/glob": "^7.1.3",
"@types/mocha": "^9.1.0",
"@types/node": "^12.11.7",
"@types/uuid": "^8.3.0",
"@types/vscode": "^1.55.0",
"@typescript-eslint/eslint-plugin": "^5.18.0",
"@typescript-eslint/parser": "^5.18.0",
"eslint": "^8.13.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-simple-import-sort": "^7.0.0",
"glob": "^7.1.6",
"mkdirp": "^0.5.5",
"mocha": "^9.2.2",
"ncp": "^2.0.0",
"ts-loader": "^9.2.5",
"typescript": "^4.6.3",
"vscode-test": "^1.5.0",
"webpack": "^5.72.0",
"webpack-cli": "^4.9.0"
},
"dependencies": {
"@pybricks/mpy-cross-v5": "^2.0.0",
"@serialport/parser-readline": "^12.0.0",
"serialport": "^12.0.0"
}
}