-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpackage.json
More file actions
192 lines (192 loc) · 6 KB
/
package.json
File metadata and controls
192 lines (192 loc) · 6 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
{
"name": "nwscript-ee-language-server",
"displayName": "nwscript-ee-language-server",
"description": "A language server for the NWScript language.",
"icon": "NWN.png",
"repository": {
"type": "git",
"url": "https://github.com/PhilippeChab/nwscript-ee-language-server"
},
"license": "MIT",
"version": "2.2.1",
"author": {
"name": "Philippe Chabot"
},
"publisher": "PhilippeChab",
"engines": {
"vscode": "^1.86.0"
},
"categories": [
"Programming Languages"
],
"keywords": [
"NWScript",
"Neverwinter Script",
"Neverwinter Nights",
"Neverwinter Nights: EE"
],
"activationEvents": [
"onLanguage:nwscript"
],
"main": "./client/out/extension",
"contributes": {
"languages": [
{
"id": "nwscript",
"aliases": [
"Neverwinter Script",
"nwscript"
],
"extensions": [
".nss"
],
"configuration": "./syntaxes/language-configuration.json"
}
],
"grammars": [
{
"language": "nwscript",
"scopeName": "source.nss",
"path": "./syntaxes/nwscript-ee.tmLanguage"
}
],
"configuration": {
"type": "object",
"title": "NWScript: EE LSP Formatter Configuration",
"properties": {
"nwscript-ee-lsp.completion": {
"type": "object",
"properties": {
"addParamsToFunctions": {
"type": "boolean",
"default": false,
"description": "Will include a function's params when auto completing it."
}
}
},
"nwscript-ee-lsp.hovering": {
"type": "object",
"properties": {
"addCommentsToFunctions": {
"type": "boolean",
"default": false,
"description": "Will include a function's comments when hovering it."
}
}
},
"nwscript-ee-lsp.formatter": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Whether or not the formatter is enabled."
},
"verbose": {
"type": "boolean",
"default": false,
"description": "Whether or not the formatter is verbose."
},
"executable": {
"type": "string",
"default": "clang-format",
"description": "Clang format's executable path."
},
"ignoredGlobs": {
"type": "array",
"default": [],
"description": "Glob patterns to ignore.",
"items": {
"type": "string"
}
},
"style": {
"type": "object",
"default": {
"BasedOnStyle": "Google",
"AlignTrailingComments": true,
"AlignConsecutiveAssignments": true,
"ColumnLimit": 250,
"BreakBeforeBraces": "Allman",
"AlignEscapedNewlinesLeft": true,
"AlwaysBreakBeforeMultilineStrings": true,
"MaxEmptyLinesToKeep": 1,
"TabWidth": 4,
"IndentWidth": 4,
"UseTab": "Always"
},
"description": "Style for the formatter."
}
}
},
"nwscript-ee-lsp.compiler": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": true,
"description": "Whether or not the compiler is enabled."
},
"os": {
"type": "string",
"default": null,
"description": "Force to use a specific os executable. Darwin, Linux or Windows_NT."
},
"verbose": {
"type": "boolean",
"default": false,
"description": "Whether or not the compiler is verbose."
},
"reportWarnings": {
"type": "boolean",
"default": false,
"description": "Whether or not the compiler report warnings."
},
"nwnHome": {
"type": "string",
"default": "",
"description": "Your Neverwinter Nights home directory."
},
"nwnInstallation": {
"type": "string",
"default": "",
"description": "Your Neverwinter Nights installation directory."
}
}
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn build",
"build": "yarn clean && yarn buildClient && yarn buildServer",
"buildClient": "esbuild extension=./client/src/extension.ts --sourcemap --bundle --external:vscode --platform=node --outdir=./client/out/",
"buildServer": "esbuild server=./server/src/server.ts indexer=./server/src/Documents/DocumentsIndexer.ts --sourcemap --bundle --external:vscode --platform=node --outdir=./server/out/",
"compile": "tsc -b",
"compile:client": "tsc -b ./client/tsconfig.json",
"compile:server": "tsc -b ./server/tsconfig.json",
"watch": "tsc -b -w",
"lint": "eslint ./client/src ./server/src --ext .ts",
"postinstall": "cd client && yarn install && cd ../server && yarn install && cd ..",
"test": "cd server && yarn test && cd ..",
"clean": "rimraf client/out && rimraf server/out"
},
"devDependencies": {
"@types/node": "14.x",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.21.0",
"esbuild": "^0.25.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard-with-typescript": "^22.0.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.0",
"merge-options": "^3.0.4",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"ts-loader": "^9.3.1",
"typescript": "*"
}
}