insomnia/.vscode/launch.json
James Gatz eb21506d40
️vite/esbuild (#4329)
* ️ vite

* replace webpack with esbuild in build script

* move build sr to esbuild

* esbuild send-request shim

* remove main externals

* fix lint

* remove webpack from insomnia-testing

* removes more webpack stuff

TODO after this PR: make debugging work again

* pin swagger-ui-react to version before esm change

* restore prepare script to build in bootstrap

* use default tsconfig for eslint and apply fixes

* bundle insomnia-components as cjs/esm

* makes ca_certs.ts pass linting

* builds types for insomnia-components

* improve build script for production

* skip typechecking insomnia-components

* separate package from build

* add electron to externals

* add preload bundling and fix build output

* exclude grpc/proto-loader from the bundle

* move node packages to commonjs

* don't bundle grpc since it's a node module

* fix content security error

* use vite lib mode for insomnia-components

* tidy up vite config and tsconfig options

* update package-locks

* use process.env. for static build time variables

* fix vscode debugging

Co-authored-by: jackkav <jackkav@gmail.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-04-18 17:27:39 +02:00

108 lines
2.6 KiB
JSON

{
"version": "0.2.0",
"configurations": [
{
"name": "Electron: main",
"type": "node",
"request": "launch",
"protocol": "inspector",
"sourceMaps": true,
"presentation": {
"hidden": true,
"group": "Insomnia",
"order": 1
},
"cwd": "${workspaceFolder}/packages/insomnia-app",
"runtimeExecutable": "${workspaceFolder}/packages/insomnia-app/node_modules/.bin/electron",
"runtimeArgs": ["--remote-debugging-port=9222", "."],
"outputCapture": "std",
"windows": {
"type": "node",
"request": "launch",
"name": "Electron: main",
"runtimeExecutable": "${workspaceFolder}/packages/insomnia-app/node_modules/.bin/electron.cmd"
},
"env": {
"NODE_ENV": "development",
"ELECTRON_IS_DEV": "1"
}
},
{
"name": "Electron: renderer",
"type": "pwa-chrome",
"request": "attach",
"presentation": {
"hidden": true,
"group": "Insomnia",
"order": 2
},
"port": 9222,
"webRoot": "${workspaceFolder}/packages/insomnia-app/app",
"timeout": 60000
},
{
"type": "node",
"request": "launch",
"protocol": "inspector",
"smartStep": true,
"name": "Inso",
"cwd": "${workspaceFolder}/packages/insomnia-inso",
"program": "${workspaceFolder}/packages/insomnia-inso/bin/debug_inso",
"sourceMaps": true,
"autoAttachChildProcesses": true,
"trace": true,
"preLaunchTask": "Inso: Compile (Watch)",
"args": ["${input:insoCommand}", "${input:insoCommandArgs}"],
"console": "integratedTerminal"
}
],
"inputs": [
{
"id": "insoCommandArgs",
"description": "Add an additional argument to inso",
"type": "promptString"
},
{
"id": "insoCommand",
"description": "Pick an inso command to run",
"type": "pickString",
"options": [
{
"value": "generate config"
},
{
"value": "run test"
},
{
"value": "lint spec"
},
{
"value": "export spec"
},
{
"value": "script"
},
{
"value": "help"
},
]
}
],
"compounds": [
{
"name": "Insomnia",
"presentation": {
"hidden": false,
"group": "Insomnia",
"order": 0
},
"stopAll": true,
"preLaunchTask": "Insomnia: Compile (Watch)",
"configurations": [
"Electron: main",
"Electron: renderer"
]
}
]
}