tasks.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. {
  2. "version": "2.0.0",
  3. // https://code.visualstudio.com/docs/editor/tasks
  4. // https://gist.github.com/deadalusai/9e13e36d61ec7fb72148
  5. // ${workspaceRoot}: the root folder of the team
  6. // ${file}: the current opened file
  7. // ${fileBasename}: the current opened file's basename
  8. // ${fileDirname}: the current opened file's dirname
  9. // ${fileExtname}: the current opened file's extension
  10. // ${cwd}: the current working directory of the spawned process
  11. "tasks": [
  12. {
  13. "label": "build_flowy_sdk",
  14. "type": "shell",
  15. "command": "sh ./scripts/build_sdk.sh",
  16. "windows": {
  17. "options": {
  18. "env": {
  19. "FLOWY_DEV_ENV": "Windows",
  20. },
  21. "shell": {
  22. "executable": "cmd.exe",
  23. "args": [
  24. "/d",
  25. "/c",
  26. ".\\scripts\\build_sdk.cmd"
  27. ]
  28. }
  29. }
  30. },
  31. "linux": {
  32. "options": {
  33. "env": {
  34. "FLOWY_DEV_ENV": "Linux-x86",
  35. }
  36. },
  37. },
  38. "osx": {
  39. "options": {
  40. "env": {
  41. "FLOWY_DEV_ENV": "macOS",
  42. }
  43. },
  44. },
  45. "group": "build",
  46. "options": {
  47. "cwd": "${workspaceFolder}/../"
  48. },
  49. // "problemMatcher": [
  50. // "$rustc"
  51. // ],
  52. },
  53. {
  54. "label": "Code Gen",
  55. "type": "shell",
  56. "dependsOn": [
  57. "Flutter Pub",
  58. "Flutter Package Get",
  59. "Generate Language Files",
  60. "Generate Freezed Files"
  61. ],
  62. "group": {
  63. "kind": "build",
  64. "isDefault": true,
  65. },
  66. "dependsOrder": "sequence",
  67. "presentation": {
  68. "reveal": "always",
  69. "panel": "new"
  70. },
  71. },
  72. {
  73. "label": "Flutter Pub",
  74. "type": "shell",
  75. "command": "flutter pub get",
  76. },
  77. {
  78. "label": "Flutter Package Get",
  79. "type": "shell",
  80. "command": "flutter packages pub get",
  81. },
  82. {
  83. "label": "Generate Freezed Files",
  84. "type": "shell",
  85. "command": "flutter pub run build_runner build --delete-conflicting-outputs",
  86. },
  87. {
  88. "label": "Generate Language Files",
  89. "type": "shell",
  90. "command": "sh ./scripts/generate_language_files.sh",
  91. "windows": {
  92. "options": {
  93. "shell": {
  94. "executable": "cmd.exe",
  95. "args": [
  96. "/d",
  97. "/c",
  98. ".\\scripts\\generate_language_files.cmd"
  99. ]
  100. }
  101. }
  102. },
  103. "group": "build",
  104. "options": {
  105. "cwd": "${workspaceFolder}/../"
  106. },
  107. },
  108. {
  109. "label": "Clean",
  110. "type": "shell",
  111. "command": "sh ./scripts/clean.sh",
  112. "windows": {
  113. "options": {
  114. "shell": {
  115. "executable": "cmd.exe",
  116. "args": [
  117. "/d",
  118. "/c",
  119. ".\\scripts\\clean.cmd"
  120. ]
  121. }
  122. }
  123. },
  124. "options": {
  125. "cwd": "${workspaceFolder}/../"
  126. },
  127. }
  128. ]
  129. }