forked from vercel/next.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch.json
142 lines (142 loc) · 5.51 KB
/
launch.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
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"inputs": [
{
"id": "appDirname",
"type": "promptString",
"description": "Enter an app dirname from examples or test/e2e",
"default": "examples/hello-world"
},
{
"id": "nextCommand",
"type": "pickString",
"description": "Select the next command",
"options": ["dev", "build", "start"],
"default": "dev"
},
{
"id": "nextTestMode",
"type": "pickString",
"description": "Select the next test mode",
"options": ["dev", "start"],
"default": "dev"
}
],
"configurations": [
{
"name": "Launch app",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "node",
"runtimeArgs": [
"packages/next/dist/bin/next",
"${input:nextCommand}",
"${input:appDirname}"
],
"skipFiles": ["<node_internals>/**"],
"sourceMapPathOverrides": {
"webpack:///./*": "${workspaceFolder}/${input:appDirname}/*",
"webpack://_N_E/[.]/(app|pages)/(.*)": "${workspaceFolder}/${input:appDirname}/$1/$2",
"webpack://_N_E/[.]/(.*)": "${workspaceFolder}/${input:appDirname}/.next/server/$1",
"webpack-internal:///(ssr)/./*": "${workspaceFolder}/${input:appDirname}/*",
"webpack://(?:_N_E)?/(?:../)*src/(.*)": "${workspaceFolder}/packages/next/src/$1",
"webpack://next/./dist/src/*": "${workspaceFolder}/packages/next/src/*",
"webpack://next/./dist/compiled/*": "${workspaceFolder}/packages/next/src/compiled/*",
"webpack://next/./src/*": "${workspaceFolder}/packages/next/src/*",
"webpack-internal:///\\(rsc\\)/(?:../)*packages/next/dist/(.*)": "${workspaceFolder}/packages/next/src/$1",
"turbopack://[project]/*": "${workspaceFolder}/*"
},
"env": {
// Enable the following environment variables to use turbopack instead of webpack:
// "TURBOPACK": "1",
// "TURBOPACK_DEV": "1",
// "TURBOPACK_BUILD": "1",
"NEXT_PRIVATE_LOCAL_WEBPACK": "1",
"NEXT_TELEMETRY_DISABLED": "1"
}
},
{
"name": "Launch current directory",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "node",
"runtimeArgs": [
"packages/next/dist/bin/next",
"${input:nextCommand}",
"${fileDirname}"
],
"skipFiles": ["<node_internals>/**"],
"sourceMapPathOverrides": {
"webpack:///./*": "${workspaceFolder}/${fileDirname}/*",
"webpack://_N_E/[.]/(app|pages)/(.*)": "${workspaceFolder}/${fileDirname}/$1/$2",
"webpack://_N_E/[.]/(.*)": "${workspaceFolder}/${fileDirname}/.next/server/$1",
"webpack-internal:///(ssr)/./*": "${workspaceFolder}/${fileDirname}/*",
"webpack://(?:_N_E)?/(?:../)*src/(.*)": "${workspaceFolder}/packages/next/src/$1",
"webpack://next/./dist/src/*": "${workspaceFolder}/packages/next/src/*",
"webpack://next/./dist/compiled/*": "${workspaceFolder}/packages/next/src/compiled/*",
"webpack://next/./src/*": "${workspaceFolder}/packages/next/src/*",
"webpack-internal:///\\(rsc\\)/(?:../)*packages/next/dist/(.*)": "${workspaceFolder}/packages/next/src/$1",
"turbopack://[project]/*": "${workspaceFolder}/*"
},
"env": {
"NEXT_PRIVATE_LOCAL_WEBPACK": "1",
"NEXT_TELEMETRY_DISABLED": "1"
}
},
{
"name": "Run e2e test",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/jest",
"runtimeArgs": ["--runInBand", "--verbose", "${file}"],
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**"],
"sourceMapPathOverrides": {
"webpack:///./*": "${workspaceFolder}/${fileDirname}/*",
"webpack://_N_E/[.]/(app|pages)/(.*)": "${workspaceFolder}/${fileDirname}/$1/$2",
"webpack://_N_E/[.]/(.*)": "${workspaceFolder}/${fileDirname}/.next/server/$1",
"webpack-internal:///(ssr)/./*": "${workspaceFolder}/${fileDirname}/*",
"webpack://(?:_N_E)?/(?:../)*src/(.*)": "${workspaceFolder}/packages/next/src/$1",
"webpack://next/./dist/src/*": "${workspaceFolder}/packages/next/src/*",
"webpack://next/./dist/compiled/*": "${workspaceFolder}/packages/next/src/compiled/*",
"webpack://next/./src/*": "${workspaceFolder}/packages/next/src/*",
"webpack-internal:///\\(rsc\\)/(?:../)*packages/next/dist/(.*)": "${workspaceFolder}/packages/next/src/$1",
"turbopack://[project]/*": "${workspaceFolder}/*"
},
"env": {
"HEADLESS": "true",
"NEXT_E2E_TEST_TIMEOUT": "1000000",
"NEXT_SKIP_ISOLATE": "1",
"NEXT_TEST_MODE": "${input:nextTestMode}"
}
},
{
"name": "Launch app build trace jaeger",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["clean-trace-jaeger"],
"skipFiles": ["<node_internals>/**"],
"env": {
"NEXT_PRIVATE_LOCAL_WEBPACK": "1"
}
},
{
"type": "node",
"request": "attach",
"name": "Attach to existing debugger",
"port": 9229,
"skipFiles": ["<node_internals>/**"],
"env": {
"NEXT_PRIVATE_LOCAL_WEBPACK": "1"
}
}
]
}