|
@@ -10,13 +10,35 @@
|
|
// ${cwd}: the current working directory of the spawned process
|
|
// ${cwd}: the current working directory of the spawned process
|
|
"tasks": [
|
|
"tasks": [
|
|
{
|
|
{
|
|
- "label": "build_flowy_sdk",
|
|
|
|
|
|
+ "label": "AF: Clean + Rebuild All",
|
|
|
|
+ "type": "shell",
|
|
|
|
+ "dependsOrder": "sequence",
|
|
|
|
+ "dependsOn": [
|
|
|
|
+ "AF: Clean",
|
|
|
|
+ "AF: Flutter Pub",
|
|
|
|
+ "AF: Flutter Package Get",
|
|
|
|
+ "AF: Generate Language Files",
|
|
|
|
+ "AF: Generate Freezed Files",
|
|
|
|
+ "AF: build_flowy_sdk"
|
|
|
|
+ ],
|
|
|
|
+ "group": {
|
|
|
|
+ "kind": "build",
|
|
|
|
+ "isDefault": true,
|
|
|
|
+ },
|
|
|
|
+ "presentation": {
|
|
|
|
+ "reveal": "always",
|
|
|
|
+ "panel": "new"
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "label": "AF: build_flowy_sdk",
|
|
"type": "shell",
|
|
"type": "shell",
|
|
"command": "sh ./scripts/build_sdk.sh",
|
|
"command": "sh ./scripts/build_sdk.sh",
|
|
"windows": {
|
|
"windows": {
|
|
"options": {
|
|
"options": {
|
|
"env": {
|
|
"env": {
|
|
- "FLOWY_DEV_ENV": "Windows",
|
|
|
|
|
|
+ "FLOWY_DEV_ENV": "Windows"
|
|
},
|
|
},
|
|
"shell": {
|
|
"shell": {
|
|
"executable": "cmd.exe",
|
|
"executable": "cmd.exe",
|
|
@@ -31,27 +53,67 @@
|
|
"linux": {
|
|
"linux": {
|
|
"options": {
|
|
"options": {
|
|
"env": {
|
|
"env": {
|
|
- "FLOWY_DEV_ENV": "Linux-x86",
|
|
|
|
|
|
+ "FLOWY_DEV_ENV": "Linux-x86"
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
"osx": {
|
|
"osx": {
|
|
"options": {
|
|
"options": {
|
|
"env": {
|
|
"env": {
|
|
- "FLOWY_DEV_ENV": "macOS",
|
|
|
|
|
|
+ "FLOWY_DEV_ENV": "macOS"
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
"group": "build",
|
|
"group": "build",
|
|
"options": {
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "label": "AF: Code Gen",
|
|
|
|
+ "type": "shell",
|
|
|
|
+ "dependsOrder": "sequence",
|
|
|
|
+ "dependsOn": [
|
|
|
|
+ "AF: Flutter Pub",
|
|
|
|
+ "AF: Flutter Package Get",
|
|
|
|
+ "AF: Generate Language Files",
|
|
|
|
+ "AF: Generate Freezed Files"
|
|
|
|
+ ],
|
|
|
|
+ "group": {
|
|
|
|
+ "kind": "build",
|
|
|
|
+ "isDefault": true,
|
|
},
|
|
},
|
|
- // "problemMatcher": [
|
|
|
|
- // "$rustc"
|
|
|
|
- // ],
|
|
|
|
|
|
+ "presentation": {
|
|
|
|
+ "reveal": "always",
|
|
|
|
+ "panel": "new"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "label": "AF: Flutter Pub",
|
|
|
|
+ "type": "shell",
|
|
|
|
+ "command": "flutter pub get",
|
|
|
|
+ "options": {
|
|
|
|
+ "cwd": "${workspaceFolder}/app_flowy"
|
|
|
|
+ }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "label": "Generate Language Files",
|
|
|
|
|
|
+ "label": "AF: Flutter Package Get",
|
|
|
|
+ "type": "shell",
|
|
|
|
+ "command": "flutter packages pub get",
|
|
|
|
+ "options": {
|
|
|
|
+ "cwd": "${workspaceFolder}/app_flowy"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "label": "AF: Generate Freezed Files",
|
|
|
|
+ "type": "shell",
|
|
|
|
+ "command": "flutter pub run build_runner build --delete-conflicting-outputs",
|
|
|
|
+ "options": {
|
|
|
|
+ "cwd": "${workspaceFolder}/app_flowy"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "label": "AF: Generate Language Files",
|
|
"type": "shell",
|
|
"type": "shell",
|
|
"command": "sh ./scripts/generate_language_files.sh",
|
|
"command": "sh ./scripts/generate_language_files.sh",
|
|
"windows": {
|
|
"windows": {
|
|
@@ -69,10 +131,10 @@
|
|
"group": "build",
|
|
"group": "build",
|
|
"options": {
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
"cwd": "${workspaceFolder}"
|
|
- },
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- "label": "Clean",
|
|
|
|
|
|
+ "label": "AF: Clean",
|
|
"type": "shell",
|
|
"type": "shell",
|
|
"command": "sh ./scripts/clean.sh",
|
|
"command": "sh ./scripts/clean.sh",
|
|
"windows": {
|
|
"windows": {
|
|
@@ -90,7 +152,19 @@
|
|
"group": "build",
|
|
"group": "build",
|
|
"options": {
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
"cwd": "${workspaceFolder}"
|
|
- },
|
|
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "label": "AF: flutter build aar",
|
|
|
|
+ "type": "flutter",
|
|
|
|
+ "command": "flutter",
|
|
|
|
+ "args": [
|
|
|
|
+ "build",
|
|
|
|
+ "aar"
|
|
|
|
+ ],
|
|
|
|
+ "group": "build",
|
|
|
|
+ "problemMatcher": [],
|
|
|
|
+ "detail": "app_flowy"
|
|
}
|
|
}
|
|
]
|
|
]
|
|
-}
|
|
|
|
|
|
+}
|