Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/segevfiner/tsup-problem-matcher

tsup Problem matcher
https://github.com/segevfiner/tsup-problem-matcher

javascript tsup typescript vscode vscode-extension vscode-problem-matcher vscode-tasks

Last synced: 1 day ago
JSON representation

tsup Problem matcher

Awesome Lists containing this project

README

        

# tsup Problem Matchers for VS Code

Provides [problem matchers](https://code.visualstudio.com/docs/editor/tasks#_processing-task-output-with-problem-matchers) for use with [tsup](https://tsup.egoist.sh/) projects.

## Features

Provides the following problem matchers:
- **\$tsup** — adds errors and warnings reported by [tsup](https://tsup.egoist.sh/)
- **\$tsup-watch** — adds errors and warnings reported by [tsup](https://tsup.egoist.sh/) while in watch mode
- **\$tsup-tsc** — adds TypeScript errors and warnings reported by [tsup](https://tsup.egoist.sh/) when `--dts` is enabled.
- **\$tsup-tsc-watch** — adds TypeScript errors and warnings reported by [tsup](https://tsup.egoist.sh/) when `--dts` is enabled while in watch mode.

## Usage

The following example shows how to add problem matchers to your project:

```json
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"label": "npm: watch",
"detail": "tsup --watch",
"script": "watch",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$tsup-watch",
"$tsup-tsc-watch"
],
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "watchers"
},
},
{
"type": "npm",
"label": "npm: build",
"detail": "tsup",
"script": "build",
"group": "build",
"problemMatcher": [
"$tsup",
"$tsup-tsc"
]
}
]
}
```