-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
190 lines (190 loc) · 5.67 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
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
{
"name": "pomsky-vscode",
"displayName": "Pomsky",
"description": "Language support for pomsky-lang",
"version": "0.2.0",
"publisher": "pomsky-lang",
"repository": {
"type": "git",
"url": "https://github.com/pomsky-lang/pomsky-vscode"
},
"scripts": {
"vscode:prepublish": "npm run client:esbuild-base -- --minify && npm run server:esbuild-base -- --minify",
"client:esbuild-base": "esbuild ./client/src/extension.ts --bundle --outfile=dist/main.js --external:vscode --format=cjs --platform=node",
"server:esbuild-base": "esbuild ./server/src/server.ts --bundle --outfile=dist/server.js --external:vscode --format=cjs --platform=node",
"build-dev": "npm run client:esbuild-base -- --sourcemap && npm run server:esbuild-base -- --sourcemap",
"watch": "concurrently \"npm run client:esbuild-base -- --sourcemap --watch\" \"npm run server:esbuild-base -- --sourcemap --watch\"",
"test-compile": "tsc -b",
"test-watch": "tsc -b -w",
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx",
"postinstall": "cd client && npm install && cd ../server && npm install && cd .."
},
"devDependencies": {
"@types/node": "^20.9.0",
"@types/vscode": "^1.70.0",
"@types/vscode-webview": "^1.57.0",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"concurrently": "^8.2.2",
"esbuild": "^0.19.5",
"eslint": "^8.53.0",
"typescript": "^5.2.2"
},
"readme": "README.md",
"homepage": "https://pomsky-lang.org/",
"funding": {
"type": "individual",
"url": "https://github.com/sponsors/Aloso"
},
"license": "(MIT OR Apache-2.0)",
"icon": "media/icon.png",
"engines": {
"vscode": "^1.70.0"
},
"categories": [
"Programming Languages"
],
"keywords": [
"multi-root ready"
],
"activationEvents": [
"onWebviewPanel:viewType",
"onWebviewPanel:pomskyPreview"
],
"main": "./dist/main.js",
"contributes": {
"commands": [
{
"command": "pomsky.preview.open",
"title": "Open compiled RegExp on the right",
"category": "Pomsky",
"shortTitle": "Preview",
"icon": {
"dark": "./media/preview-dark.svg",
"light": "./media/preview-light.svg"
}
},
{
"command": "pomsky.executable.set",
"title": "Set path to Pomsky executable",
"category": "Pomsky"
},
{
"command": "pomsky.compilation.cancel",
"title": "Cancel compilation",
"category": "Pomsky"
}
],
"menus": {
"editor/context": [
{
"when": "resourceLangId == pomsky",
"command": "pomsky.preview.open",
"group": "navigation"
}
],
"editor/title": [
{
"when": "resourceLangId == pomsky",
"command": "pomsky.preview.open",
"group": "navigation"
}
]
},
"languages": [
{
"id": "pomsky",
"aliases": [
"Pomsky",
"pomsky"
],
"extensions": [
".pom",
".pomsky"
],
"configuration": "./language-configuration.json",
"icon": {
"light": "./media/icon.png",
"dark": "./media/icon.png"
}
},
{
"id": "pomsky-injection"
}
],
"grammars": [
{
"language": "pomsky",
"scopeName": "source.pomsky",
"path": "./syntaxes/pomsky.tmLanguage.json"
},
{
"language": "pomsky-injection",
"scopeName": "markdown.pomsky.codeblock",
"path": "./syntaxes/codeblock.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.pomsky": "pomsky"
}
}
],
"configuration": [
{
"title": "Pomsky",
"properties": {
"pomsky.defaultFlavor": {
"title": "Default Regex Flavor",
"type": "string",
"default": "JavaScript",
"enum": [
"DotNet",
"JavaScript",
"Java",
"PCRE",
"Python",
"Rust",
"Ruby"
],
"enumDescriptions": [
".NET (C#) flavor",
"JavaScript (ECMAScript) flavor",
"Java flavor",
"PCRE flavor",
"Python `re` flavor",
"Rust `regex` flavor",
"Ruby (Oniguruma) flavor"
],
"description": "Regex flavor to compile to"
},
"pomsky.runTests": {
"title": "Run tests",
"type": "boolean",
"default": false,
"description": "Run Pomsky unit tests after every change"
},
"pomsky.executable.path": {
"type": "string",
"default": "pomsky",
"pattern": "^(?!\\.\\.?/)",
"markdownDescription": "Path to the `pomsky` executable.\n\nWhen this is just a file name, the extension looks in `~/.cargo/bin` and your `PATH`, but ignores your shell configuration.",
"examples": [
"~/.cargo/bin/pomsky"
],
"title": "Executable path"
},
"pomsky.executable.extraArgs": {
"type": "string",
"default": "",
"markdownDescription": "Additional arguments to pass to the `pomsky` executable, e.g. `-Wcompat=0 --allowed-features=`.\n\nArguments must be space-separated. They can't be quoted, but spaces can be escaped with `\\ `.",
"examples": [
"/home/john/.cargo/bin/pomsky"
],
"title": "Extra CLI arguments"
}
}
}
]
}
}