-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
157 lines (157 loc) · 5.63 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
{
"name": "aseprite-debugger",
"displayName": "Aseprite Debugger VSC",
"description": "Visual Studio Code debug adapter for AsepriteDebugger",
"version": "0.1.3",
"icon": "modules/AsepriteDebugger/assets/AsepriteDebuggerIcon.png",
"publisher": "zarstensen",
"homepage": "https://github.com/zarstensen/AsepriteDebuggerVSC",
"bugs": {
"url": "https://github.com/zarstensen/AsepriteDebugger/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/zarstensen/AsepriteDebuggerVSC.git"
},
"engines": {
"vscode": "^1.84.0"
},
"categories": [
"Debuggers"
],
"activationEvents": [
"onDebug",
"onDebugInitialConfigurations",
"onCommand:extension.aseprite-debugger.getScriptFile",
"onCommand:extension.aseprite-debugger.getExtensionFolder"
],
"main": "./out/extension.js",
"contributes": {
"commands":[
{
"command": "extension.aseprite-debugger.showLatestStacktrace",
"title": "Aseprite Debugger: Show Latest Stacktrace"
}
],
"configuration": {
"title": "Aseprite Debugger",
"properties": {
"aseprite-debugger.asepriteExe": {
"type": "string",
"scope": "application",
"default": "aseprite",
"description": "Location of aseprite executable."
},
"aseprite-debugger.asepriteArch": {
"type": "string",
"scope": "application",
"default": "x64",
"enum": [ "x64", "win32" ],
"description": "Architecture of aseprite executable."
},
"aseprite-debugger.defaultWsPort": {
"type": "number",
"scope": "application",
"default": 9004,
"description": "Default port to listen for debugger connections on"
},
"aseprite-debugger.defaultWsPath": {
"type": "string",
"scope": "application",
"default": "ws",
"description": "Default path to listen for debugger connections on"
}
}
},
"breakpoints": [
{
"language": "lua"
}
],
"debuggers": [
{
"type": "aseprite",
"label": "Aseprite",
"languages": [
"lua"
],
"program": "./out/extension.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"properties": {
"required": [
"type",
"source",
"port",
"route"
],
"projectType": {
"type": "string",
"description": "Is the project an aseprite script or a aseprite extension.",
"enum": [
"script",
"extension"
]
},
"source": {
"type": "string",
"description": "Path to an aseprite lua script or a folder containing an aseprite extension (depends on projectType)"
},
"wsPort": {
"type": "number",
"description": "Port aseprite debugger extension should connect to, during a debug session"
},
"wsPath": {
"type": "string",
"description": "Endpoint path aseprite debugger extension should connect to, during a debug session"
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop at script execution",
"default": false
}
}
}
},
"variables": {
"AskForScriptFile": "extension.aseprite-debugger.getScriptFile"
}
}
]
},
"scripts": {
"vscode:prepublish": "webpack --mode production --devtool hidden-source-map && npm run build-luaws-x64 && npm run build-luaws-win32 && npm run copy-deps",
"compile": "webpack",
"copy-deps": "rimraf Icon.png && copyfiles ./modules/AsepriteDebugger/assets/AsepriteDebuggerIcon.png ./out/Icon.png && rimraf ./out/assets && copyfiles -u 1 \"./assets/**/*\" ./out/assets && rimraf ./out/debugger && copyfiles -u 4 \"modules/AsepriteDebugger/src/Debugger/**/*\" ./out/debugger && rimraf .out/bin && copyfiles -u 3 \"luaws-build-x64/install/bin/*\" ./out/bin/x64 && copyfiles -u 3 \"luaws-build-win32/install/bin/*\" ./out/bin/win32",
"build-luaws-x64": "cmake --version && cmake -DCMAKE_GENERATOR_PLATFORM=x64 -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -S ./modules/AsepriteDebugger -B ./luaws-build-x64 && cd luaws-build-x64 && cmake --build . -j 24 --config Release && cmake --install . --config Release",
"build-luaws-win32": "cmake --version && cmake -DCMAKE_GENERATOR_PLATFORM=Win32 -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -S ./modules/AsepriteDebugger -B ./luaws-build-win32 && cd luaws-build-win32 && cmake --build . -j 24 --config Release && cmake --install . --config Release",
"watch": "webpack --watch",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/mocha": "^10.0.2",
"@types/node": "18.x",
"@types/vscode": "^1.84.0",
"@types/ws": "^8.5.9",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"@vscode/test-electron": "^2.3.4",
"@vscode/vsce": "^2.22.0",
"eslint": "^8.50.0",
"glob": "^10.3.3",
"mocha": "^10.2.0",
"ts-loader": "^9.5.1",
"typescript": "^5.2.2",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"copyfiles": "^2.4.1",
"rimraf": "^5.0.5"
},
"dependencies": {
"@vscode/debugadapter": "^1.64.0",
"ws": "^8.14.2"
}
}