-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
239 lines (239 loc) · 9.24 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
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
{
"name": "oxc-yaml-helper",
"displayName": "OpenXcom Ruleset Linker",
"description": "This extension aims to turn Visual Studio code into an OpenXcom ruleset modding IDE. It links rulesets so you can easily navigate between linked rules. It checks for problems in the rulesets, and a lot of other things.",
"version": "1.2.7",
"author": {
"name": "pedroterzero"
},
"publisher": "pedroterzero",
"icon": "docs/icon.jpg",
"repository": {
"type": "git",
"url": "https://github.com/pedroterzero/oxce-yaml-helper.git"
},
"engines": {
"vscode": "^1.82.0"
},
"categories": [
"Other"
],
"activationEvents": [
"workspaceContains:**/*.rul"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "oxcYamlHelper.autoOrderWeapons",
"title": "OpenXcom IDE - Auto order weapons"
},
{
"command": "oxcYamlHelper.generateDocumentation",
"title": "OpenXcom IDE - Show ruleset documentation"
},
{
"command": "oxcYamlHelper.convertCsv",
"title": "OpenXcom IDE - Edit as csv"
},
{
"command": "oxcYamlHelper.convertCsvToRul",
"title": "OpenXcom IDE - Import to rul"
}
],
"menus": {
"commandPalette": [
{
"command": "oxcYamlHelper.autoOrderWeapons",
"when": "resourceExtname == .rul"
},
{
"command": "oxcYamlHelper.convertCsv",
"when": "resourceExtname == .rul"
},
{
"command": "oxcYamlHelper.convertCsvToRul",
"when": "resourceExtname == .csv"
}
],
"explorer/context": [
{
"command": "oxcYamlHelper.convertCsv",
"when": "resourceExtname == .rul"
},
{
"command": "oxcYamlHelper.convertCsvToRul",
"when": "resourceExtname == .csv"
}
]
},
"configuration": {
"type": "object",
"title": "OpenXcom Ruleset Linker",
"properties": {
"oxcYamlHelper.ruleFilesPattern": {
"type": "string",
"default": "**/*.rul",
"description": "Rules files location (i.e. Rulesets/**/*.rul)"
},
"oxcYamlHelper.translationLocale": {
"type": "string",
"default": "en-US",
"description": "Locale to use when showing translations on hovering. This is also used to check for missing translations, if enabled."
},
"oxcYamlHelper.cacheStrategy": {
"type": "string",
"enum": [
"all",
"only cache languages",
"only cache languages, assets",
"only cache assets",
"nothing"
],
"default": "all"
},
"oxcYamlHelper.showDocumentationHover": {
"type": "string",
"enum": [
"yes",
"short",
"no"
],
"default": "yes",
"description": "Show documentation for properties on hover. It can be disabled if you find it annoying. By default it shows the full documentation entry, `short` only shows the first line"
},
"oxcYamlHelper.validateCategories": {
"type": "string",
"enum": [
"yes",
"no",
"always"
],
"default": "yes",
"markdownDescription": "Performs checks on categories. These seem to be undefined a lot of the time, so the check can be turned off here."
},
"oxcYamlHelper.findMissingTranslations": {
"type": "boolean",
"default": "true",
"markdownDescription": "Finds missing translations. The locale used is the one set in `oxcYamlHelper.translationLocale`."
},
"oxcYamlHelper.findDuplicateDefinitions": {
"type": "boolean",
"default": "false",
"markdownDescription": "Finds duplicate definitions. For example if a research called `STR_MEDI_KIT` is defined twice, it will tell you. Disabled by default for now."
},
"oxcYamlHelper.showRulesetDocumentationOnStartup": {
"type": "boolean",
"default": true,
"description": "Opens the ruleset documentation on startup"
},
"oxcYamlHelper.rulesetDocumentationSettings": {
"type": "number",
"default": 0,
"description": "Ruleset documentation setting flags (1 = hide attributes)"
},
"oxcYamlHelper.prompts.noRecommendImagePreview": {
"type": "boolean",
"default": false,
"description": "Stop prompting for Image Preview extension"
},
"oxcYamlHelper.prompts.noRecommendOpenXcomFtaRulesetTools": {
"type": "boolean",
"default": false,
"description": "Stop prompting for OpenXCOM FtA Ruleset Tools extension"
},
"oxcYamlHelper.prompts.noRecommendOpenXcomRulesetTools": {
"type": "boolean",
"default": false,
"description": "Stop prompting for OpenXCOM Ruleset Tools extension"
},
"oxcYamlHelper.parentMods": {
"type": "array",
"default": [],
"description": "Names of parent mods (i.e. 40k, ROSIGMA). Note, these must point to existing directories under this mod's directory"
}
}
},
"languages": [
{
"id": "yaml",
"extensions": [
".rul",
".nam",
".sav",
".asav"
]
},
{
"id": "y-script",
"extensions": [
".ys"
]
}
],
"grammars": [
{
"path": "./syntaxes/injection.json",
"scopeName": "y-scripts.injection",
"injectTo": [
"source.yaml"
],
"embeddedLanguages": {
"meta.embedded.inline.y-script": "y-script"
}
},
{
"language": "y-script",
"scopeName": "source.y-script",
"path": "./syntaxes/y-script.tmGrammar.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify && mkdir -p out/assets && cp -a src/assets/xcom1 out/assets",
"esbuild-base": "rm -rf out && esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"test-compile": "tsc -p ./",
"build": "npm run esbuild",
"clean": "rm -rf out/*",
"compile": "npm run clean && tsc -p ./",
"watch": "npm run esbuild-watch",
"watch-tsc": "tsc -watch -p ./",
"postinstall": "echo node ./node_modules/vscode/bin/install",
"test": "npm run compile && node ./out/test/runTest.js",
"test:prepare": "node ./out/test/prepare.js",
"test:cleanup": "mv package.json.orig package.json"
},
"devDependencies": {
"@types/dot-object": "^2.1.2",
"@types/flat-cache": "^2.0.0",
"@types/fs-extra": "^11.0.1",
"@types/glob": "^8.1.0",
"@types/marked": "^5.0.1",
"@types/mocha": "^10.0.1",
"@types/node": "^20.5.9",
"@types/papaparse": "^5.3.8",
"@types/vscode": "^1.82.0",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"@vscode/test-electron": "^2.3.4",
"esbuild": "^0.19.2",
"eslint": "^8.48.0",
"fs-extra": "^11.1.1",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"typescript": "^5.2.2"
},
"dependencies": {
"@vscode/extension-telemetry": "^0.8.4",
"dot-object": "^2.1.4",
"dot-prop": "^6.0.1",
"flat-cache": "^3.1.0",
"marked": "^8.0.1",
"merge-anything": "^5.1.7",
"papaparse": "^5.4.1",
"tiny-clean-object": "^1.3.1",
"yaml": "^1.10.2"
}
}