tasks.json 3.3 KB

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