Make some basic timer functionality
This commit is contained in:
11
.vscode/launch.json
vendored
11
.vscode/launch.json
vendored
@@ -23,10 +23,15 @@
|
||||
"request": "launch",
|
||||
"name": "Tauri Production Debug",
|
||||
"cargo": {
|
||||
"args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"]
|
||||
"args": [
|
||||
"build",
|
||||
"--release",
|
||||
"--manifest-path=./src-tauri/Cargo.toml"
|
||||
]
|
||||
},
|
||||
// task for the `beforeBuildCommand` if used, must be configured in `.vscode/tasks.json`
|
||||
"preLaunchTask": "ui:build"
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
45
.vscode/tasks.json
vendored
45
.vscode/tasks.json
vendored
@@ -3,30 +3,43 @@
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "tauri:dev",
|
||||
"type": "shell",
|
||||
"command": "cargo",
|
||||
"problemMatcher": [],
|
||||
"args": [
|
||||
"tauri",
|
||||
"dev"
|
||||
],
|
||||
"icon": {
|
||||
"id": "run"
|
||||
},
|
||||
},
|
||||
{
|
||||
"label": "ui:dev",
|
||||
"type": "shell",
|
||||
// `dev` keeps running in the background
|
||||
// ideally you should also configure a `problemMatcher`
|
||||
// see https://code.visualstudio.com/docs/editor/tasks#_can-a-background-task-be-used-as-a-prelaunchtask-in-launchjson
|
||||
"isBackground": true,
|
||||
// change this to your `beforeDevCommand`:
|
||||
"command": "npm",
|
||||
"args": ["run", "dev"]
|
||||
"problemMatcher": [],
|
||||
"args": [
|
||||
"run",
|
||||
"dev",
|
||||
"--",
|
||||
"--clearScreen",
|
||||
"false"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "ui:build",
|
||||
"group": "build",
|
||||
"type": "shell",
|
||||
// change this to your `beforeBuildCommand`:
|
||||
"command": "npm",
|
||||
"args": ["run", "build"],
|
||||
},
|
||||
{
|
||||
"label": "full:dev",
|
||||
"type": "shell",
|
||||
"isBackground": true,
|
||||
"command": "cargo",
|
||||
"args": ["tauri", "dev"]
|
||||
"problemMatcher": [],
|
||||
"args": [
|
||||
"run",
|
||||
"build"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user