mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
110 lines
2.9 KiB
JSON
110 lines
2.9 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": "webpack --config webpack/webpack.config.electron.ts",
|
|
"type": "shell",
|
|
"promptOnClose": false,
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/packages/insomnia-app",
|
|
"env": {
|
|
"NODE_ENV": "development",
|
|
"TS_NODE_PROJECT": "tsconfig.webpack.json"
|
|
}
|
|
},
|
|
"command": "${workspaceRoot}/packages/insomnia-app/node_modules/.bin/webpack --config webpack/webpack.config.electron.ts"
|
|
},
|
|
{
|
|
"label": "Insomnia: Compile Renderer (Watch)",
|
|
"detail": "webpack-dev-server --config webpack/webpack.config.development.ts",
|
|
"type": "shell",
|
|
"promptOnClose": false,
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/packages/insomnia-app",
|
|
"env": {
|
|
"TS_NODE_PROJECT": "tsconfig.webpack.json"
|
|
}
|
|
},
|
|
"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": "Compiling\\.\\.\\.",
|
|
"endsPattern": {
|
|
"regexp": "Compiled"
|
|
}
|
|
}
|
|
},
|
|
"command": "${workspaceRoot}/packages/insomnia-app/node_modules/.bin/webpack-dev-server --config webpack/webpack.config.development.ts"
|
|
},
|
|
{
|
|
"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"
|
|
}
|
|
]
|
|
}
|