-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
138 lines (138 loc) · 4.09 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
{
"name": "pdml",
"displayName": "PDML",
"description": "Practical Data & Markup Language support",
"icon": "images/logo.png",
"publisher": "shelby-landen",
"version": "0.9.0",
"repository": {
"type": "git",
"url": "https://github.com/slanden/vscode-pdml.git"
},
"engines": {
"vscode": "^1.71.0"
},
"categories": [
"Programming Languages"
],
"keywords": [
"pdml",
"pml",
"practical",
"data",
"markup",
"xml"
],
"activationEvents": [
"onLanguage:pdml",
"onLanguage:pml"
],
"main": "./dist/extension",
"contributes": {
"configuration": {
"title": "PDML",
"properties": {
"pdml.lints": {
"type":"object",
"properties": {
"unexpectedEquals": {
"title": "Unexpected Equal Sign",
"description": "Notify of an Equal sign, '=', in the wrong place",
"type": "boolean",
"default": true
},
"invalidName": {
"title": "Invalid Name",
"description": "Notify of an invalid name",
"type":"boolean",
"default": true
},
"oneRoot": {
"title": "Only a Single Root Node",
"description": "Notify of content appearing before/after the first node at the same level",
"type":"boolean",
"default": false
}
}
}
}
},
"languages": [
{
"id": "pdml",
"aliases": [
"Practical Data & Markup Language",
"pdml"
],
"extensions": [
".pdml"
],
"configuration": "./language-configuration.json",
"icon": {
"dark": "images/file-icon.svg",
"light": "images/file-icon.svg"
}
},
{
"id": "pml",
"aliases": [
"Practical Markup Language",
"pml"
],
"extensions": [
".pml"
],
"configuration": "./language-configuration.json",
"icon": {
"dark": "images/file-icon.svg",
"light": "images/file-icon.svg"
}
}
],
"grammars": [
{
"language": "pdml",
"scopeName": "source.pdml",
"path": "./syntaxes/pdml.tmLanguage.json",
"embeddedLanguages": {
"meta.embedded.block.css": "css",
"meta.embedded.block.javascript": "javascript"
},
"unbalancedBracketScopes": [
"constant.character.escape"
]
},
{
"language": "pml",
"scopeName": "source.pdml.pml",
"path": "./syntaxes/pml.tmLanguage.json",
"embeddedLanguages": {
"meta.embedded.block.css": "css",
"meta.embedded.block.javascript": "javascript"
},
"unbalancedBracketScopes": [
"constant.character.escape"
]
}
]
},
"scripts": {
"build-parser": "wasm-pack build ../pdml-parser --out-dir ../vscode-pdml/parser --target nodejs --no-pack -- --config opt-level=\"'s'\" && rm parser/.gitignore",
"vscode:prepublish": "npm install && npm run esbuild-base -- --minify",
"esbuild-base1": "rimraf dist && esbuild ./server/src/server.ts --bundle --outfile=dist/server.mjs --format=esm --external:vscode --platform=node --target=node16.10 && esbuild ./client/src/extension.ts --bundle --outfile=dist/extension.js --format=esm --external:vscode --platform=node --target=node16.10",
"esbuild-base": "rimraf dist && esbuild ./server/src/server.ts ./client/src/extension.ts --bundle --outdir=dist --entry-names=[name] --external:vscode --platform=node --target=node16.10",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"rename-server": "node -e \"require('mv')('dist/server.js', 'dist/server.mjs', e=>console.error)\"",
"compile": "tsc -b",
"publish": "vsce publish",
"watch": "tsc -b -w"
},
"devDependencies": {
"@types/node": "16.x",
"esbuild": "^0.18.15",
"mv": "^2.1.1",
"rimraf": "^5.0.1",
"typescript": "^5.1.6"
}
}