forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
151 lines (151 loc) · 4.69 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
{
"name": "slint",
"displayName": "Slint",
"description": "Slint Language extension",
"version": "1.0.0",
"publisher": "Slint",
"icon": "extension-logo.png",
"license": "GPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/slint-ui/slint"
},
"engines": {
"vscode": "^1.70.0"
},
"categories": [
"Programming Languages"
],
"activationEvents": [
"onLanguage:slint",
"onLanguage:rust",
"onWebviewPanel:slint-preview",
"onView:slint.propertiesView"
],
"main": "./out/extension.js",
"browser": "./out/browser.js",
"contributes": {
"languages": [
{
"id": "slint",
"aliases": [
"Slint"
],
"extensions": [
".slint",
".60"
],
"configuration": "language-configuration.json"
}
],
"grammars": [
{
"language": "slint",
"scopeName": "source.slint",
"path": "./slint.tmLanguage.json"
},
{
"injectTo": [
"source.rust"
],
"scopeName": "source.rust.slint",
"path": "./slint.injection.json",
"embeddedLanguages": {
"source.slint": "slint"
}
}
],
"commands": [
{
"command": "slint.showPreview",
"title": "Show Preview",
"category": "Slint"
},
{
"command": "slint.reload",
"title": "Restart server",
"category": "Slint"
}
],
"menus": {
"commandPalette": [
{
"command": "slint.showPreview",
"when": "editorLangId == slint"
},
{
"command": "slint.reload"
}
]
},
"configuration": {
"type": "object",
"title": "Slint",
"properties": {
"slint.lsp-args": {
"type": "array",
"items": {
"type": "string"
},
"description": "The command line arguments passed to the Slint LSP server"
},
"slint.preview.style": {
"type": "string",
"description": "The style to be used for the preview (eg: 'fluent', 'material', or 'native')"
},
"slint.includePaths": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of paths in which the `import` statement and `@image-url` are looked up"
}
}
},
"views": {
"explorer": [
{
"type": "webview",
"id": "slint.propertiesView",
"name": "Properties",
"contextualTitle": "Slint Properties"
}
]
}
},
"dependencies": {
"vscode-languageclient": "^7.0.0",
"vscode-languageserver": "^8.0.2",
"@vscode/codicons": "0.0.32"
},
"files": [
"bin/slint-lsp-*"
],
"scripts": {
"vscode:prepublish": "wasm-pack build --target web --out-name index ../../tools/lsp --no-default-features --features preview-lense,preview-api && wasm-pack build --release --target web --out-dir $PWD/out ../../api/wasm-interpreter --features highlight && npm run compile",
"compile": "node ./esbuild.js",
"local-package": "mkdir -p bin && cp ../../target/debug/slint-lsp bin/ && npx vsce package",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^8.2.3",
"@types/node": "^12.20.55",
"@types/vscode": "1.70.0",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/parser": "^5.44.0",
"esbuild": "^0.14.54",
"eslint": "^8.28.0",
"glob": "^7.2.3",
"mocha": "^8.4.0",
"path-browserify": "^1.0.1",
"ts-loader": "^9.4.1",
"typescript": "^4.9.3",
"vscode-test": "^1.6.1",
"webpack": "^5.75.0",
"webpack-cli": "^4.10.0"
}
}