-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
171 lines (171 loc) · 5.1 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": "kotlin-for-frc",
"displayName": "Kotlin for FRC",
"description": "Kotlin support for WPILib, unofficially",
"version": "2024.1.1",
"publisher": "Brenek",
"engines": {
"vscode": "^1.66.0"
},
"categories": [
"Other"
],
"icon": "images/wpilib-with-kotlin_K-128x128.png",
"activationEvents": [
"workspaceContains:.wpilib/wpilib_preferences.json",
"onCommand:kotlinForFRC.createNew",
"onCommand:kotlinForFRC.convertJavaProject",
"onCommand:kotlinForFRC.showChangelog",
"onCommand:kotlinForFRC.resetAutoShowChangelog",
"onCommand:kotlinForFRC.updateGradleRIOVersion",
"onCommand:kotlinForFRC.resetGradleRIOCache",
"onCommand:kotlinForFRC.simulateFRCKotlinCode",
"onCommand:workbench.action.tasks.runTask"
],
"main": "./dist/extension",
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "While most of Kotlin for FRC's functionality is essentially text manipulation, it does provide a convenience feature for running the FRC simulation against Kotlin code which requires the workspace to be trusted."
},
"virtualWorkspaces": false
},
"contributes": {
"configuration": {
"title": "Kotlin for FRC",
"properties": {
"kotlinForFRC.gradleRioVersion.autoUpdate": {
"type": "boolean",
"default": true,
"scope": "window",
"description": "Whether or not to automatically update the Gradle RIO Version when the Kotlin for FRC extension is loaded."
},
"kotlinForFRC.changelog.showOnUpdate": {
"type": "boolean",
"default": true,
"scope": "application",
"description": "Whether or not to show the changelog when Kotlin for FRC has been updated."
},
"kotlinForFRC.simulate.javaHome": {
"type": "string",
"default": null,
"scope": "window",
"description": "Defines a custom JAVA_HOME for Kotlin for FRC to use when simulating FRC Kotlin code."
}
}
},
"commands": [
{
"command": "kotlinForFRC.convertJavaProject",
"title": "Convert Java Project to Kotlin",
"category": "Kotlin-FRC"
},
{
"command": "kotlinForFRC.createNew",
"title": "Create new Kotlin class/command here",
"category": "Kotlin-FRC"
},
{
"command": "kotlinForFRC.showChangelog",
"title": "Show Changelog",
"category": "Kotlin-FRC"
},
{
"command": "kotlinForFRC.resetAutoShowChangelog",
"title": "Reset Auto-Show Changelog Cache",
"category": "Kotlin-FRC"
},
{
"command": "kotlinForFRC.updateGradleRIOVersion",
"title": "Update GradleRIO Version",
"category": "Kotlin-FRC"
},
{
"command": "kotlinForFRC.resetGradleRIOCache",
"title": "Reset GradleRIO Version Cache",
"category": "Kotlin-FRC"
},
{
"command": "kotlinForFRC.simulateFRCKotlinCode",
"title": "Simulate FRC Kotlin Code",
"category": "Kotlin-FRC"
}
],
"menus": {
"explorer/context": [
{
"when": "explorerResourceIsFolder && isKFFProject",
"command": "kotlinForFRC.createNew",
"group": "frc-kotlin"
}
],
"commandPalette": [
{
"command": "kotlinForFRC.convertJavaProject",
"when": "isKFFProject"
},
{
"command": "kotlinForFRC.showChangelog"
},
{
"command": "kotlinForFRC.resetAutoShowChangelog",
"when": "isKFFProject"
},
{
"command": "kotlinForFRC.updateGradleRIOVersion",
"when": "isKFFProject"
},
{
"command": "kotlinForFRC.simulateFRCKotlinCode",
"when": "isWorkspaceTrusted && isKFFProject"
},
{
"command": "kotlinForFRC.resetGradleRIOCache"
}
]
},
"taskDefinitions": [
{
"type": "kffshell"
}
]
},
"scripts": {
"vscode:prepublish": "webpack --mode production",
"compile": "webpack --mode none",
"watch": "webpack --mode none --watch",
"test-compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"pretest": "npm run test-compile && npm run lint",
"test": "npm run test-compile && node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.4",
"@types/node": "^16.11.7",
"@types/semver": "^7.3.10",
"@types/vscode": "1.56.0",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@vscode/test-electron": "^2.3.6",
"acorn": "^7.4.1",
"cross-spawn": "^7.0.3",
"eslint": "^8.53.0",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"ts-loader": "^9.5.0",
"typescript": "^5.3.3",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"axios": "^1.6.3",
"semver": "^7.3.7"
},
"extensionDependencies": [],
"repository": {
"type": "git",
"url": "https://github.com/BrenekH/kotlin-for-frc.git"
},
"license": "MIT"
}