-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
187 lines (187 loc) · 6.31 KB
/
package.json
File metadata and controls
187 lines (187 loc) · 6.31 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
{
"name": "yuescriptrunner",
"displayName": "YueRunner",
"description": "In-editor Yuescript compiler and runner with LÖVE2D support",
"publisher": "MTLabs",
"version": "0.4.0",
"icon": "logo.png",
"repository": {
"type": "git",
"url": "https://github.com/MTadder/YueRunner.git"
},
"engines": {
"vscode": "^1.92.0"
},
"categories": [
"Testing"
],
"keywords": [
"yuescript",
"yue",
"yue love",
"yue compiler",
"yue runner"
],
"activationEvents": [
"onLanguage:yuescript"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "YueRunner Configuration",
"properties": {
"yuescriptrunner.useMinification": {
"description": "Enable code minification to reduce the size of compiled Lua output (removes whitespace and shortens variable names)",
"type": "boolean",
"default": false
},
"yuescriptrunner.useSpacesInstead": {
"description": "Use spaces instead of tabs for indentation in the compiled Lua output",
"type": "boolean",
"default": false
},
"yuescriptrunner.reserveComments": {
"description": "Preserve comments from the Yuescript source in the compiled Lua output (comments before statements)",
"type": "boolean",
"default": false
},
"yuescriptrunner.writeLineNumbers": {
"description": "Include line number information from the Yuescript source in the compiled Lua output for better debugging",
"type": "boolean",
"default": false
},
"yuescriptrunner.reFocusDocument": {
"description": "Automatically return focus to the editor document after running a command (keeps terminal from stealing focus)",
"type": "boolean",
"default": true
},
"yuescriptrunner.dumpGlobals": {
"description": "Output a list of global variables used in the code with their location (NAME | LINE | COLUMN format)",
"type": "boolean",
"default": false
},
"yuescriptrunner.dumpToStdout": {
"description": "Print the compiled Lua code directly to the terminal instead of writing to a file",
"type": "boolean",
"default": false
},
"yuescriptrunner.dumpCompileTime": {
"description": "Display the time taken to compile the Yuescript code in the terminal output",
"type": "boolean",
"default": false
},
"yuescriptrunner.useImplicitReturn": {
"description": "Automatically add a return statement for the last expression in the file (Lua best practice)",
"type": "boolean",
"default": true
},
"yuescriptrunner.matchLineNumbers": {
"description": "Rewrite the compiled output to maintain the same line numbers as the source Yuescript file",
"type": "boolean",
"default": false
},
"yuescriptrunner.iconOnly": {
"description": "Show only an icon on the status bar button instead of icon with text (saves space)",
"type": "boolean",
"default": false
},
"yuescriptrunner.loveExecutable": {
"description": "Choose which LÖVE2D executable to use ('love' for release, 'lovec' for console output)",
"enum": [
"love", "lovec"
],
"type": "string",
"default": "lovec"
},
"yuescriptrunner.defaultAction": {
"description": "Choose the default action to display on the status bar button (what happens when you click it)",
"enum": [
"Compile", "Compile all", "Run", "Compile all and Run LÖVE"
],
"type": "string",
"default": "Run"
},
"yuescriptrunner.targetLuaVersion": {
"description": "Select the Lua version to target for compilation (determines available language features)",
"enum": [
"5.1", "5.2", "5.3", "5.4"
],
"type": "string",
"default": "5.4"
},
"yuescriptrunner.autoSaveBeforeRun": {
"description": "Automatically save the current file before compiling or running (prevents working with outdated code)",
"type": "boolean",
"default": true
},
"yuescriptrunner.showNotifications": {
"description": "Show success notifications when compilation completes without errors",
"type": "boolean",
"default": false
},
"yuescriptrunner.clearTerminalBeforeRun": {
"description": "Clear the terminal output before running a new command (keeps output clean and readable)",
"type": "boolean",
"default": false
}
}
},
"commands": [
{
"command": "yuescriptrunner.compile",
"title": "Compile this Yuescript"
},
{
"command": "yuescriptrunner.run",
"title": "Run this Yuescript"
},
{
"command": "yuescriptrunner.compile_all",
"title": "Compile all Yuescripts (in this directory)"
},
{
"command": "yuescriptrunner.compile_all_and_run_love",
"title": "Compile all Yuescripts & Run LOVE2D (in this directory)"
}
],
"menus": {
"commandPalette": [
{
"command": "yuescriptrunner.compile",
"when": "editorLangId == yuescript"
},
{
"command": "yuescriptrunner.run",
"when": "editorLangId == yuescript"
},
{
"command": "yuescriptrunner.compile_all",
"when": "editorLangId == yuescript"
},
{
"command": "yuescriptrunner.compile_all_and_run_love",
"when": "editorLangId == yuescript"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
"devDependencies": {
"@types/vscode": "^1.92.0",
"@types/mocha": "^10.0.7",
"@types/node": "20.x",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.11.0",
"eslint": "^8.57.0",
"typescript": "^5.4.5",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.4.0"
}
}