tasks.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // This file is automatically generated by Teams Toolkit.
  2. // The teamsfx tasks defined in this file require Teams Toolkit version >= 5.0.0.
  3. // See https://aka.ms/teamsfx-tasks for details on how to customize each task.
  4. {
  5. "version": "2.0.0",
  6. "tasks": [
  7. {
  8. "label": "Start Teams App Locally",
  9. "dependsOn": [
  10. "Validate prerequisites",
  11. "Provision",
  12. "Deploy",
  13. "Start application"
  14. ],
  15. "dependsOrder": "sequence"
  16. },
  17. {
  18. // Check all required prerequisites.
  19. // See https://aka.ms/teamsfx-tasks/check-prerequisites to know the details and how to customize the args.
  20. "label": "Validate prerequisites",
  21. "type": "teamsfx",
  22. "command": "debug-check-prerequisites",
  23. "args": {
  24. "prerequisites": [
  25. "nodejs", // Validate if Node.js is installed.
  26. "m365Account", // Sign-in prompt for Microsoft 365 account, then validate if the account enables the sideloading permission.
  27. "portOccupancy" // Validate available ports to ensure those debug ones are not occupied.
  28. ],
  29. "portOccupancy": [
  30. 53000, // tab service port,
  31. 9239 // app inspector port for Node.js debugger
  32. ]
  33. }
  34. },
  35. {
  36. // Create the debug resources.
  37. // See https://aka.ms/teamsfx-tasks/provision to know the details and how to customize the args.
  38. "label": "Provision",
  39. "type": "teamsfx",
  40. "command": "provision",
  41. "args": {
  42. "env": "local"
  43. }
  44. },
  45. {
  46. // Build project.
  47. // See https://aka.ms/teamsfx-tasks/deploy to know the details and how to customize the args.
  48. "label": "Deploy",
  49. "type": "teamsfx",
  50. "command": "deploy",
  51. "args": {
  52. "env": "local"
  53. }
  54. },
  55. {
  56. "label": "Start application",
  57. "type": "shell",
  58. "command": "npm run dev:teamsfx",
  59. "isBackground": true,
  60. "options": {
  61. "cwd": "${workspaceFolder}"
  62. },
  63. "problemMatcher": {
  64. "pattern": {
  65. "regexp": "^.*$",
  66. "file": 0,
  67. "location": 1,
  68. "message": 2
  69. },
  70. "background": {
  71. "activeOnStart": true,
  72. "beginsPattern": ".*",
  73. "endsPattern": "Compiled|Failed|compiled|failed|listening"
  74. }
  75. }
  76. }
  77. ]
  78. }