-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
215 lines (215 loc) · 8.48 KB
/
package.json
File metadata and controls
215 lines (215 loc) · 8.48 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
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
{
"name": "analog-attach",
"displayName": "Analog Attach",
"description": "Device Tree Source (DTS/DTSO) editor with schema validation and binding support",
"version": "0.0.1",
"publisher": "AnalogDevices",
"repository": {
"type": "git",
"url": "https://github.com/analogdevicesinc/analog-attach"
},
"icon": "packages/extension/media/ADI-Analog-Attach-logo.png",
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"Other"
],
"main": "./packages/extension/dist/extension.js",
"private": true,
"workspaces": [
"packages/*"
],
"contributes": {
"commands": [
{
"command": "analog-attach.addDeviceTree",
"title": "Analog Attach: Add Device Tree file to current overlay"
},
{
"command": "analog-attach.compileDeviceTree",
"title": "Analog Attach: Compile current Device Tree file"
},
{
"command": "analog-attach.deployDeviceTree",
"title": "Analog Attach: Deploy the current compiled Device Tree"
}
],
"keybindings": [
{
"command": "analog-attach.navigateBack",
"key": "alt+left",
"mac": "ctrl+-",
"when": "activeCustomEditorId == 'analog-attach.dtsEditor' || activeCustomEditorId == 'analog-attach.dtsPlugAndPlayEditor'"
},
{
"command": "analog-attach.navigateForward",
"key": "alt+right",
"mac": "ctrl+shift+-",
"when": "activeCustomEditorId == 'analog-attach.dtsEditor' || activeCustomEditorId == 'analog-attach.dtsPlugAndPlayEditor'"
}
],
"customEditors": [
{
"viewType": "analog-attach.dtsEditor",
"displayName": "Advanced device tree editor",
"selector": [
{
"filenamePattern": "*.dts"
},
{
"filenamePattern": "*.dtso"
}
],
"priority": "option"
},
{
"viewType": "analog-attach.dtsPlugAndPlayEditor",
"displayName": "Plug and Play",
"selector": [
{
"filenamePattern": "*.dts"
},
{
"filenamePattern": "*.dtso"
}
],
"priority": "option"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "analog-attach-sidebar",
"title": "Analog Attach",
"icon": "packages/extension/media/sidebar-icon.svg"
}
]
},
"views": {
"analog-attach-sidebar": [
{
"id": "analog-attach-sidebar-view",
"name": "Analog Attach",
"type": "webview",
"icon": "packages/extension/media/sidebar-icon.svg"
}
]
},
"configuration": {
"title": "Analog Attach",
"type": "object",
"properties": {
"analog-attach.defaultLinuxRepository": {
"type": "string",
"markdownDescription": "Path to the Linux Repository to be used by default"
},
"analog-attach.defaultDtSchemaRepository": {
"type": "string",
"markdownDescription": "Path to the dt-schema Repository to be used by default"
},
"analog-attach.enableAutoMergeDtsoBase": {
"type": "boolean",
"default": true,
"markdownDescription": "Automatically merge a DTSO overlay with the last DTS base you selected for that file."
},
"analog-attach.preprocessDtsFilesCommand": {
"type": "string",
"default": "cpp -nostdinc -I {include_dir_path} -I {arch_dir_path} -undef -x assembler-with-cpp",
"markdownDescription": "Command used to call the preprocessor on a dts file that contains include directives."
},
"analog-attach.compileDtsFileCommand": {
"type": "string",
"default": "dtc -O dtb -I dts",
"markdownDescription": "Command used for compiling a valid dts file."
},
"analog-attach.decompileDtbFileCommand": {
"type": "string",
"default": "dtc -O dts -I dts",
"markdownDescription": "Command used for decompiling a valid dtb file."
},
"analog-attach.sshpassConfig": {
"type": "string",
"default": "sshpass -p {remotePassword}",
"markdownDescription": "Command used to upload on the target device\n\n"
},
"analog-attach.sshConfig": {
"type": "string",
"default": "ssh -o StrictHostKeyChecking=no {remoteUser}@{remoteHost} '{command}'",
"markdownDescription": "SSH command to connect to remote and execute a command on remote.\n\n{command} will be replaced with rebootDevice command or writeDtbToOverlays command"
},
"analog-attach.remoteHost": {
"type": "string",
"default": "10.87.54.71",
"markdownDescription": "Remote host/IP used to derive sshConfig."
},
"analog-attach.remoteUser": {
"type": "string",
"default": "root",
"markdownDescription": "Remote user used to derive sshConfig."
},
"analog-attach.remotePassword": {
"type": "string",
"default": "analog",
"markdownDescription": "Remote password used to derive sshpassConfig."
},
"analog-attach.remoteSudoAuth": {
"type": "string",
"default": "",
"markdownDescription": "Prefix used for sudo on remote. Leave empty if writeDtbToOverlays already contains sudo."
},
"analog-attach.rebootDevice": {
"type": "string",
"default": "bash -c \"sleep 5; reboot now\"",
"markdownDescription": "Command used to reboot the remote device after 5 seconds of sleep with sshpass and ssh"
},
"analog-attach.writeDtbToOverlays": {
"type": "string",
"default": "sudo tee /boot/overlays/{dtb_name} > /dev/null",
"markdownDescription": "Command run on the remote host to consume the DTB from stdin and write it. {dtb_name} will be replaced with the filename (e.g. test-dt.txt or compiled dtb)."
},
"analog-attach.skipDeleteConfirmation": {
"type": "boolean",
"default": false,
"markdownDescription": "When enabled, sensors and channels are deleted immediately without showing a confirmation dialog."
}
}
},
"configurationDefaults": {
"workbench.editorAssociations": {
"*.dts": "analog-attach.dtsEditor",
"*.dtso": "analog-attach.dtsPlugAndPlayEditor"
}
}
},
"scripts": {
"build": "yarn run build:all",
"watch": "concurrently \"yarn:watch:*\"",
"package": "yarn run build:extension-protocol && yarn run build:attach-lib && yarn run build:hds-react && yarn run build:attach-ui-lib && yarn run build:pnp-webview && yarn run build:tree-editor-webview && yarn workspace @analog-attach/extension webpack --mode production --devtool hidden-source-map",
"vscode:prepublish": "yarn run package",
"compile-tests": "cd packages/extension && tsc -p . --outDir out",
"watch-tests": "cd packages/extension && tsc -p . -w --outDir out",
"pretest": "yarn run compile-tests && yarn run build",
"lint": "yarn workspace @analog-attach/extension lint",
"test": "yarn run compile-tests && yarn workspace @analog-attach/extension exec vscode-test && yarn workspace attach-lib test --run",
"test-clean": "yarn run pretest && yarn workspace @analog-attach/extension exec vscode-test && yarn workspace attach-lib test --run",
"clean": "yarn workspaces foreach -A run clean",
"clean:all": "yarn run clean && rm -rf node_modules",
"build:all": "yarn run build:extension-protocol && yarn run build:attach-lib && yarn run build:hds-react && yarn run build:attach-ui-lib && yarn run build:pnp-webview && yarn run build:tree-editor-webview && yarn run build:extension",
"build:hds-react": "yarn workspace hds-react build",
"build:pnp-webview": "yarn workspace pnp-webview build",
"build:attach-lib": "yarn workspace attach-lib build",
"build:attach-ui-lib": "yarn workspace attach-ui-lib build",
"build:tree-editor-webview": "yarn workspace tree-editor-webview build",
"build:extension": "yarn workspace @analog-attach/extension build",
"build:extension-protocol": "yarn workspace extension-protocol build",
"watch:hds-react": "yarn workspace hds-react watch",
"watch:attach-ui-lib": "yarn workspace attach-ui-lib watch",
"watch:pnp-webview": "yarn workspace pnp-webview watch"
},
"devDependencies": {
"@vitest/coverage-v8": "^4.0.18",
"typescript": "^5.7.2"
},
"packageManager": "yarn@4.5.3"
}