Skip to content

Build your personal knowledge base with Trilium Notes

vscode: Add task to watch build errors

Elian Doran893a563afbd7
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000000..d5fb9133ef
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,17 @@
+{
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "type": "npm",
+ "script": "errors",
+ "problemMatcher": "$tsc-watch",
+ "isBackground": true,
+ "presentation": {
+ "revealProblems": "never"
+ },
+ "runOptions": {
+ "runOn": "folderOpen"
+ }
+ }
+ ]
+ }
\ No newline at end of file
diff --git a/package.json b/package.json
index 457b5f06b7..05299ace39 100644
--- a/package.json
+++ b/package.json
@@ -31,7 +31,8 @@
"test-jasmine": "TRILIUM_DATA_DIR=./data-test ts-node ./node_modules/.bin/jasmine",
"test-es6": "ts-node -r esm spec-es6/attribute_parser.spec.ts",
"test": "npm run test-jasmine && npm run test-es6",
- "postinstall": "rimraf ./node_modules/canvas"
+ "postinstall": "rimraf ./node_modules/canvas",
+ "errors": "tsc --watch --noEmit"
},
"dependencies": {
"@braintree/sanitize-url": "6.0.4",