Skip to content

Commit

Permalink
docs: add vscode-tasks example
Browse files Browse the repository at this point in the history
Closes: #269
  • Loading branch information
piotr-oles committed May 27, 2020
1 parent e59a8d2 commit b5d5977
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
27 changes: 27 additions & 0 deletions examples/vscode-tasks/.vscode/tasks.json
@@ -0,0 +1,27 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "build",
"group": "build",
"problemMatcher": ["$ts-checker5-webpack", "$ts-checker5-eslint-webpack"]
},
{
"type": "npm",
"script": "lint",
"group": "build",
"problemMatcher": ["$eslint-stylish"]
},
{
"type": "npm",
"script": "watch",
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": true,
"problemMatcher": ["$ts-checker5-webpack-watch", "$ts-checker5-eslint-webpack-watch"]
}
]
}
7 changes: 7 additions & 0 deletions examples/vscode-tasks/README.md
@@ -0,0 +1,7 @@
## VS Code Configuration Example

This example defines `.vscode/tasks.json` file which instructs **VS Code** how to extract errors from the webpack's output
to display them in the **Problems** tab. It uses [TypeScript + Webpack Problem Matchers](https://marketplace.visualstudio.com/items?itemName=eamodio.tsl-problem-matcher)
provided by @eamodio :heart:

> Tip: You can use the npm type tasks even with yarn if you set "npm.packageManager": "yarn" in your VS Code settings

0 comments on commit b5d5977

Please sign in to comment.