-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathpackage.json
More file actions
215 lines (215 loc) · 7.63 KB
/
package.json
File metadata and controls
215 lines (215 loc) · 7.63 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": "overpy",
"publisher": "Zezombye",
"displayName": "OverPy",
"repository": {
"type": "git",
"url": "https://github.com/Zezombye/overpy"
},
"description": "High-level language for the Overwatch Workshop, with decompilation and compilation.",
"version": "9.5.14",
"scripts": {
"dev": "node esbuild.js --target standalone --watch",
"compile": "node esbuild.js",
"compile-all": "node esbuild.js --all",
"compile-cli": "node esbuild.js --target cli",
"compile-extension": "node esbuild.js --target extension",
"compile-standalone": "node esbuild.js --target standalone",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch --all",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "pnpm run check-types && pnpm run lint && pnpm run test && node esbuild.js --production --all && node generateJsonSchema.mjs",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"check-types": "tsc --noEmit",
"lint": "npx eslint src --ext ts",
"test:core": "node esbuild.js --target standalone && node runTests.mjs",
"test:cli": "node esbuild.js --target standalone && node esbuild.js --target cli && node runCliTests.mjs",
"test": "pnpm run test:core && pnpm run test:cli",
"prepare": "husky",
"publish": "node publish.js"
},
"readme": "README.md",
"engines": {
"vscode": "^1.105.0",
"npm": "please-use-pnpm",
"yarn": "please-use-pnpm",
"pnpm": ">= 10.0.0"
},
"icon": "img/overpy.png",
"keywords": [
"overpy",
"overwatch",
"workshop",
"ow",
"owws"
],
"activationEvents": [],
"browser": "out/extension.js",
"main": "out/extension.js",
"categories": [
"Programming Languages"
],
"files": [
"img/**",
"out/*",
"syntaxes/**",
"LICENSE{,.txt}",
"customGameSettingsSchema.json",
"language-configuration.json"
],
"contributes": {
"configuration": {
"title": "OverPy",
"properties": {
"overpy.workshopLanguage": {
"type": "string",
"description": "Specifies the language used for decompilation and compilation.",
"default": "en-US",
"enum": [
"de-DE",
"en-US",
"es-ES",
"es-MX",
"fr-FR",
"it-IT",
"ja-JP",
"ko-KR",
"pl-PL",
"pt-BR",
"ru-RU",
"zh-CN",
"zh-TW"
],
"enumDescriptions": [
"German [de-DE]",
"English [en-US]",
"Spanish (Spain) [es-ES]",
"Spanish (Mexico) [es-MX]",
"French [fr-FR]",
"Italian [it-IT]",
"Japanese [ja-JP]",
"Korean [ko-KR]",
"Polish [pl-PL]",
"Portugese (Brazil) [pt-BR]",
"Russian [ru-RU]",
"Chinese (Simplified) [zh-CN]",
"Chinese (Traditional) [zh-TW]"
]
},
"overpy.compileOnSave": {
"type": "boolean",
"description": "Specifies whether to initiate a compilation on save.",
"default": true
},
"overpy.onlySaveOnMainFile": {
"type": "boolean",
"description": "If \"Compile on save\" is enabled, only saves if the file is the main file (defined as not having a `#!mainFile` directive).",
"default": false
},
"overpy.addTemplateOnNewFile": {
"type": "boolean",
"description": "Specifies whether to add a template when a new OverPy file is created. Warning: due to a bug (#196), the template will be inserted when a new file is saved to disk (as .opy file) for the first time.",
"default": false
},
"overpy.showElementCountOnCompile": {
"type": "boolean",
"description": "Specifies whether to show the element count when a compilation is successful.",
"default": true
}
}
},
"languages": [
{
"id": "overpy",
"aliases": [
"OverPy",
"overpy"
],
"extensions": [
".opy"
],
"configuration": "./language-configuration.json",
"icon": {
"light": "/img/overpy.ico",
"dark": "/img/overpy.ico"
}
}
],
"grammars": [
{
"language": "overpy",
"scopeName": "source.opy",
"path": "./syntaxes/overpy.tmLanguage.json"
}
],
"commands": [
{
"command": "overpy.compile",
"title": "Compile (OverPy -> Workshop)",
"category": "OverPy",
"icon": {
"light": "/img/index.svg",
"dark": "/img/index.svg"
}
},
{
"command": "overpy.decompile",
"title": "Decompile (Workshop -> OverPy)",
"category": "OverPy",
"icon": {
"light": "/img/index.svg",
"dark": "/img/index.svg"
}
},
{
"command": "overpy.insertTemplate",
"title": "Insert Template",
"category": "OverPy"
}
],
"menus": {
"editor/title": [
{
"when": "resourceLangId == overpy",
"command": "overpy.compile",
"group": "navigation@6"
}
]
},
"jsonValidation": [
{
"fileMatch": "*.opy.json",
"url": "./customGameSettingsSchema.json"
}
]
},
"dependencies": {
"@jitl/quickjs-ng-wasmfile-release-sync": "^0.31.0",
"pofile": "^1.1.4",
"quickjs-emscripten-core": "^0.31.0",
"vscode-uri": "^3.1.0"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^20.19.24",
"@types/vscode": "^1.105.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"colors": "^1.4.0",
"diff": "^8.0.2",
"dotenv": "^17.2.3",
"esbuild": "^0.25.11",
"eslint": "^8.57.1",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"npm-run-all": "^4.1.5",
"typescript": "^5.9.3"
},
"lint-staged": {
"*.ts": "eslint --fix"
},
"packageManager": "pnpm@10.18.0+sha512.e804f889f1cecc40d572db084eec3e4881739f8dec69c0ff10d2d1beff9a4e309383ba27b5b750059d7f4c149535b6cd0d2cb1ed3aeb739239a4284a68f40cfa"
}