-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
159 lines (159 loc) · 5.99 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
{
"name": "dagor-shader-language-support",
"displayName": "Dagor Shader Language Support",
"description": "Language support extension for the Dagor Shader Language.",
"publisher": "gaijin",
"version": "1.9.0",
"license": "BSD-3-Clause",
"repository": {
"type": "git",
"url": "https://github.com/GaijinEntertainment/Dagor-Shader-Language-Support-for-Visual-Studio-Code"
},
"bugs": {
"url": "https://github.com/GaijinEntertainment/Dagor-Shader-Language-Support-for-Visual-Studio-Code/issues"
},
"categories": [
"Programming Languages",
"Snippets"
],
"keywords": [
"gaijin",
"dagor",
"shader",
"language"
],
"engines": {
"vscode": "^1.80.0"
},
"icon": "res/icon.png",
"galleryBanner": {
"theme": "light"
},
"contributes": {
"languages": [
{
"id": "dshl",
"aliases": [
"Dagor Shader Language",
"dshl"
],
"extensions": [
"dshl"
],
"configuration": "./Dagor-Shader-Language-Server/grammar/language-configuration.json",
"icon": {
"light": "res/dshl-icon.svg",
"dark": "res/dshl-icon.svg"
}
},
{
"id": "hlsl",
"aliases": [
"HLSL",
"High Level Shader Language"
],
"extensions": [
"hlsl"
],
"configuration": "./Dagor-Shader-Language-Server/grammar/language-configuration.json",
"icon": {
"light": "res/hlsl-icon.svg",
"dark": "res/hlsl-icon.svg"
}
}
],
"grammars": [
{
"language": "dshl",
"scopeName": "source.dshl",
"path": "./Dagor-Shader-Language-Server/grammar/dshl.tmLanguage.json"
},
{
"language": "hlsl",
"scopeName": "source.hlsl",
"path": "./Dagor-Shader-Language-Server/grammar/hlsl.tmLanguage.json"
}
],
"configuration": [
{
"title": "Dagor Shader Language Support",
"properties": {
"dagorShaderLanguageServer.shaderConfigOverride": {
"type": "string",
"order": 0,
"default": "",
"pattern": ".*?shaders_(.*?)\\.blk|^$",
"patternErrorMessage": "The shader config file's name has to be shaders_<CONFIG>.blk.",
"markdownDescription": " Shader configs are .blk files, usually located in the games' `prog/shaders` folders, and they determine include folders. For example: `samples/testGI/prog/shaders/shaders_dx12.blk`. If you want to override the extension's automatic shader config selection, provide the shader config's path here. Leaving it empty enables the automatic selection based on game, platform, and driver in launch options."
}
}
}
],
"commands": [
{
"command": "dagorShaderLanguageServer.setShaderConfig",
"title": "Set as shader config override"
}
],
"menus": {
"commandPalette": [
{
"command": "dagorShaderLanguageServer.setShaderConfig",
"when": "false"
}
],
"explorer/context": [
{
"command": "dagorShaderLanguageServer.setShaderConfig",
"when": "!isWeb && resourceFilename =~ /shaders_.*?\\.blk$/"
}
]
}
},
"main": "./out/client-desktop",
"browser": "./out/client-web",
"scripts": {
"build-production": "webpack --mode production",
"build": "webpack",
"watch": "webpack --watch",
"package-universal": "vsce package --ignoreFile vscodeignore/universal.vscodeignore",
"package-windows-x64": "vsce package --target win32-x64 --ignoreFile vscodeignore/windows.vscodeignore",
"package-macos-x64": "vsce package --target darwin-x64 --ignoreFile vscodeignore/macos.vscodeignore",
"package-linux-x64": "vsce package --target linux-x64 --ignoreFile vscodeignore/linux.vscodeignore",
"package-all": "start npm run package-universal & start npm run package-windows-x64 & start npm run package-macos-x64 & start npm run package-linux-x64",
"build-tests": "tsc -p ./tsconfig.test.json",
"watch-tests": "tsc -w -p ./tsconfig.test.json",
"open-in-browser": "vscode-test-web --extensionDevelopmentPath=. ./testFixture",
"eslint": "eslint ./src ./Dagor-Shader-Language-Server/src --ext .ts",
"prettier-lint": "prettier --check .",
"prettier-format": "prettier --write .",
"test": "sh ./scripts/e2e.sh",
"prepare": "husky install"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^20.14.2",
"@types/vscode": "^1.80.0",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"@vscode/test-electron": "^2.4.0",
"@vscode/test-web": "^0.0.54",
"@vscode/vsce": "^2.27.0",
"eslint": "^8.57.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"mocha": "^10.4.0",
"prettier": "^3.3.2",
"prettier-plugin-organize-imports": "^3.2.4",
"ts-loader": "^9.5.1",
"typescript": "^5.4.5",
"webpack": "^5.92.0",
"webpack-cli": "^5.1.4"
},
"lint-staged": {
"*.{ts,json,yml,md}": "prettier --write --ignore-unknown"
}
}