31 lines
932 B
JSON
31 lines
932 B
JSON
|
|
{
|
||
|
|
"version": "2.0.0",
|
||
|
|
"tasks": [
|
||
|
|
{
|
||
|
|
"label": "build",
|
||
|
|
"type": "shell",
|
||
|
|
"command": "node build.mjs",
|
||
|
|
"problemMatcher": [],
|
||
|
|
"group": { "kind": "build", "isDefault": true },
|
||
|
|
"presentation": { "reveal": "silent", "panel": "shared" }
|
||
|
|
},
|
||
|
|
{
|
||
|
|
// Static dev server for source-level debugging. Reuses an existing
|
||
|
|
// server on :8000 if one is already up, otherwise starts one.
|
||
|
|
"label": "serve",
|
||
|
|
"type": "shell",
|
||
|
|
"command": "curl -s localhost:8000 >/dev/null 2>&1 && echo 'Serving HTTP (already up)' || python3 -m http.server 8000",
|
||
|
|
"isBackground": true,
|
||
|
|
"problemMatcher": {
|
||
|
|
"pattern": { "regexp": "^$" },
|
||
|
|
"background": {
|
||
|
|
"activeOnStart": true,
|
||
|
|
"beginsPattern": "Serving HTTP",
|
||
|
|
"endsPattern": "Serving HTTP"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"presentation": { "reveal": "silent", "panel": "dedicated" }
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|