tasks.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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: Dart Clean",
  18. "AF: Flutter Clean",
  19. "AF: Build Appflowy Core",
  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: Dart Clean",
  36. "AF: Flutter Clean",
  37. "AF: Build Appflowy Core_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 Appflowy Core_for_android",
  50. "type": "shell",
  51. "command": "cargo make --profile development-android appflowy-core-dev-android",
  52. "group": "build",
  53. "options": {
  54. "cwd": "${workspaceFolder}"
  55. }
  56. },
  57. {
  58. "label": "AF: Build Appflowy Core",
  59. "type": "shell",
  60. "windows": {
  61. "command": "cargo make --profile development-windows-x86 appflowy-core-dev"
  62. },
  63. "linux": {
  64. "command": "cargo make --profile \"development-linux-$(uname -m)\" appflowy-core-dev"
  65. },
  66. "osx": {
  67. "command": "cargo make --profile \"development-mac-$(uname -m)\" appflowy-core-dev"
  68. },
  69. "group": "build",
  70. "options": {
  71. "cwd": "${workspaceFolder}"
  72. }
  73. },
  74. {
  75. "label": "AF: Code Gen",
  76. "type": "shell",
  77. "dependsOrder": "sequence",
  78. "dependsOn": [
  79. "AF: Flutter Clean",
  80. "AF: Flutter Pub Get",
  81. "AF: Flutter Package Get",
  82. "AF: Generate Language Files",
  83. "AF: Generate Freezed Files"
  84. ],
  85. "group": {
  86. "kind": "build",
  87. "isDefault": true
  88. },
  89. "presentation": {
  90. "reveal": "always",
  91. "panel": "new"
  92. }
  93. },
  94. {
  95. "label": "AF: Flutter Clean",
  96. "type": "shell",
  97. "command": "flutter clean",
  98. "options": {
  99. "cwd": "${workspaceFolder}/appflowy_flutter"
  100. }
  101. },
  102. {
  103. "label": "AF: Flutter Pub Get",
  104. "type": "shell",
  105. "command": "flutter pub get",
  106. "options": {
  107. "cwd": "${workspaceFolder}/appflowy_flutter"
  108. }
  109. },
  110. {
  111. "label": "AF: Flutter Package Get",
  112. "type": "shell",
  113. "command": "flutter packages pub get",
  114. "options": {
  115. "cwd": "${workspaceFolder}/appflowy_flutter"
  116. }
  117. },
  118. {
  119. "label": "AF: Generate Freezed Files",
  120. "type": "shell",
  121. "command": "flutter pub run build_runner build --delete-conflicting-outputs",
  122. "options": {
  123. "cwd": "${workspaceFolder}/appflowy_flutter"
  124. }
  125. },
  126. {
  127. "label": "AF: Generate Language Files",
  128. "type": "shell",
  129. "command": "sh ./scripts/generate_language_files.sh",
  130. "windows": {
  131. "options": {
  132. "shell": {
  133. "executable": "cmd.exe",
  134. "args": [
  135. "/d",
  136. "/c",
  137. ".\\scripts\\generate_language_files.cmd"
  138. ]
  139. }
  140. }
  141. },
  142. "group": "build",
  143. "options": {
  144. "cwd": "${workspaceFolder}"
  145. }
  146. },
  147. {
  148. "label": "AF: Flutter Clean",
  149. "type": "shell",
  150. "command": "cargo make flutter_clean",
  151. "group": "build",
  152. "options": {
  153. "cwd": "${workspaceFolder}"
  154. }
  155. },
  156. {
  157. "label": "AF: flutter build aar",
  158. "type": "flutter",
  159. "command": "flutter",
  160. "args": [
  161. "build",
  162. "aar"
  163. ],
  164. "group": "build",
  165. "problemMatcher": [],
  166. "detail": "appflowy_flutter"
  167. },
  168. {
  169. "label": "AF: Tauri UI Dev",
  170. "type": "shell",
  171. "isBackground": true,
  172. "command": "yarn",
  173. "args": [
  174. "dev"
  175. ],
  176. "options": {
  177. "cwd": "${workspaceFolder}/appflowy_tauri"
  178. }
  179. },
  180. {
  181. "label": "AF: Tauri UI Build",
  182. "type": "shell",
  183. "command": "pnpm run build",
  184. "options": {
  185. "cwd": "${workspaceFolder}/appflowy_tauri"
  186. }
  187. },
  188. {
  189. "label": "AF: Tauri Dev",
  190. "type": "shell",
  191. "command": "npm run tauri:dev",
  192. "options": {
  193. "cwd": "${workspaceFolder}/appflowy_tauri"
  194. }
  195. },
  196. {
  197. "label": "AF: Tauri Clean",
  198. "type": "shell",
  199. "command": "cargo make tauri_clean",
  200. "options": {
  201. "cwd": "${workspaceFolder}"
  202. }
  203. },
  204. {
  205. "label": "AF: Tauri Clean + Dev",
  206. "type": "shell",
  207. "dependsOrder": "sequence",
  208. "dependsOn": [
  209. "AF: Tauri Clean",
  210. "AF: Tauri UI Dev"
  211. ],
  212. "options": {
  213. "cwd": "${workspaceFolder}"
  214. }
  215. },
  216. {
  217. "label": "AF: Tauri ESLint",
  218. "type": "shell",
  219. "command": "npx eslint --fix src",
  220. "options": {
  221. "cwd": "${workspaceFolder}/appflowy_tauri"
  222. }
  223. },
  224. ]
  225. }