tasks.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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: Clean + Rebuild All (Android)",
  32. "type": "shell",
  33. "dependsOrder": "sequence",
  34. "dependsOn": [
  35. "AF: Rust Clean",
  36. "AF: Flutter Clean",
  37. "AF: build_flowy_sdk_for_android",
  38. "AF: Flutter Pub Get",
  39. "AF: Flutter Package Get",
  40. "AF: Generate Language Files",
  41. "AF: Generate Freezed Files",
  42. ],
  43. "presentation": {
  44. "reveal": "always",
  45. "panel": "new",
  46. },
  47. },
  48. {
  49. "label": "AF: build_flowy_sdk_for_android",
  50. "type": "shell",
  51. "command": "cargo make --profile development-android flowy-sdk-dev-android",
  52. "group": "build",
  53. "options": {
  54. "cwd": "${workspaceFolder}"
  55. }
  56. },
  57. {
  58. "label": "AF: build_flowy_sdk",
  59. "type": "shell",
  60. "command": "sh ./scripts/build_sdk.sh",
  61. "windows": {
  62. "options": {
  63. "env": {
  64. "FLOWY_DEV_ENV": "Windows"
  65. },
  66. "shell": {
  67. "executable": "cmd.exe",
  68. "args": [
  69. "/d",
  70. "/c",
  71. ".\\scripts\\build_sdk.cmd"
  72. ]
  73. }
  74. }
  75. },
  76. "linux": {
  77. "options": {
  78. "env": {
  79. "FLOWY_DEV_ENV": "Linux"
  80. }
  81. }
  82. },
  83. "osx": {
  84. "options": {
  85. "env": {
  86. "FLOWY_DEV_ENV": "macOS"
  87. }
  88. }
  89. },
  90. "group": "build",
  91. "options": {
  92. "cwd": "${workspaceFolder}"
  93. }
  94. },
  95. {
  96. "label": "AF: Code Gen",
  97. "type": "shell",
  98. "dependsOrder": "sequence",
  99. "dependsOn": [
  100. "AF: Flutter Clean",
  101. "AF: Flutter Pub Get",
  102. "AF: Flutter Package Get",
  103. "AF: Generate Language Files",
  104. "AF: Generate Freezed Files"
  105. ],
  106. "group": {
  107. "kind": "build",
  108. "isDefault": true
  109. },
  110. "presentation": {
  111. "reveal": "always",
  112. "panel": "new"
  113. }
  114. },
  115. {
  116. "label": "AF: Flutter Clean",
  117. "type": "shell",
  118. "command": "flutter clean",
  119. "options": {
  120. "cwd": "${workspaceFolder}/app_flowy"
  121. }
  122. },
  123. {
  124. "label": "AF: Flutter Pub Get",
  125. "type": "shell",
  126. "command": "flutter pub get",
  127. "options": {
  128. "cwd": "${workspaceFolder}/app_flowy"
  129. }
  130. },
  131. {
  132. "label": "AF: Flutter Package Get",
  133. "type": "shell",
  134. "command": "flutter packages pub get",
  135. "options": {
  136. "cwd": "${workspaceFolder}/app_flowy"
  137. }
  138. },
  139. {
  140. "label": "AF: Generate Freezed Files",
  141. "type": "shell",
  142. "command": "flutter pub run build_runner build --delete-conflicting-outputs",
  143. "options": {
  144. "cwd": "${workspaceFolder}/app_flowy"
  145. }
  146. },
  147. {
  148. "label": "AF: Generate Language Files",
  149. "type": "shell",
  150. "command": "sh ./scripts/generate_language_files.sh",
  151. "windows": {
  152. "options": {
  153. "shell": {
  154. "executable": "cmd.exe",
  155. "args": [
  156. "/d",
  157. "/c",
  158. ".\\scripts\\generate_language_files.cmd"
  159. ]
  160. }
  161. }
  162. },
  163. "group": "build",
  164. "options": {
  165. "cwd": "${workspaceFolder}"
  166. }
  167. },
  168. {
  169. "label": "AF: Rust Clean",
  170. "type": "shell",
  171. "command": "cargo make flowy_clean",
  172. "group": "build",
  173. "options": {
  174. "cwd": "${workspaceFolder}"
  175. }
  176. },
  177. {
  178. "label": "AF: flutter build aar",
  179. "type": "flutter",
  180. "command": "flutter",
  181. "args": [
  182. "build",
  183. "aar"
  184. ],
  185. "group": "build",
  186. "problemMatcher": [],
  187. "detail": "app_flowy"
  188. }
  189. ]
  190. }