-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
package.json
173 lines (173 loc) · 4.75 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
{
"name": "nix-ide",
"displayName": "Nix IDE",
"description": "Nix language support - syntax highlighting, formatting, and error reporting.",
"version": "0.3.6",
"publisher": "jnoortheen",
"icon": "images/icon.png",
"license": "MIT",
"engines": {
"vscode": ">=1.91.0"
},
"categories": [
"Programming Languages",
"Formatters",
"Snippets"
],
"keywords": [
"nix"
],
"bugs": {
"url": "https://github.com/nix-community/vscode-nix-ide/issues"
},
"homepage": "https://github.com/nix-community/vscode-nix-ide",
"repository": {
"type": "git",
"url": "https://github.com/nix-community/vscode-nix-ide"
},
"main": "dist/extension.js",
"contributes": {
"languages": [
{
"id": "nix",
"aliases": [
"Nix",
"nix"
],
"extensions": [
".nix"
],
"icon": {
"dark": "images/icon.png",
"light": "images/icon.png"
},
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "nix",
"scopeName": "source.nix",
"path": "./syntaxes/nix.tmLanguage.json"
},
{
"scopeName": "markdown.nix.codeblock",
"path": "./syntaxes/injection.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.nix": "nix"
}
}
],
"snippets": [
{
"language": "nix",
"path": "./snippets.json"
}
],
"configuration": {
"title": "NixIDE",
"properties": {
"nix.formatterPath": {
"type": [
"string",
"array"
],
"default": "nixpkgs-fmt",
"description": "Location of the nix formatter command."
},
"nix.serverPath": {
"type": "string",
"default": "nil",
"description": "Location of the nix language server command."
},
"nix.enableLanguageServer": {
"type": "boolean",
"default": false,
"description": "Use LSP instead of nix-instantiate and nixpkgs-fmt."
},
"nix.serverSettings": {
"type": "object",
"default": {},
"description": "Settings passed to the language server on configuration requests."
},
"nix.hiddenLanguageServerErrors": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Error notifications from the language server for these request types will be suppressed.",
"examples": [
[
"textDocument/definition",
"textDocument/documentSymbol"
]
]
}
}
},
"configurationDefaults": {
"[nix]": {
"editor.insertSpaces": true,
"editor.tabSize": 2
}
},
"commands": [
{
"title": "Restart Language Server",
"category": "Nix IDE",
"command": "nix-ide.restartLanguageServer"
}
]
},
"devDependencies": {
"@commitlint/cli": "*",
"@commitlint/config-conventional": "*",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.1",
"@types/command-exists": "^1.2.0",
"@types/node": "*",
"@types/vscode": "*",
"@typescript-eslint/eslint-plugin": "*",
"@typescript-eslint/parser": "*",
"del-cli": "^5.0.0",
"env-cmd": "^10.1.0",
"esbuild": "^0.23.1",
"eslint": "*",
"eslint-config-prettier": "*",
"globals": "^15.9.0",
"husky": "^9.1.5",
"js-yaml": "^4.0.0",
"ovsx": "^0.9",
"prettier": "^3.3",
"pretty-quick": "*",
"standard-version": "^9.5",
"typescript": "^5.5",
"vsce": "^2.15.0"
},
"scripts": {
"prebuild": "js-yaml syntaxes/nix.YAML-tmLanguage > syntaxes/nix.tmLanguage.json && js-yaml syntaxes/injection.yml > syntaxes/injection.json",
"build-base": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node",
"build": "yarn run build-base --sourcemap --minify",
"watch": "yarn run build-base --sourcemap --watch",
"postinstall": "husky",
"clean": "del dist",
"prerelease": "yarn install && yarn lint && yarn clean && yarn build",
"release": "standard-version",
"postrelease": "git push --follow-tags",
"prepackage": "del *.vsix",
"package": "vsce package",
"publish:ovsx": "yarn run env-cmd --expand-envs ovsx publish *.vsix --pat '$OVS_PAT'",
"publish:vsce": "vsce publish",
"publish": "yarn package && yarn publish:vsce && yarn publish:ovsx",
"lint": "eslint src"
},
"dependencies": {
"command-exists": "^1.2.9",
"vscode-languageclient": "^9.0.0",
"vscode-variables": "^0.1.3"
}
}