|
5 | 5 | "version": "0.2.0",
|
6 | 6 | "configurations": [
|
7 | 7 | {
|
| 8 | + "name": "Run example project", |
8 | 9 | "type": "node",
|
9 | 10 | "request": "launch",
|
10 |
| - "name": "Launch example", |
11 |
| - "runtimeArgs": ["-r", "ts-node/register/transpile-only"], |
12 |
| - "args": ["${workspaceFolder}/examples/dev.js"], |
13 |
| - "env": { "TS_NODE_PROJECT": "${workspaceFolder}/examples/tsconfig.json" }, |
14 |
| - "protocol": "inspector", |
15 |
| - "sourceMaps": true, |
16 |
| - "smartStep": true, |
17 |
| - "internalConsoleOptions": "neverOpen", |
18 |
| - "console": "integratedTerminal" |
19 |
| - }, |
| 11 | + "cwd": "${workspaceFolder}/examples/${input:exampleProjectName}", |
| 12 | + "args": ["./index.ts"], |
| 13 | + "runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"], |
| 14 | + "skipFiles": ["<node_internals>/**"] |
| 15 | + } |
| 16 | + ], |
| 17 | + "inputs": [ |
20 | 18 | {
|
21 |
| - "type": "node", |
22 |
| - "request": "launch", |
23 |
| - "name": "Debug current test", |
24 |
| - "program": "${workspaceFolder}/node_modules/.bin/jest", |
25 |
| - "args": ["--watch", "--runInBand", "${fileBasenameNoExtension}"], |
26 |
| - "sourceMaps": true, |
27 |
| - "smartStep": true, |
28 |
| - "console": "integratedTerminal", |
29 |
| - "internalConsoleOptions": "neverOpen", |
30 |
| - "disableOptimisticBPs": true, |
31 |
| - "windows": { |
32 |
| - "program": "${workspaceFolder}/node_modules/jest/bin/jest" |
33 |
| - } |
| 19 | + "id": "exampleProjectName", |
| 20 | + "description": "Choose an example to run", |
| 21 | + "type": "pickString", |
| 22 | + // TODO: add new examples here |
| 23 | + "options": [ |
| 24 | + "apollo-cache", |
| 25 | + "apollo-client", |
| 26 | + "apollo-federation", |
| 27 | + "authorization", |
| 28 | + "automatic-validation", |
| 29 | + "custom-validation", |
| 30 | + "enums-and-unions", |
| 31 | + "extensions", |
| 32 | + "generic-types", |
| 33 | + "graphql-scalars", |
| 34 | + "interfaces-inheritance", |
| 35 | + "middlewares-custom-decorators", |
| 36 | + "mikro-orm", |
| 37 | + "mixin-classes", |
| 38 | + "query-complexity", |
| 39 | + "redis-subscriptions", |
| 40 | + "resolvers-inheritance", |
| 41 | + "simple-subscriptions", |
| 42 | + "simple-usage", |
| 43 | + "typegoose", |
| 44 | + "typeorm-basic-usage", |
| 45 | + "typeorm-lazy-relations", |
| 46 | + "using-container", |
| 47 | + "using-scoped-container" |
| 48 | + ] |
34 | 49 | }
|
35 | 50 | ]
|
36 | 51 | }
|
0 commit comments