You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 line
1.3 KiB

8 年之前
  1. // Available variables which can be used inside of strings.
  2. // ${workspaceRoot}: the root folder of the team
  3. // ${file}: the current opened file
  4. // ${fileBasename}: the current opened file's basename
  5. // ${fileDirname}: the current opened file's dirname
  6. // ${fileExtname}: the current opened file's extension
  7. // ${cwd}: the current working directory of the spawned process
  8. // A task runner that calls a custom npm script that compiles the extension.
  9. {
  10. "version": "2.0.0",
  11. "showOutput": "silent",
  12. "tasks": [
  13. {
  14. "taskName": "compile",
  15. "command": "npm run compile --silent",
  16. "isBuildCommand": true,
  17. "isShellCommand": true,
  18. "problemMatcher": [
  19. "$tsc",
  20. {
  21. "base": "$tslint5",
  22. "fileLocation": "relative"
  23. }
  24. ]
  25. },
  26. {
  27. "taskName": "lint",
  28. "command": "npm run lint --silent",
  29. "isShellCommand": true,
  30. "problemMatcher": {
  31. "base": "$tslint5",
  32. "fileLocation": "relative"
  33. }
  34. },
  35. {
  36. "taskName": "watch",
  37. "command": "npm run watch --silent",
  38. "isBackground": true,
  39. "isShellCommand": true,
  40. "problemMatcher": "$tsc-watch"
  41. }
  42. ]
  43. }