-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
233 lines (233 loc) · 7.82 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
{
"name": "dbt-language-server",
"displayName": "Wizard for dbt Core (TM)",
"description": "This extension will help you work with dbt",
"icon": "images/Icon.png",
"version": "0.33.2",
"publisher": "Fivetran",
"license": "MIT",
"preview": true,
"keywords": [
"dbt",
"bigquery",
"snowflake",
"snowflake-sql",
"sql"
],
"homepage": "https://github.com/fivetran/dbt-language-server/blob/main/README.md",
"repository": {
"type": "git",
"url": "https://github.com/fivetran/dbt-language-server.git"
},
"bugs": {
"url": "https://github.com/fivetran/dbt-language-server/issues",
"email": "pavel@fivetran.com"
},
"extensionDependencies": [
"ms-python.python"
],
"engines": {
"vscode": "^1.61.0"
},
"activationEvents": [
"onStartupFinished"
],
"main": "./client/out/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "Wizard for dbt Core (TM)",
"properties": {
"WizardForDbtCore(TM).enableSnowflakeSyntaxCheck": {
"type": "boolean",
"default": true,
"description": "Enabling this setting activates Snowflake syntax checks. As a result, any errors within Snowflake project models will be detected and displayed. Please note that this is an experimental feature and may yield false positive errors.",
"scope": "resource"
},
"WizardForDbtCore(TM).profilesDir": {
"type": "string",
"description": "Which directory to look in for the profiles.yml file. Absolute path or relative to the directory containing dbt_project.yml. This parameter will be used in each dbt command.",
"scope": "resource"
},
"WizardForDbtCore(TM).trace.server": {
"scope": "window",
"type": "string",
"order": 2,
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
}
}
},
"commands": [
{
"command": "WizardForDbtCore(TM).showQueryPreview",
"title": "Show query preview",
"category": "WizardForDbtCore(TM)",
"icon": "$(book)"
},
{
"command": "WizardForDbtCore(TM).notUseConfigForRefsPreview",
"title": "✓ Use schema from config for refs",
"category": "WizardForDbtCore(TM)"
},
{
"command": "WizardForDbtCore(TM).useConfigForRefsPreview",
"title": " Use schema from config for refs",
"category": "WizardForDbtCore(TM)"
},
{
"command": "WizardForDbtCore(TM).compile",
"title": "dbt compile",
"category": "WizardForDbtCore(TM)"
},
{
"command": "WizardForDbtCore(TM).analyzeEntireProject",
"title": "Analyze current project",
"category": "WizardForDbtCore(TM)",
"icon": "$(sync)"
},
{
"command": "WizardForDbtCore(TM).createDbtProject",
"title": "Create dbt Project",
"category": "WizardForDbtCore(TM)"
},
{
"command": "WizardForDbtCore(TM).installDbtCore",
"title": "Install dbt Core",
"category": "WizardForDbtCore(TM)"
},
{
"command": "WizardForDbtCore(TM).installDbtAdapters",
"title": "Install dbt Adapters",
"category": "WizardForDbtCore(TM)"
},
{
"command": "WizardForDbtCore(TM).installDbtPackages",
"title": "Install dbt Packages",
"category": "WizardForDbtCore(TM)"
},
{
"command": "WizardForDbtCore(TM).restart",
"title": "Restart Wizard for dbt Core (TM)",
"category": "WizardForDbtCore(TM)"
}
],
"menus": {
"editor/title": [
{
"command": "WizardForDbtCore(TM).showQueryPreview",
"group": "navigation",
"when": "editorLangId =~ /^sql$|^jinja-sql$|^snowflake-sql$|^sql-bigquery$/ && !editorReadonly"
},
{
"command": "WizardForDbtCore(TM).analyzeEntireProject",
"group": "navigation"
}
],
"dbt": [
{
"command": "WizardForDbtCore(TM).compile",
"group": "1_common"
},
{
"command": "WizardForDbtCore(TM).showQueryPreview",
"group": "1_common"
},
{
"command": "WizardForDbtCore(TM).analyzeEntireProject",
"group": "1_common"
}
],
"editor/context": [
{
"submenu": "dbt",
"group": "navigation",
"when": "editorLangId =~ /^sql$|^jinja-sql$|^snowflake-sql$|^sql-bigquery$/ && !editorReadonly"
},
{
"command": "WizardForDbtCore(TM).useConfigForRefsPreview",
"group": "1_common",
"when": "resource == query-preview:Preview?dbt-language-server && !WizardForDbtCore:useConfigForRefs"
},
{
"command": "WizardForDbtCore(TM).notUseConfigForRefsPreview",
"group": "1_common",
"when": "resource == query-preview:Preview?dbt-language-server && WizardForDbtCore:useConfigForRefs"
}
]
},
"submenus": [
{
"id": "dbt",
"label": "Wizard for dbt Core (TM)"
}
]
},
"aiKey": "0a32611a-7944-4c4d-93c9-5c260a61395b",
"size-limit": [
{
"path": "client/out/**/*"
},
{
"path": "server/out/**/*.js"
}
],
"scripts": {
"vscode:prepublish": "npm run webpack && ./prepare_node_modules.sh",
"build": "tsc -b",
"build:size": "npm run build && npm run vscode:prepublish",
"watch": "tsc -b -w",
"postinstall": "cd client && npm install --install-links=false && cd ../server && npm install --install-links=false && cd ../markdown_parser && npm install && cd ../e2e && npm install --install-links=false && cd ..",
"lint": "eslint --cache . --ext .ts",
"lint-config": "eslint --print-config .eslintrc.json",
"lint-fix": "eslint . --ext .ts --fix",
"ts-unused-exports": "ts-unused-exports tsconfig.json && ts-unused-exports server/tsconfig.json && ts-unused-exports client/tsconfig.json && ts-unused-exports e2e/tsconfig.json && ts-unused-exports markdown_parser/tsconfig.json",
"test": "mocha",
"clean": "rm -rf common/out client/out server/out e2e/out",
"clean-node-modules": "rm -rf node_modules && rm -rf client/node_modules && rm -rf server/node_modules",
"clean-install": "npm run clean && npm run clean-node-modules && npm ci",
"webpack": "npm run clean && tsc --project common/tsconfig.json && webpack --mode production --config ./client/webpack.config.js && webpack --mode production --config ./server/webpack.config.js",
"webpack:dev": "npm run clean && webpack --mode none --config ./client/webpack.config.js && webpack --mode none --config ./server/webpack.config.js",
"prepare": "husky install"
},
"devDependencies": {
"@size-limit/file": "^11.0.1",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.24",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^6.20.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-sonarjs": "^0.23.0",
"eslint-plugin-unicorn": "^51.0.1",
"hamjest": "^4.1.0",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"merge-options": "^3.0.4",
"mocha": "^10.3.0",
"prettier": "^3.1.1",
"prettier-plugin-organize-imports": "^3.2.4",
"size-limit": "^11.0.0",
"ts-loader": "^9.5.1",
"ts-mockito": "^2.6.1",
"ts-node": "^10.9.2",
"ts-unused-exports": "^10.0.1",
"typescript": "^5.3.3",
"webpack": "^5.90.0",
"webpack-cli": "^5.1.4"
},
"lint-staged": {
"*.ts": [
"eslint --cache",
"prettier --write"
]
}
}