tasks.json 3.2 KB

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