tasks.json
1 { 2 "version": "2.0.0", 3 "tasks": [ 4 { 5 "label": "start", 6 "type": "npm", 7 "script": "start", 8 // "isBackground": true, // Don't use this if you want to debug the task 9 // "problemMatcher": [] 10 }, 11 { 12 "type": "npm", 13 "script": "preview", 14 "isBackground": true, 15 "problemMatcher": [] 16 }, 17 { 18 "type": "npm", 19 "script": "check", 20 "problemMatcher": ["$tsc"] 21 }, 22 { 23 "type": "npm", 24 "script": "lint", 25 "problemMatcher": ["$eslint-compact"] 26 }, 27 { 28 "type": "npm", 29 "script": "build", 30 "group": "build", 31 "problemMatcher": ["$tsc"] 32 }, 33 { 34 "type": "npm", 35 "script": "pre-commit", 36 "problemMatcher": [] 37 }, 38 { 39 "label": "stop", 40 "command": "echo ${input:terminate}", 41 "type": "shell", 42 "problemMatcher": [] 43 } 44 ], 45 "inputs": [ 46 { 47 "id": "terminate", 48 "type": "command", 49 "command": "workbench.action.tasks.terminate", 50 "args": "start" 51 } 52 ] 53 }