summaryrefslogtreecommitdiff
path: root/package.json
blob: 112b3161f6760f04b835e4b2e31561009fcdc7a5 (plain)
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
{
	"name": "perlnavigator",
	"displayName": "Perl Navigator",
	"description": "Code navigation, autocompletion, syntax checking, and linting for Perl",
	"author": "bscan",
	"license": "MIT",
	"version": "0.4.1",
	"icon": "images/camel_icon.png",
	"repository": {
		"type": "git",
		"url": "https://github.com/bscan/PerlNavigator"
	},
	"publisher": "bscan",
	"categories": [],
	"keywords": [
		"multi-root ready"
	],
	"engines": {
		"vscode": "^1.43.0"
	},
	"activationEvents": [
		"onLanguage:perl"
	],
	"main": "./client/out/extension",
	"contributes": {
		"configuration": {
			"type": "object",
			"title": "Perl Navigator",
			"properties": {
				"perlnavigator.perlPath": {
					"scope": "resource",
					"type": "string",
					"default": "perl",
					"description": "Full path to the perl executable (no aliases, .bat files or ~/)"
				},
				"perlnavigator.enableWarnings": {
					"scope": "resource",
					"type": "boolean",
					"default": true,
					"description": "Enable warnings using -Mwarnings command switch"
				},
				"perlnavigator.perlimportsLintEnabled": {
					"scope": "resource",
					"type": "boolean",
					"default": false,
					"description": "Enable perlimports as a linter."
				},
				"perlnavigator.perlimportsTidyEnabled": {
					"scope": "resource",
					"type": "boolean",
					"default": false,
					"description": "Enable perlimports as a tidier."
				},
				"perlnavigator.perlimportsProfile": {
					"scope": "resource",
					"type": "string",
					"default": "",
					"description": "Path to perlimports.toml (no aliases, .bat files or ~/)"
				},
				"perlnavigator.perltidyProfile": {
					"scope": "resource",
					"type": "string",
					"default": "",
					"description": "Path to perl tidy profile (no aliases, .bat files or ~/)"
				},
				"perlnavigator.perltidyEnabled": {
					"scope": "resource",
					"type": "boolean",
					"default": true,
					"description": "Enable perl tidy."
				},
				"perlnavigator.perlcriticProfile": {
					"scope": "resource",
					"type": "string",
					"default": "",
					"description": "Path to perl critic profile. Otherwise perlcritic itself will default to ~/.perlcriticrc. (no aliases, .bat files or ~/)"
				},
				"perlnavigator.perlcriticEnabled": {
					"scope": "resource",
					"type": "boolean",
					"default": true,
					"description": "Enable perl critic."
				},
				"perlnavigator.severity5": {
					"scope": "resource",
					"type": "string",
					"enum": [
						"error",
						"warning",
						"info",
						"hint",
						"none"
					],
					"default": "warning",
					"description": "Editor Diagnostic severity level for Critic severity 5"
				},
				"perlnavigator.severity4": {
					"scope": "resource",
					"type": "string",
					"enum": [
						"error",
						"warning",
						"info",
						"hint",
						"none"
					],
					"default": "info",
					"description": "Editor Diagnostic severity level for Critic severity 4"
				},
				"perlnavigator.severity3": {
					"scope": "resource",
					"type": "string",
					"enum": [
						"error",
						"warning",
						"info",
						"hint",
						"none"
					],
					"default": "hint",
					"description": "Editor Diagnostic severity level for Critic severity 3"
				},
				"perlnavigator.severity2": {
					"scope": "resource",
					"type": "string",
					"enum": [
						"error",
						"warning",
						"info",
						"hint",
						"none"
					],
					"default": "hint",
					"description": "Editor Diagnostic severity level for Critic severity 2"
				},
				"perlnavigator.severity1": {
					"scope": "resource",
					"type": "string",
					"enum": [
						"error",
						"warning",
						"info",
						"hint",
						"none"
					],
					"default": "hint",
					"description": "Editor Diagnostic severity level for Critic severity 1"
				},
				"perlnavigator.includePaths": {
					"scope": "resource",
					"type": "array",
					"default": [],
					"description": "Array of paths added to @INC. You can use $workspaceFolder as a placeholder."
				},
				"perlnavigator.includeLib": {
					"scope": "resource",
					"type": "boolean",
					"default": true,
					"description": "Boolean to indicate if $project/lib should be added to the path by default"
				},
				"perlnavigator.logging": {
					"scope": "resource",
					"type": "boolean",
					"default": true,
					"description": "Log to stdout from the navigator. Viewable in the Perl Navigator LSP log"
				},
				"perlnavigator.trace.server": {
					"scope": "window",
					"type": "string",
					"enum": [
						"off",
						"messages",
						"verbose"
					],
					"default": "messages",
					"description": "Traces the communication between VS Code and the language server."
				}
			}
		},
		"grammars": [
			{
			  "injectTo": [
				"source.perl"
			  ],
			  "scopeName": "source.perl.frameworks",
			  "path": "./syntaxes/perl-scopes.json"
			},
			{
			  "injectTo": [
				"source.perl"
			  ],
			  "scopeName": "source.perl.package.moose",
			  "path": "./syntaxes/moose.json"
			},
			{
				"injectTo": [
				  "source.perl"
				],
				"scopeName": "source.perl.package.dataclass",
				"path": "./syntaxes/dataclass.json"
			},
			{
				"injectTo": [
				  "source.perl"
				],
				"scopeName": "source.perl.package.objectpad",
				"path": "./syntaxes/object-pad.json"
			},
			{
				"injectTo": [
				  "source.perl"
				],
				"scopeName": "source.perl.package.moops",
				"path": "./syntaxes/moops.json"
			},
			{
				"injectTo": [
				  "source.perl"
				],
				"scopeName": "source.perl.package.zydeco",
				"path": "./syntaxes/zydeco.json"
			},
			{
				"injectTo": [
				  "source.perl"
				],
				"scopeName": "source.perl.package.mars",
				"path": "./syntaxes/mars.json"
			},
			{
				"injectTo": [
				  "source.perl"
				],
				"scopeName": "source.perl.package.async",
				"path": "./syntaxes/async.json"
			},
			{
				"injectTo": [
				  "source.perl"
				],
				"scopeName": "source.perl.package.funcparams",
				"path": "./syntaxes/funcparams.json"
			}
		]
	},
	"scripts": {
		"vscode:prepublish": "npm run compile",
		"compile": "tsc -b",
		"watch": "tsc -b -w",
		"install-client": "cd client && npm install",
		"install-server": "cd server && npm install",
		"postinstall": "npm run-script install-client && npm run-script install-server",
		"ci-client": "cd client && npm ci",
		"ci-server": "cd server && npm ci",
		"ci-all": "npm ci && npm run ci-client && npm run ci-server",
		"clean": "rm -rf ./node-modules ./server/node-modules ./client/node-modules",
		"foo": "(cd client && npm ci && cd ../); (cd server && npm c )",
		"test": "sh ./scripts/e2e.sh",
		"build-binary": "tsc -b && pkg ."
	},
	"devDependencies": {
		"@types/mocha": "^10.0.1",
		"@types/node": "^12.12.0",
		"@typescript-eslint/eslint-plugin": "^4.23.0",
		"@typescript-eslint/parser": "^4.23.0",
		"eslint": "^7.26.0",
		"mocha": "^10.1.0",
		"pkg": "^5.5.2",
		"typescript": "^4.2.3"
	},
	"bin": "server/out/server.js",
	"pkg": {
		"scripts": "server/out/server.js",
		"assets": "server/src/**/*",
		"targets": [
			"node14-linux-x64",
			"node14-macos-x64",
			"node14-win-x64"
		],
		"outputPath": "dist"
	}
}