|
{ |
|
"version": "2.0.0", // Specifies the version of the tasks.json format. |
|
"tasks": [ |
|
{ |
|
"type": "npm", // Specifies that the task uses npm. |
|
"script": "start", // Task to start the Angular app. |
|
"isBackground": true, // Indicates that the task runs in the background. |
|
"presentation": { |
|
"focus": true, // The task will take focus in the terminal. |
|
"panel": "dedicated" // The task will run in a dedicated terminal panel. |
|
}, |
|
"group": { |
|
"kind": "build", // This task is part of the build group. |
|
"isDefault": true // This is the default build task for the Angular app. |
|
}, |
|
"problemMatcher": { |
|
"owner": "typescript", // Specifies TypeScript as the problem matcher owner. |
|
"source": "ts", // Indicates the source for the problem matcher. |
|
"applyTo": "closedDocuments", // Only applies to closed documents. |
|
"fileLocation": [ |
|
"relative", // File locations are relative. |
|
"${cwd}" // The current working directory is used. |
|
], |
|
"pattern": "$tsc", // Uses the TypeScript compiler pattern. |
|
"background": { |
|
"activeOnStart": true, // The background matcher is active on start. |
|
"beginsPattern": { |
|
"regexp": "^Starting.*" // Pattern to match the start of the build process. |
|
}, |
|
"endsPattern": { |
|
"regexp": "Compiled |Failed to compile." // Pattern to match the end of the build process. |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"type": "npm", // Specifies that the task uses npm. |
|
"script": "server", // Task to start the Node.js server. |
|
"isBackground": true, // Indicates that the task runs in the background. |
|
"presentation": { |
|
"focus": true, // The task will take focus in the terminal. |
|
"panel": "dedicated" // The task will run in a dedicated terminal panel. |
|
}, |
|
"group": { |
|
"kind": "build", // This task is part of the build group. |
|
"isDefault": false // This is not the default build task. |
|
}, |
|
"problemMatcher": { |
|
"owner": "typescript", // Specifies TypeScript as the problem matcher owner. |
|
"source": "ts", // Indicates the source for the problem matcher. |
|
"applyTo": "closedDocuments", // Only applies to closed documents. |
|
"fileLocation": [ |
|
"relative", // File locations are relative. |
|
"${cwd}" // The current working directory is used. |
|
], |
|
"pattern": "$tsc", // Uses the TypeScript compiler pattern. |
|
"background": { |
|
"activeOnStart": true, // The background matcher is active on start. |
|
"beginsPattern": { |
|
"regexp": "^Server starting.*" // Pattern to match the start of the server process. |
|
}, |
|
"endsPattern": { |
|
"regexp": "Compiled |Failed to compile." // Pattern to match the end of the server process. |
|
} |
|
} |
|
} |
|
}, |
|
{ |
|
"type": "npm", // Specifies that the task uses npm. |
|
"script": "test", // Task to run tests. |
|
"isBackground": false, // Tests are not typically run in the background. |
|
"presentation": { |
|
"focus": true, // The task will take focus in the terminal. |
|
"panel": "dedicated" // The task will run in a dedicated terminal panel. |
|
}, |
|
"group": { |
|
"kind": "test", // This task is part of the test group. |
|
"isDefault": true // This is the default test task. |
|
}, |
|
"problemMatcher": { |
|
"owner": "typescript", // Specifies TypeScript as the problem matcher owner. |
|
"pattern": "$tsc", // Uses the TypeScript compiler pattern. |
|
"background": { |
|
"activeOnStart": true, // The background matcher is active on start. |
|
"beginsPattern": { |
|
"regexp": "^Running tests.*" // Pattern to match the start of the test process. |
|
}, |
|
"endsPattern": { |
|
"regexp": "bundle generation complete" // Pattern to match the end of the test process. |
|
} |
|
} |
|
} |
|
} |
|
] |
|
} |