-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
179 lines (179 loc) · 5.53 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
{
"name": "pkl-vscode",
"displayName": "Pkl",
"description": "Syntax highlighting, bracket matching, and code folding for Pkl files.",
"icon": "img/icon.png",
"version": "0.18.2",
"publisher": "Pkl",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/apple/pkl-vscode"
},
"homepage": "https://github.com/apple/pkl-vscode",
"bugs": {
"url": "https://github.com/apple/pkl-vscode/issues"
},
"//": "don't publish to npm",
"private": true,
"engines": {
"vscode": "^1.59.0"
},
"categories": [
"Programming Languages"
],
"main": "./out/main.js",
"activationEvents": [
"onLanguage:pkl"
],
"contributes": {
"languages": [
{
"id": "pkl",
"extensions": [
".pkl",
".pcf"
],
"filenames": [
"PklProject"
],
"aliases": [
"Pkl"
],
"firstLine": "^#!/.*\\bpkl\\b",
"configuration": "./language-configuration.json",
"icon": {
"light": "./img/icon.svg",
"dark": "./img/icon.svg"
}
}
],
"grammars": [
{
"language": "pkl",
"scopeName": "source.pkl",
"path": "out/pkl.tmLanguage.json"
}
],
"semanticTokenTypes": [
{
"id": "punctuation",
"description": "Punctuation symbols"
},
{
"id": "string-escape",
"description": "String escape characters"
},
{
"id": "constant",
"description": "Constants built into the language, such as booleans or nulls"
},
{
"id": "error",
"description": "Invalid parsing sequences"
}
],
"semanticTokenScopes": [
{
"scopes": {
"keyword": [
"keyword.pkl"
],
"punctuation": [
"punctuation.pkl"
],
"punctuationBracket": [
"punctuation.bracket.pkl"
],
"control": [
"keyword.control.pkl"
],
"error": [
"invalid.illegal.pkl"
],
"stringEscape": [
"constant.character.escape.pkl"
],
"constant": [
"constant.character.language.pkl"
]
}
}
],
"configuration": {
"title": "Pkl",
"properties": {
"pkl.lsp.path": {
"type": "string",
"default": null,
"description": "Path to pkl-lsp jar file. This is an internal developer option."
},
"pkl.lsp.debug.port": {
"type": "integer",
"default": 5005,
"description": "Debug port to launch pkl-lsp. This is an internal developer option."
},
"pkl.cli.path": {
"type": "string",
"default": null,
"description": "Path to pkl executable",
"scope": "Pkl"
},
"pkl.lsp.java.path": {
"type": "string",
"default": null,
"description": "Path to java executable used to start pkl-lsp."
}
}
},
"commands": [
{
"category": "Pkl",
"title": "Sync Projects",
"command": "pkl.syncProjects"
}
]
},
"scripts": {
"clean": "shx rm -rf out/",
"build": "npm run clean && npm run build:pkl && npm run build:code && npm run build:tree-sitter && npm run build:download-lsp",
"build:local": "npm run clean && npm run build:pkl && npm run build:code && npm run build:tree-sitter:local && npm run build:download-lsp",
"build:pkl": "pkl eval -m . src/pkl/index.pkl",
"build:download-lsp": "ts-node scripts/download-lsp-jar.ts",
"build:tree-sitter": "shx mkdir -p out/grammar/ && cd node_modules/@apple/tree-sitter-pkl && tree-sitter build-wasm && shx mv tree-sitter-pkl.wasm ../../../out/pkl.wasm",
"build:tree-sitter:local": "shx mkdir -p out/grammar/ && cd node_modules/@apple/tree-sitter-pkl && tree-sitter build-wasm --docker && cd - && mv node_modules/@apple/tree-sitter-pkl/tree-sitter-pkl.wasm out/pkl.wasm",
"esbuild-base": "shx mkdir -p out/ && shx cp node_modules/web-tree-sitter/tree-sitter.wasm out/ && esbuild ./src/ts/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"build:code": "npm run esbuild-base -- --sourcemap",
"lint:fix": "prettier -w src/",
"lint": "prettier -c src/",
"watch": "npm run esbuild-base -- --sourcemap --watch",
"test": "node scripts/license-header.js test && npm run test:grammar",
"test:grammar": "sh scripts/check-grammar",
"prepackage": "npm run build",
"package": "shx mkdir -p .dist/vscode && vsce package --out .dist/vscode/pkl-vscode-$npm_package_version.vsix",
"package-only": "shx mkdir -p .dist/vscode && vsce package --out .dist/vscode/pkl-vscode-$npm_package_version.vsix",
"preinstallextension": "npm run package",
"installextension": "code --install-extension .dist/vscode/pkl-vscode-$npm_package_version.vsix",
"add-license-headers": "node scripts/license-header.js",
"clone-grammar": "git submodule update --init --recursive"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"@apple/tree-sitter-pkl": "^0.17.0",
"@types/node": "^16.11.38",
"@types/vscode": "^1.59.0",
"esbuild": "^0.14.54",
"prettier": "^2.6.2",
"shx": "^0.3.4",
"tree-sitter": "^0.20.0",
"tree-sitter-cli": "^0.20.8",
"ts-node": "^10.9.2",
"tslint": "^5.8.0",
"typescript": "^4.7.3",
"vsce": "2.9",
"vscode-test": "^1.6.1",
"web-tree-sitter": "^0.20.5"
}
}