-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
220 lines (220 loc) · 8.55 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
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
{
"name": "vscode-antlers",
"displayName": "Antlers Toolbox",
"description": "Provides Antlers syntax highlighting, formatting, error reporting, project-specific suggestions, and more.",
"author": "John Koster",
"license": "MIT",
"version": "2.6.21",
"repository": {
"type": "git",
"url": "https://github.com/Stillat/vscode-antlers-language-server"
},
"publisher": "stillat-llc",
"icon": "toolbox-icon.png",
"keywords": [
"statamic",
"intellisense",
"snippet",
"highlighter",
"beautify",
"antlers",
"template"
],
"categories": [
"Programming Languages",
"Snippets",
"Formatters"
],
"engines": {
"vscode": "^1.43.0"
},
"activationEvents": [
"onLanguage:html",
"onView:antlers.projectExplorer"
],
"type": "module",
"main": "./client/out/extension",
"contributes": {
"languages": [
{
"id": "html",
"aliases": [
"HTML (Statamic Antlers)",
"antlers"
],
"extensions": [
".antlers.html",
".antlers.php",
".antlers.xml",
".html",
".htm",
".xhtml"
],
"configuration": "./client/antlers.configuration.json"
}
],
"grammars": [
{
"language": "html",
"scopeName": "text.html.statamic",
"path": "./client/syntaxes/antlers.json",
"embeddedLanguages": {
"meta.embedded.block.frontmatter": "yaml",
"source.php": "php",
"source.js": "js"
}
}
],
"semanticTokenScopes": [
{
"scopes": {
"antlersAttribute": [
"entity.other.attribute-name"
]
}
}
],
"configuration": {
"type": "object",
"title": "Antlers configuration",
"properties": {
"antlersOverrideHtmlComments": {
"scope": "resource",
"type": "boolean",
"default": false,
"description": "When enabled Antlers style block comments will be used in HTML contexts."
},
"antlersLanguageServer.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"antlersLanguageServer.showGeneralSnippetCompletions": {
"scope": "window",
"type": "boolean",
"default": true,
"description": "When enabled general Antlers snippets will appear in completion suggestions outside of Antlers tags."
},
"antlersLanguageServer.diagnostics.reportDiagnostics": {
"scope": "window",
"type": "boolean",
"default": true,
"description": "When enabled, Antlers Toolbox will report syntax errors and warnings."
},
"antlersLanguageServer.diagnostics.warnOnDynamicCssClassNames": {
"scope": "window",
"type": "boolean",
"default": true,
"description": "When enabled, Antlers Toolbox will check for dynamic CSS class names and emit warnings."
},
"antlersLanguageServer.diagnostics.validateTagParameters": {
"scope": "window",
"type": "boolean",
"default": true,
"description": "When enabled, Antlers Toolbox will validate known tag parameters."
},
"antlersLanguageServer.languageVersion": {
"scope": "window",
"type": "string",
"enum": [
"regex",
"runtime"
],
"default": "regex",
"description": "The Antlers language version to use."
},
"antlersLanguageServer.formatFrontMatter": {
"scope": "window",
"type": "boolean",
"default": "false",
"title": "Formatter: Format Front Matter",
"description": "Controls whether YAML frontmatter is formatted."
},
"antlersLanguageServer.formatterIgnoreExtensions": {
"scope": "window",
"type": "array",
"default": [],
"title": "Formatter: Ignore File Extensions",
"description": "A list of file extensions the Antlers formatter should ignore."
}
}
},
"commands": [
{
"command": "extension.antlersLanguageServer.reloadProjectDetails",
"title": "Reload Statamic Project Details",
"category": "Antlers"
},
{
"command": "extension.antlersLanguageServer.debugEditorContents",
"title": "Debug Antlers",
"category": "Antlers",
"enablement": "!inDebugMode",
"icon": "$(debug-alt)"
}
],
"breakpoints": [
{
"language": "antlers"
}
],
"debuggers": [
{
"type": "antlers",
"languages": [
"antlers"
],
"label": "Antlers Debug"
}
],
"views": {
"explorer": [
{
"id": "antlers.projectExplorer",
"name": "Blueprint Explorer",
"contextualTitle": "Statamic Blueprint Explorer",
"type": "tree",
"icon": "explorer.svg",
"when": "resourceExtname == .html"
}
]
}
},
"bundleDependencies": [],
"scripts": {
"vscode:prepublish": "npm run compile && npm run build:webview",
"compile": "tsc -b",
"bundle:format_cli": "npm run compile && npm run esbuild:format_cli",
"esbuild:format_cli": "esbuild ./server/src/formatting/cli/index.ts --bundle --minify --outfile=./formatcli/package/cli.js --format=cjs --platform=node",
"bundle:antlersls": "npm run compile && npm run esbuild:antlersls",
"esbuild:antlersls": "esbuild ./server/src/server.ts --bundle --minify --outfile=./antlersls/server.js --format=cjs --platform=node",
"bundle:prettier": "npm run compile && npm run esbuild:prettier",
"esbuild:prettier": "esbuild ./server/src/formatting/prettier/plugin.ts --bundle --minify --outfile=./formatcli/prettier-plugin-antlers/plugin.js --format=esm --platform=node --external:prettier --banner:js=\"import {createRequire} from 'module';const require=createRequire(import.meta.url);\"",
"watch": "tsc -b -w",
"start:webview": "cd docsui && npm run start",
"build:webview": "cd docsui && npm run build",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ../docsui && npm install && cd ..",
"bundle:everything": "npm run bundle:format_cli && npm run bundle:antlersls && npm run bundle:prettier",
"test:server": "npm run compile && mocha ./server/out/test/*.js -- -u tdd"
},
"devDependencies": {
"@types/mocha": "^8.2.3",
"@types/node": "^12.20.55",
"esbuild": "^0.14.54",
"eslint": "^8.38.0",
"mocha": "^10.2.0",
"typescript": "^4.9.5"
},
"dependencies": {
"js-yaml": "^4.1.0",
"php-parser": "^3.1.4",
"semver": "^7.3.8",
"ts-md5": "^1.3.1"
}
}