Skip to content

Suggestion: Add more documentation with the code example #37

@velara3

Description

@velara3

In this section maybe add another example (one provided below):

settings.json:

    "triggerTaskOnSave.tasks": {
        "run Bun": [
            "src/*.ts"
        ],
    }

.vscode/tasks.json:

{
	"version": "2.0.0",
	"tasks": [
		{
	          "label": "run Bun",
	          "type": "shell",
	          "command": "bun bun.build.js",
                  "group": {
                      "kind": "build",
                      "isDefault": true
                  },
		}
	]
}

Description:
The above code defines a task in the tasks.json file and then refers to that task by name (label) in the settings.json file.
Whenever a ts file is saved in the src directory the task, run Bun is called. The task name is case sensitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions