tasks.json 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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": "sh ./scripts/code_generation/freezed/generate_freezed.sh",
  122. "options": {
  123. "cwd": "${workspaceFolder}"
  124. },
  125. "group": {
  126. "kind": "build",
  127. "isDefault": true
  128. },
  129. "windows": {
  130. "options": {
  131. "shell": {
  132. "executable": "cmd.exe",
  133. "args": [
  134. "/d",
  135. "/c",
  136. ".\\scripts\\code_generation\\freezed\\generate_freezed.cmd"
  137. ]
  138. }
  139. }
  140. },
  141. },
  142. {
  143. "label": "AF: Generate Language Files",
  144. "type": "shell",
  145. "command": "sh ./scripts/code_generation/language_files/generate_language_files.sh",
  146. "windows": {
  147. "options": {
  148. "shell": {
  149. "executable": "cmd.exe",
  150. "args": [
  151. "/d",
  152. "/c",
  153. ".\\scripts\\code_generation\\language_files\\generate_language_files.cmd"
  154. ]
  155. }
  156. }
  157. },
  158. "group": "build",
  159. "options": {
  160. "cwd": "${workspaceFolder}"
  161. }
  162. },
  163. {
  164. "label": "AF: Flutter Clean",
  165. "type": "shell",
  166. "command": "cargo make flutter_clean",
  167. "group": "build",
  168. "options": {
  169. "cwd": "${workspaceFolder}"
  170. }
  171. },
  172. {
  173. "label": "AF: flutter build aar",
  174. "type": "flutter",
  175. "command": "flutter",
  176. "args": [
  177. "build",
  178. "aar"
  179. ],
  180. "group": "build",
  181. "problemMatcher": [],
  182. "detail": "appflowy_flutter"
  183. },
  184. {
  185. "label": "AF: Tauri UI Dev",
  186. "type": "shell",
  187. "isBackground": true,
  188. "command": "yarn",
  189. "args": [
  190. "dev"
  191. ],
  192. "options": {
  193. "cwd": "${workspaceFolder}/appflowy_tauri"
  194. }
  195. },
  196. {
  197. "label": "AF: Tauri UI Build",
  198. "type": "shell",
  199. "command": "pnpm run build",
  200. "options": {
  201. "cwd": "${workspaceFolder}/appflowy_tauri"
  202. }
  203. },
  204. {
  205. "label": "AF: Tauri Dev",
  206. "type": "shell",
  207. "command": "npm run tauri:dev",
  208. "options": {
  209. "cwd": "${workspaceFolder}/appflowy_tauri"
  210. }
  211. },
  212. {
  213. "label": "AF: Tauri Clean",
  214. "type": "shell",
  215. "command": "cargo make tauri_clean",
  216. "options": {
  217. "cwd": "${workspaceFolder}"
  218. }
  219. },
  220. {
  221. "label": "AF: Tauri Clean + Dev",
  222. "type": "shell",
  223. "dependsOrder": "sequence",
  224. "dependsOn": [
  225. "AF: Tauri Clean",
  226. "AF: Tauri UI Dev"
  227. ],
  228. "options": {
  229. "cwd": "${workspaceFolder}"
  230. }
  231. },
  232. {
  233. "label": "AF: Tauri ESLint",
  234. "type": "shell",
  235. "command": "npx eslint --fix src",
  236. "options": {
  237. "cwd": "${workspaceFolder}/appflowy_tauri"
  238. }
  239. },
  240. ]
  241. }