-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
145 lines (141 loc) · 3.87 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
{
"name": "pico8-ls",
"description": "PICO-8 Language Server",
"icon": "img/icon.png",
"author": "JanPaul Bergeson",
"publisher": "PollywogGames",
"license": "MIT",
"version": "0.5.7",
"repository": {
"type": "git",
"url": "https://github.com/japhib/pico8-ls"
},
"engines": {
"vscode": "^1.63.0"
},
"activationEvents": [
"onLanguage:pico-8",
"onLanguage:pico-8-lua"
],
"main": "./client/out-min/main.js",
"categories": [
"Programming Languages",
"Snippets"
],
"contributes": {
"commands": [
{
"command": "extension.pico8formatFile",
"title": "PICO-8 LS: Format File"
},
{
"command": "extension.pico8formatFileSeparateLines",
"title": "PICO-8 LS: Format File - Each Statement on Separate Line"
}
],
"configuration": {
"type": "object",
"title": "PICO-8 LS configuration",
"properties": {
"pico8-ls.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the server."
},
"pico8-ls.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
}
}
},
"languages": [
{
"id": "pico-8",
"aliases": [
"PICO-8",
"pico-8",
"PICO8",
"pico8"
],
"extensions": [
".p8"
],
"configuration": "./syntaxes/language-configuration.json",
"icon": {
"light": "./img/light/icon.png",
"dark": "./img/dark/icon.png"
}
},
{
"id": "pico-8-lua",
"aliases": [
"PICO-8 Lua"
],
"extensions": [
".lua"
],
"configuration": "./syntaxes/language-configuration.json",
"icon": {
"light": "./img/light/icon.png",
"dark": "./img/dark/icon.png"
}
}
],
"grammars": [
{
"language": "pico-8",
"scopeName": "source.pico8",
"path": "./syntaxes/pico-8.tmLanguage.json"
},
{
"language": "pico-8-lua",
"scopeName": "source.pico8.lua",
"path": "./syntaxes/pico-8-lua.tmLanguage.json"
}
],
"snippets": [
{
"language": "pico-8",
"path": "./syntaxes/snippets.json"
},
{
"language": "pico-8-lua",
"path": "./syntaxes/snippets.json"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"vscode-publish": "vsce package && vsce publish",
"clean": "rm -rf client/out client/out-min server/out server/out-min",
"clean-deps": "rm -rf node_modules client/node_modules server/node_modules && npm install",
"compile-tsc": "node node_modules/typescript/bin/tsc -b",
"compile": "npm run esbuild-client && npm run esbuild-server",
"esbuild-client": "esbuild ./client/src/extension.ts --bundle --outfile=./client/out-min/main.js --external:vscode --format=cjs --platform=node --minify",
"esbuild-server": "esbuild ./server/src/server.ts --bundle --outfile=./server/out-min/main.js --external:vscode --format=cjs --platform=node --minify",
"compile-nomin": "npm run esbuild-client-nomin && npm run esbuild-server-nomin",
"esbuild-client-nomin": "esbuild ./client/src/extension.ts --bundle --outfile=./client/out-min/main.js --external:vscode --format=cjs --platform=node",
"esbuild-server-nomin": "esbuild ./server/src/server.ts --bundle --outfile=./server/out-min/main.js --external:vscode --format=cjs --platform=node",
"lint": "eslint ./client/src ./server/src --ext .ts",
"lint:fix": "eslint ./client/src ./server/src --ext .ts --fix",
"postinstall": "cd client && npm install && cd ../server && npm install && cd .."
},
"devDependencies": {
"@types/mocha": "^8.2.2",
"@types/node": "^12.12.0",
"@typescript-eslint/eslint-plugin": "^4.23.0",
"@typescript-eslint/parser": "^4.23.0",
"esbuild": "^0.14.14",
"eslint": "^7.26.0",
"mocha": "^9.2.0",
"typescript": "^4.4.3"
}
}