insomnia/.vscode/tasks.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

109 lines
2.6 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Insomnia: Compile Main",
"detail": "esbuild.main.ts",
"type": "shell",
"promptOnClose": false,
"options": {
"cwd": "${workspaceFolder}/packages/insomnia-app",
"env": {
"NODE_ENV": "development",
}
},
"command": "${workspaceRoot}/packages/insomnia-app/node_modules/.bin/esr esbuild.main.ts"
},
{
"label": "Insomnia: Compile Renderer (Watch)",
"detail": "vite dev",
"type": "shell",
"promptOnClose": false,
"options": {
"cwd": "${workspaceFolder}/packages/insomnia-app",
"env": {
"NODE_ENV": "development",
}
},
"isBackground": true,
"problemMatcher": {
"owner": "vite",
"severity": "error",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "ERROR in (.*)",
"file": 1
},
{
"regexp": "\\((\\d+),(\\d+)\\):(.*)",
"line": 1,
"column": 2,
"message": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "vite",
"endsPattern": {
"regexp": "ready in"
}
}
},
"command": "${workspaceRoot}/packages/insomnia-app/node_modules/.bin/vite dev"
},
{
"label": "Insomnia: Compile (Watch)",
"detail": "Compile Renderer (Watch) | Compile Main",
"dependsOn": [
"Insomnia: Compile Renderer (Watch)",
"Insomnia: Compile Main"
]
},
{
"label": "Inso: Compile (Watch)",
"detail": "npm start",
"type": "shell",
"promptOnClose": false,
"isBackground": true,
"problemMatcher": {
"owner": "webpack",
"severity": "error",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "ERROR in (.*)",
"file": 1
},
{
"regexp": "\\((\\d+),(\\d+)\\):(.*)",
"line": 1,
"column": 2,
"message": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "watching"
},
"endsPattern": {
"regexp": "\\d+ modules"
}
}
},
"command": "npm run inso-start"
}
],
"inputs": [
{
"id": "inso_args",
"type": "promptString",
"description": "Arguments to pass to inso",
"default": "-v"
}
]
}