Last active
October 4, 2016 15:20
-
-
Save Ciantic/d8ebf7a5b9094046ca3eb13ffeeb5403 to your computer and use it in GitHub Desktop.
Visual Studio Code problem matcher for TSLint and Karma webpack tests on Typescript files with sourcemaps.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.1.0", | |
"command": "npm", | |
"isShellCommand": true, | |
"args": ["run"], | |
"tasks": [ | |
{ | |
"taskName": "start", | |
"args": [], | |
"isBuildCommand": true, | |
"showOutput": "always", | |
"isWatching": true, | |
"problemMatcher": [ | |
{ | |
"fileLocation": [ | |
"relative", | |
"${workspaceRoot}/" | |
], | |
"pattern": [ | |
{ | |
"regexp": "^ERROR in (.+)$", | |
"file": 1 | |
}, | |
{ | |
"regexp": "^((\\(|\\[)(\\d+),\\s?(\\d+)(\\)|\\])): (error|warning)?(\\sTS.+:)?(.+)$", | |
"line": 3, | |
"column": 4, | |
"severity": 6, | |
"message": 8, | |
"loop": true | |
} | |
], | |
"watching": { | |
"beginsPattern": "Time: \\d+ms", | |
"endsPattern": "webpack: bundle is now VALID." | |
} | |
} | |
] | |
}, | |
{ | |
"taskName": "test-debug", | |
"args": [], | |
"isTestCommand": true, | |
"showOutput": "always", | |
"isWatching": true, | |
"problemMatcher": [ | |
{ | |
"fileLocation": [ | |
"relative", | |
"${workspaceRoot}/" | |
], | |
"pattern": [ | |
{ | |
"regexp": "^ERROR in (.+)$", | |
"file": 1 | |
}, | |
{ | |
"regexp": "^((\\(|\\[)(\\d+),\\s?(\\d+)(\\)|\\])): (error|warning)?(\\sTS.+:)?(.+)$", | |
"line": 3, | |
"column": 4, | |
"severity": 6, | |
"message": 8, | |
"loop": true | |
} | |
], | |
"watching": { | |
"beginsPattern": "Time: \\d+ms", | |
"endsPattern": "webpack: bundle is now VALID." | |
} | |
}, | |
{ | |
"fileLocation": ["relative", "${workspaceRoot}"], | |
"pattern": [ | |
{ | |
"regexp": "(Expected.+\\.)$", | |
"message": 1 | |
}, | |
{ | |
"regexp": "\\s+.+\\s<-\\s+webpack:///(.*\\.tsx?):(\\d+):(\\d+)$", | |
"file": 1, | |
"line": 2, | |
"column": 3 | |
} | |
], | |
"watching": { | |
"beginsPattern": "Time: \\d+ms", | |
"endsPattern": "webpack: bundle is now VALID." | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wow thanks!