tasks.json 1.2 KB
Newer Older
E
Erich Gamma 已提交
1 2
{
	"version": "0.1.0",
3 4 5 6 7 8 9 10 11
	"windows": {
		"command": ".\\node_modules\\.bin\\gulp"
	},
	"osx": {
		"command": "./node_modules/.bin/gulp"
	},
	"linux": {
		"command": "./node_modules/.bin/gulp"
	},
E
Erich Gamma 已提交
12 13 14 15 16 17 18 19 20 21 22
	"isShellCommand": true,
	"tasks": [
		{
			"taskName": "watch",
			"args": [
				"--no-color"
			],
			"isBuildCommand": true,
			"isWatching": true,
			"problemMatcher": {
				"owner": "typescript",
23
				"applyTo": "closedDocuments",
24 25 26
				"fileLocation": [
					"absolute"
				],
E
Erich Gamma 已提交
27
				"pattern": {
28
					"regexp": "Error: ([^(]+)\\((\\d+|\\d+,\\d+|\\d+,\\d+,\\d+,\\d+)\\): (.*)$",
E
Erich Gamma 已提交
29 30 31 32 33
					"file": 1,
					"location": 2,
					"message": 3
				},
				"watching": {
34 35
					"beginsPattern": "Starting compilation",
					"endsPattern": "Finished compilation"
E
Erich Gamma 已提交
36 37 38
				}
			}
		},
E
Erich Gamma 已提交
39 40 41 42 43 44 45 46 47 48 49
		{
			"taskName": "tslint",
			"args": [],
			"problemMatcher": {
				"owner": "tslint",
				"fileLocation": [
					"relative",
					"${workspaceRoot}"
				],
				"severity": "warning",
				"pattern": {
E
Erich Gamma 已提交
50
					"regexp": "(.*):(\\d+):(\\d+):(.*)$",
E
Erich Gamma 已提交
51 52 53 54 55 56 57
					"file": 1,
					"line": 2,
					"column": 3,
					"message": 4
				}
			}
		},
E
Erich Gamma 已提交
58 59 60 61 62 63 64 65 66 67
		{
			"taskName": "test",
			"args": [
				"--no-color"
			],
			"showOutput": "always",
			"isTestCommand": true
		}
	]
}