mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
chore: add default VSCode build task (#4822)
Changes the default VSCode build command to run `cargo fmt` and `cargo test --no-run`. This can be easily run with `Cmd+B` (or `Ctrl+B` for Windows users).
This commit is contained in:
parent
4e818a434c
commit
28bfc12bea
1 changed files with 50 additions and 10 deletions
60
.vscode/tasks.json
vendored
60
.vscode/tasks.json
vendored
|
|
@ -3,6 +3,49 @@
|
|||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
// format code, then build tests (but do not run them).
|
||||
{
|
||||
"label": "rust: cargo test --no-run",
|
||||
"type": "cargo",
|
||||
"command": "test",
|
||||
"args": [
|
||||
"--no-run"
|
||||
],
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "silent",
|
||||
"focus": false,
|
||||
"panel": "shared",
|
||||
"showReuseMessage": false,
|
||||
"clear": true
|
||||
},
|
||||
"dependsOn": [
|
||||
"rust: cargo fmt"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "cargo",
|
||||
"command": "fmt",
|
||||
"problemMatcher": [
|
||||
"$rustc"
|
||||
],
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "silent",
|
||||
"focus": false,
|
||||
"panel": "shared",
|
||||
"showReuseMessage": false,
|
||||
"clear": false
|
||||
},
|
||||
"label": "rust: cargo fmt"
|
||||
},
|
||||
{
|
||||
"type": "npm",
|
||||
"script": "compile",
|
||||
|
|
@ -18,19 +61,16 @@
|
|||
{
|
||||
"type": "shell",
|
||||
"command": "cd ./editors/vscode && npm run watch",
|
||||
"windows": {
|
||||
"command": "cd ./editors/vscode; npm run watch",
|
||||
},
|
||||
"label": "watch",
|
||||
"isBackground": true,
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
"windows": {
|
||||
"command": "cd ./editors/vscode; npm run watch"
|
||||
},
|
||||
"label": "watch",
|
||||
"isBackground": true,
|
||||
"group": "build",
|
||||
"presentation": {
|
||||
"panel": "dedicated",
|
||||
"reveal": "never"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
],
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue