tasks.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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": "AF: Clean + Rebuild All",
  14. "type": "shell",
  15. "dependsOrder": "sequence",
  16. "dependsOn": [
  17. "AF: Rust Clean",
  18. "AF: Flutter Clean",
  19. "AF: build_flowy_sdk",
  20. "AF: Flutter Pub Get",
  21. "AF: Flutter Package Get",
  22. "AF: Generate Language Files",
  23. "AF: Generate Freezed Files",
  24. ],
  25. "presentation": {
  26. "reveal": "always",
  27. "panel": "new"
  28. }
  29. },
  30. {
  31. "label": "AF: build_flowy_sdk",
  32. "type": "shell",
  33. "command": "sh ./scripts/build_sdk.sh",
  34. "windows": {
  35. "options": {
  36. "env": {
  37. "FLOWY_DEV_ENV": "Windows"
  38. },
  39. "shell": {
  40. "executable": "cmd.exe",
  41. "args": [
  42. "/d",
  43. "/c",
  44. ".\\scripts\\build_sdk.cmd"
  45. ]
  46. }
  47. }
  48. },
  49. "linux": {
  50. "options": {
  51. "env": {
  52. "FLOWY_DEV_ENV": "Linux"
  53. }
  54. }
  55. },
  56. "osx": {
  57. "options": {
  58. "env": {
  59. "FLOWY_DEV_ENV": "macOS"
  60. }
  61. }
  62. },
  63. "group": "build",
  64. "options": {
  65. "cwd": "${workspaceFolder}"
  66. }
  67. },
  68. {
  69. "label": "AF: Code Gen",
  70. "type": "shell",
  71. "dependsOrder": "sequence",
  72. "dependsOn": [
  73. "AF: Flutter Clean",
  74. "AF: Flutter Pub Get",
  75. "AF: Flutter Package Get",
  76. "AF: Generate Language Files",
  77. "AF: Generate Freezed Files"
  78. ],
  79. "group": {
  80. "kind": "build",
  81. "isDefault": true
  82. },
  83. "presentation": {
  84. "reveal": "always",
  85. "panel": "new"
  86. }
  87. },
  88. {
  89. "label": "AF: Flutter Clean",
  90. "type": "shell",
  91. "command": "flutter clean",
  92. "options": {
  93. "cwd": "${workspaceFolder}/app_flowy"
  94. }
  95. },
  96. {
  97. "label": "AF: Flutter Pub Get",
  98. "type": "shell",
  99. "command": "flutter pub get",
  100. "options": {
  101. "cwd": "${workspaceFolder}/app_flowy"
  102. }
  103. },
  104. {
  105. "label": "AF: Flutter Package Get",
  106. "type": "shell",
  107. "command": "flutter packages pub get",
  108. "options": {
  109. "cwd": "${workspaceFolder}/app_flowy"
  110. }
  111. },
  112. {
  113. "label": "AF: Generate Freezed Files",
  114. "type": "shell",
  115. "command": "flutter pub run build_runner build --delete-conflicting-outputs",
  116. "options": {
  117. "cwd": "${workspaceFolder}/app_flowy"
  118. }
  119. },
  120. {
  121. "label": "AF: Generate Language Files",
  122. "type": "shell",
  123. "command": "sh ./scripts/generate_language_files.sh",
  124. "windows": {
  125. "options": {
  126. "shell": {
  127. "executable": "cmd.exe",
  128. "args": [
  129. "/d",
  130. "/c",
  131. ".\\scripts\\generate_language_files.cmd"
  132. ]
  133. }
  134. }
  135. },
  136. "group": "build",
  137. "options": {
  138. "cwd": "${workspaceFolder}"
  139. }
  140. },
  141. {
  142. "label": "AF: Rust Clean",
  143. "type": "shell",
  144. "command": "cargo make flowy_clean",
  145. "group": "build",
  146. "options": {
  147. "cwd": "${workspaceFolder}"
  148. }
  149. },
  150. {
  151. "label": "AF: flutter build aar",
  152. "type": "flutter",
  153. "command": "flutter",
  154. "args": [
  155. "build",
  156. "aar"
  157. ],
  158. "group": "build",
  159. "problemMatcher": [],
  160. "detail": "app_flowy"
  161. }
  162. ]
  163. }