forked from gaearon/react-transform-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 32
/
tasks.json
151 lines (151 loc) · 3.26 KB
/
tasks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process
{
"version": "0.1.0",
"command": "npm",
"isShellCommand": true,
"echoCommand": false,
"suppressTaskName": true,
"showOutput": "always",
"tasks": [
{
"args": [
"run",
"start",
"--silent",
"--react-hot-boilerplate-vscode:port=3000",
"--react-hot-boilerplate-vscode:host=localhost" // use these command line args to override host and port of the dev-server. default values are defined in package.json config section.
],
"problemMatcher": [
{
"owner": "custom",
"pattern": {
"regexp": "____________"
},
"watching": {
"activeOnStart": true,
"beginsPattern": "^webpack: Compiling\\.\\.\\.$",
"endsPattern": "^webpack: (Compiled successfully|Failed to compile)\\.$"
}
},
{
"owner": "javascript",
"severity": "error",
"applyTo": "closedDocuments",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "^(Module build failed:\\s.*?:\\s(.*):(.*?))[\\s+](?:\\(([\\d-]+):([\\d-]+)\\))?$",
"message": 3,
"file": 2,
"line": 4,
"column": 5
}
]
},
{
"owner": "javascript",
"severity": "error",
"applyTo": "closedDocuments",
"fileLocation": "relative",
"pattern": [
{
"regexp": "^ERROR in ./(.*)\\s?$",
"file": 1
},
{
"regexp": "^.*?Error:\\s(.*').*$",
"message": 1
},
{
"regexp": "^\\s+@.*?(\\d+)(?:-([\\d]+))?:(\\d+)(?:-([\\d]+))?\\s?$",
"line": 1,
"endLine": 2,
"column": 3,
"endColumn": 4
}
]
}
],
"isBackground": true,
"taskName": "development"
},
{
"args": [
"run",
"build",
"--silent"
],
"problemMatcher": [
{
"owner": "javascript",
"severity": "error",
"applyTo": "closedDocuments",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "^(Module build failed:\\s.*?:\\s(.*):(.*?))[\\s+](?:\\(([\\d-]+):([\\d-]+)\\))?$",
"message": 3,
"file": 2,
"line": 4,
"column": 5
}
]
},
{
"owner": "javascript",
"severity": "error",
"applyTo": "closedDocuments",
"fileLocation": "relative",
"pattern": [
{
"regexp": "^ERROR in ./(.*)\\s?$",
"file": 1
},
{
"regexp": "^.*?Error:\\s(.*').*$",
"message": 1
},
{
"regexp": "^\\s+@.*?(\\d+)(?:-([\\d]+))?:(\\d+)(?:-([\\d]+))?\\s?$",
"line": 1,
"endLine": 2,
"column": 3,
"endColumn": 4
}
]
}
],
"taskName": "release",
"isBuildCommand": true
},
{
"args": [
"install",
"--progress",
"false",
"--loglevel",
"http"
],
"taskName": "install"
},
{
"args": [
"run",
"lint",
"--loglevel",
"silent"
],
"problemMatcher": [
"$eslint-stylish"
],
"taskName": "lint",
"isTestCommand": true
}
]
}