+32
.vscode/launch.json
+32
.vscode/launch.json
···
1
+
{
2
+
// Use IntelliSense to learn about possible attributes.
3
+
// Hover to view descriptions of existing attributes.
4
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+
"version": "0.2.0",
6
+
"configurations": [
7
+
{
8
+
"type": "lldb",
9
+
"request": "launch",
10
+
"name": "Tauri Development Debug",
11
+
"cargo": {
12
+
"args": [
13
+
"build",
14
+
"--manifest-path=./src-tauri/Cargo.toml",
15
+
"--no-default-features"
16
+
]
17
+
},
18
+
// task for the `beforeDevCommand` if used, must be configured in `.vscode/tasks.json`
19
+
"preLaunchTask": "ui:dev"
20
+
},
21
+
{
22
+
"type": "lldb",
23
+
"request": "launch",
24
+
"name": "Tauri Production Debug",
25
+
"cargo": {
26
+
"args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"]
27
+
},
28
+
// task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json`
29
+
"preLaunchTask": "ui:build"
30
+
}
31
+
]
32
+
}
+25
.vscode/tasks.json
+25
.vscode/tasks.json
···
1
+
{
2
+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3
+
// for the documentation about the tasks.json format
4
+
"version": "2.0.0",
5
+
"tasks": [
6
+
{
7
+
"label": "ui:dev",
8
+
"type": "shell",
9
+
// `dev` keeps running in the background
10
+
// ideally you should also configure a `problemMatcher`
11
+
// see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson
12
+
"isBackground": true,
13
+
// change this to your `beforeDevCommand`:
14
+
"command": "deno",
15
+
"args": ["task", "dev"]
16
+
},
17
+
{
18
+
"label": "ui:build",
19
+
"type": "shell",
20
+
// change this to your `beforeBuildCommand`:
21
+
"command": "deno",
22
+
"args": ["task", "build"]
23
+
}
24
+
]
25
+
}