Skip to content

Commit d795e5f

Browse files
authored
Setup vscode (#1095)
1 parent d5e615f commit d795e5f

File tree

5 files changed

+393
-1
lines changed

5 files changed

+393
-1
lines changed

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.19.1

.vscode/tasks.json

+340
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,340 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
// {
5+
// "label": "install-pnpm",
6+
// "type": "shell",
7+
// "command": "npm install -g pnpm@8",
8+
// "group": "build",
9+
// "detail": "install pnpm",
10+
// "presentation": {
11+
// "reveal": "silent",
12+
// "panel": "dedicated",
13+
// "clear": true,
14+
// },
15+
// "hide": true,
16+
// "options": {
17+
// "shell": {
18+
// "executable": "${workspaceFolder}/scripts/nvms.sh"
19+
// },
20+
// "statusbar": {
21+
// "label": "i-pnpm",
22+
// "hide": true,
23+
// "running": {
24+
// "backgroundColor": "statusBarItem.errorBackground"
25+
// }
26+
// }
27+
// }
28+
// },
29+
{
30+
"label": "install",
31+
"type": "npm",
32+
"script": "install",
33+
"group": "build",
34+
"detail": "install all dependencies (and rebuild libs)",
35+
"presentation": {
36+
"reveal": "silent",
37+
"panel": "dedicated",
38+
"clear": true,
39+
},
40+
"options": {
41+
"shell": {
42+
"executable": "${workspaceFolder}/scripts/nvms.sh"
43+
},
44+
"statusbar": {
45+
"label": "i",
46+
"running": {
47+
"backgroundColor": "statusBarItem.errorBackground"
48+
}
49+
}
50+
}
51+
},
52+
{
53+
"label": "install-noscripts",
54+
"type": "npm",
55+
"script": "install-noscripts",
56+
"group": "build",
57+
"detail": "install all dependencies, ignore scripts",
58+
"presentation": {
59+
"reveal": "silent",
60+
"panel": "dedicated",
61+
"clear": true,
62+
},
63+
"options": {
64+
"shell": {
65+
"executable": "${workspaceFolder}/scripts/nvms.sh"
66+
},
67+
"statusbar": {
68+
"label": "i-ns",
69+
"running": {
70+
"backgroundColor": "statusBarItem.errorBackground"
71+
}
72+
}
73+
}
74+
},
75+
{
76+
"label": "install-frozen",
77+
"type": "npm",
78+
"script": "install-frozen",
79+
"group": "build",
80+
"detail": "install all dependencies, frozen lockfile",
81+
"presentation": {
82+
"reveal": "silent",
83+
"panel": "dedicated",
84+
"clear": true,
85+
},
86+
"options": {
87+
"shell": {
88+
"executable": "${workspaceFolder}/scripts/nvms.sh"
89+
},
90+
"statusbar": {
91+
"label": "i-f",
92+
"hide": true,
93+
"running": {
94+
"backgroundColor": "statusBarItem.errorBackground"
95+
}
96+
}
97+
}
98+
},
99+
{
100+
"label": "install-frozen-noscripts",
101+
"type": "npm",
102+
"script": "install-frozen-noscripts",
103+
"group": "build",
104+
"detail": "install all dependencies, frozen lockfile, ignore scripts",
105+
"presentation": {
106+
"reveal": "silent",
107+
"panel": "dedicated",
108+
"clear": true,
109+
},
110+
"options": {
111+
"shell": {
112+
"executable": "${workspaceFolder}/scripts/nvms.sh"
113+
},
114+
"statusbar": {
115+
"label": "i-f-ns",
116+
"hide": true,
117+
"running": {
118+
"backgroundColor": "statusBarItem.errorBackground"
119+
}
120+
}
121+
}
122+
},
123+
{
124+
"label": "build-libs",
125+
"type": "npm",
126+
"script": "build-libs",
127+
"group": "build",
128+
"detail": "build all libraries",
129+
"presentation": {
130+
"reveal": "silent",
131+
"panel": "dedicated",
132+
"clear": true,
133+
},
134+
"options": {
135+
"shell": {
136+
"executable": "${workspaceFolder}/scripts/nvms.sh"
137+
},
138+
"statusbar": {
139+
"label": "build",
140+
"running": {
141+
"backgroundColor": "statusBarItem.errorBackground"
142+
}
143+
}
144+
}
145+
},
146+
{
147+
"label": "build-examples",
148+
"type": "npm",
149+
"script": "build-examples",
150+
"group": "build",
151+
"detail": "build all examples",
152+
"presentation": {
153+
"reveal": "silent",
154+
"panel": "dedicated",
155+
"clear": true,
156+
},
157+
"options": {
158+
"shell": {
159+
"executable": "${workspaceFolder}/scripts/nvms.sh"
160+
},
161+
"statusbar": {
162+
"hide": true,
163+
"running": {
164+
"backgroundColor": "statusBarItem.errorBackground"
165+
}
166+
}
167+
}
168+
},
169+
{
170+
"label": "lint",
171+
"type": "npm",
172+
"script": "lint",
173+
"group": "build",
174+
"presentation": {
175+
"reveal": "silent",
176+
"panel": "dedicated",
177+
"clear": true,
178+
},
179+
"options": {
180+
"shell": {
181+
"executable": "${workspaceFolder}/scripts/nvms.sh"
182+
},
183+
"statusbar": {
184+
"running": {
185+
"backgroundColor": "statusBarItem.errorBackground"
186+
}
187+
}
188+
}
189+
},
190+
{
191+
"label": "lint-fix",
192+
"type": "npm",
193+
"script": "lint-fix",
194+
"group": "build",
195+
"hide": true,
196+
"presentation": {
197+
"reveal": "silent",
198+
"panel": "dedicated",
199+
"clear": true,
200+
},
201+
"options": {
202+
"shell": {
203+
"executable": "${workspaceFolder}/scripts/nvms.sh"
204+
},
205+
"statusbar": {
206+
"running": {
207+
"backgroundColor": "statusBarItem.errorBackground"
208+
}
209+
}
210+
}
211+
},
212+
{
213+
"label": "test",
214+
"type": "npm",
215+
"script": "test",
216+
"group": "test",
217+
"presentation": {
218+
"reveal": "silent",
219+
"panel": "dedicated",
220+
"clear": true,
221+
},
222+
"options": {
223+
"shell": {
224+
"executable": "${workspaceFolder}/scripts/nvms.sh"
225+
},
226+
"statusbar": {
227+
"running": {
228+
"backgroundColor": "statusBarItem.errorBackground"
229+
}
230+
}
231+
}
232+
},
233+
{
234+
"label": "test-dev",
235+
"type": "npm",
236+
"script": "test-dev",
237+
"group": "test",
238+
"isBackground": true,
239+
"presentation": {
240+
"reveal": "silent",
241+
"panel": "dedicated",
242+
"clear": true,
243+
},
244+
"options": {
245+
"shell": {
246+
"executable": "${workspaceFolder}/scripts/nvms.sh"
247+
},
248+
"statusbar": {
249+
"running": {
250+
"backgroundColor": "statusBarItem.warningBackground"
251+
}
252+
}
253+
}
254+
},
255+
{
256+
"label": "examples",
257+
"type": "npm",
258+
"script": "start",
259+
"group": "none",
260+
"isBackground": true,
261+
"presentation": {
262+
"panel": "dedicated",
263+
"clear": true,
264+
},
265+
"options": {
266+
"shell": {
267+
"executable": "${workspaceFolder}/scripts/nvms.sh"
268+
},
269+
"statusbar": {
270+
"running": {
271+
"backgroundColor": "statusBarItem.warningBackground"
272+
}
273+
}
274+
}
275+
},
276+
{
277+
"label": "sandbox-js",
278+
"type": "npm",
279+
"script": "sandbox-js-start",
280+
"group": "none",
281+
"isBackground": true,
282+
"presentation": {
283+
"panel": "dedicated",
284+
"clear": true,
285+
},
286+
"options": {
287+
"shell": {
288+
"executable": "${workspaceFolder}/scripts/nvms.sh"
289+
},
290+
"statusbar": {
291+
"running": {
292+
"backgroundColor": "statusBarItem.warningBackground"
293+
}
294+
}
295+
}
296+
},
297+
{
298+
"label": "sandbox-ts",
299+
"type": "npm",
300+
"script": "sandbox-ts-start",
301+
"group": "none",
302+
"isBackground": true,
303+
"presentation": {
304+
"panel": "dedicated",
305+
"clear": true,
306+
},
307+
"options": {
308+
"shell": {
309+
"executable": "${workspaceFolder}/scripts/nvms.sh"
310+
},
311+
"statusbar": {
312+
"running": {
313+
"backgroundColor": "statusBarItem.warningBackground"
314+
}
315+
}
316+
}
317+
},
318+
{
319+
"label": "sandbox-next",
320+
"type": "npm",
321+
"script": "sandbox-next-start",
322+
"group": "none",
323+
"isBackground": true,
324+
"presentation": {
325+
"panel": "dedicated",
326+
"clear": true,
327+
},
328+
"options": {
329+
"shell": {
330+
"executable": "${workspaceFolder}/scripts/nvms.sh"
331+
},
332+
"statusbar": {
333+
"running": {
334+
"backgroundColor": "statusBarItem.warningBackground"
335+
}
336+
}
337+
}
338+
},
339+
]
340+
}

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
"packages/sandbox_next"
5959
],
6060
"scripts": {
61+
"install-frozen": "pnpm install --frozen-lockfile",
62+
"install-noscripts": "pnpm install --ignore-scripts",
63+
"install-frozen-noscripts": "pnpm install --frozen-lockfile --ignore-scripts",
6164
"build": "pnpm run build-libs && pnpm run build-examples",
6265
"build-examples": "pnpm --filter !@react-awesome-query-builder/examples^... run build",
6366
"build-libs": "pnpm --filter @react-awesome-query-builder/examples^... run build",

packages/tests/scripts/install-chrome.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
if [ "$CSB" = "true" ]; then
3+
if [[ "$CSB" == "true" || "$CODESPACES" == "true" ]]; then
44
echo "CHROME_BIN=$CHROME_BIN"
55
PUPPETEER_VERSION=$(./node_modules/.bin/puppeteer --version)
66
echo "puppeteer version: $PUPPETEER_VERSION"

0 commit comments

Comments
 (0)