mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
* Initial webview vite migration * Make vite work * Fix test running * Enable HMR, disable vite chunking * Silence type checking errors * Vite doesn't use browserslist * get rid of breaking css flag * add doc to getHMRHtmlContent * Make it work * Changeset * Add IS_DEV to env definitions * Update tasks to include HMR * Update CSP image rules * prettier * reintroduce IS_DEV in env * add new deps to pkg lock --------- Co-authored-by: Dennis Bartlett <bartlett.dc.1@gmail.com>
125 lines
2.3 KiB
JSON
125 lines
2.3 KiB
JSON
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "watch",
|
|
"dependsOn": ["npm: build:webview", "npm: dev:webview", "npm: watch:tsc", "npm: watch:esbuild"],
|
|
"presentation": {
|
|
"reveal": "never"
|
|
},
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
}
|
|
},
|
|
{
|
|
"type": "npm",
|
|
"script": "build:webview",
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"isBackground": true,
|
|
"label": "npm: build:webview",
|
|
"presentation": {
|
|
"group": "watch",
|
|
"reveal": "never",
|
|
"close": true
|
|
},
|
|
"options": {
|
|
"env": {
|
|
"IS_DEV": "true"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "npm",
|
|
"script": "dev:webview",
|
|
"group": "build",
|
|
"problemMatcher": [
|
|
{
|
|
"pattern": [
|
|
{
|
|
"regexp": ".",
|
|
"file": 1,
|
|
"location": 2,
|
|
"message": 3
|
|
}
|
|
],
|
|
"background": {
|
|
"activeOnStart": true,
|
|
"beginsPattern": ".",
|
|
"endsPattern": "."
|
|
}
|
|
}
|
|
],
|
|
"isBackground": true,
|
|
"label": "npm: dev:webview",
|
|
"presentation": {
|
|
"group": "watch",
|
|
"reveal": "never",
|
|
"close": true
|
|
},
|
|
"options": {
|
|
"env": {
|
|
"IS_DEV": "true"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "npm",
|
|
"script": "watch:esbuild",
|
|
"group": "build",
|
|
"problemMatcher": "$esbuild-watch",
|
|
"isBackground": true,
|
|
"label": "npm: watch:esbuild",
|
|
"presentation": {
|
|
"group": "watch",
|
|
"reveal": "never",
|
|
"close": true
|
|
}
|
|
},
|
|
{
|
|
"type": "npm",
|
|
"script": "watch:tsc",
|
|
"group": "build",
|
|
"problemMatcher": "$tsc-watch",
|
|
"isBackground": true,
|
|
"label": "npm: watch:tsc",
|
|
"presentation": {
|
|
"group": "watch",
|
|
"reveal": "never",
|
|
"close": true
|
|
}
|
|
},
|
|
{
|
|
"type": "npm",
|
|
"script": "watch-tests",
|
|
"problemMatcher": "$tsc-watch",
|
|
"isBackground": true,
|
|
"presentation": {
|
|
"reveal": "never",
|
|
"group": "watchers"
|
|
},
|
|
"group": "build"
|
|
},
|
|
{
|
|
"label": "tasks: watch-tests",
|
|
"dependsOn": ["npm: watch", "npm: watch-tests"],
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "stop",
|
|
"command": "echo ${input:terminate}",
|
|
"type": "shell"
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "terminate",
|
|
"type": "command",
|
|
"command": "workbench.action.tasks.terminate",
|
|
"args": "terminateAll"
|
|
}
|
|
]
|
|
}
|