2022-02-15 02:10:47 +00:00
|
|
|
{
|
|
|
|
"version": "2.0.0",
|
|
|
|
// https://code.visualstudio.com/docs/editor/tasks
|
|
|
|
// https://gist.github.com/deadalusai/9e13e36d61ec7fb72148
|
|
|
|
// ${workspaceRoot}: the root folder of the team
|
|
|
|
// ${file}: the current opened file
|
|
|
|
// ${fileBasename}: the current opened file's basename
|
|
|
|
// ${fileDirname}: the current opened file's dirname
|
|
|
|
// ${fileExtname}: the current opened file's extension
|
|
|
|
// ${cwd}: the current working directory of the spawned process
|
|
|
|
"tasks": [
|
|
|
|
{
|
2022-06-10 01:38:20 +00:00
|
|
|
"label": "AF: Clean + Rebuild All",
|
|
|
|
"type": "shell",
|
|
|
|
"dependsOrder": "sequence",
|
|
|
|
"dependsOn": [
|
|
|
|
"AF: Clean",
|
2022-06-15 14:28:33 +00:00
|
|
|
"AF: build_flowy_sdk",
|
2022-06-11 00:16:15 +00:00
|
|
|
"AF: Flutter Pub Get",
|
2022-06-10 01:38:20 +00:00
|
|
|
"AF: Flutter Package Get",
|
|
|
|
"AF: Generate Language Files",
|
|
|
|
"AF: Generate Freezed Files",
|
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "new"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "AF: build_flowy_sdk",
|
2022-02-15 02:10:47 +00:00
|
|
|
"type": "shell",
|
|
|
|
"command": "sh ./scripts/build_sdk.sh",
|
|
|
|
"windows": {
|
|
|
|
"options": {
|
|
|
|
"env": {
|
2022-06-10 01:38:20 +00:00
|
|
|
"FLOWY_DEV_ENV": "Windows"
|
2022-02-15 02:10:47 +00:00
|
|
|
},
|
|
|
|
"shell": {
|
|
|
|
"executable": "cmd.exe",
|
|
|
|
"args": [
|
|
|
|
"/d",
|
|
|
|
"/c",
|
|
|
|
".\\scripts\\build_sdk.cmd"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"linux": {
|
|
|
|
"options": {
|
|
|
|
"env": {
|
2022-06-10 01:38:20 +00:00
|
|
|
"FLOWY_DEV_ENV": "Linux-x86"
|
2022-02-15 02:10:47 +00:00
|
|
|
}
|
2022-06-10 01:38:20 +00:00
|
|
|
}
|
2022-02-15 02:10:47 +00:00
|
|
|
},
|
|
|
|
"osx": {
|
|
|
|
"options": {
|
|
|
|
"env": {
|
2022-06-10 01:38:20 +00:00
|
|
|
"FLOWY_DEV_ENV": "macOS"
|
2022-02-15 02:10:47 +00:00
|
|
|
}
|
2022-06-10 01:38:20 +00:00
|
|
|
}
|
2022-02-15 02:10:47 +00:00
|
|
|
},
|
|
|
|
"group": "build",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
2022-06-10 01:38:20 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "AF: Code Gen",
|
|
|
|
"type": "shell",
|
|
|
|
"dependsOrder": "sequence",
|
|
|
|
"dependsOn": [
|
2022-06-11 00:16:15 +00:00
|
|
|
"AF: Flutter Pub Get",
|
2022-06-10 01:38:20 +00:00
|
|
|
"AF: Flutter Package Get",
|
|
|
|
"AF: Generate Language Files",
|
|
|
|
"AF: Generate Freezed Files"
|
|
|
|
],
|
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
2022-06-11 00:16:15 +00:00
|
|
|
"isDefault": true
|
2022-02-15 02:10:47 +00:00
|
|
|
},
|
2022-06-10 01:38:20 +00:00
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "new"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2022-06-11 00:16:15 +00:00
|
|
|
"label": "AF: Flutter Pub Get",
|
2022-06-10 01:38:20 +00:00
|
|
|
"type": "shell",
|
|
|
|
"command": "flutter pub get",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/app_flowy"
|
|
|
|
}
|
2022-02-15 02:10:47 +00:00
|
|
|
},
|
|
|
|
{
|
2022-06-10 01:38:20 +00:00
|
|
|
"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",
|
2022-02-15 02:10:47 +00:00
|
|
|
"type": "shell",
|
|
|
|
"command": "sh ./scripts/generate_language_files.sh",
|
|
|
|
"windows": {
|
|
|
|
"options": {
|
|
|
|
"shell": {
|
|
|
|
"executable": "cmd.exe",
|
|
|
|
"args": [
|
|
|
|
"/d",
|
|
|
|
"/c",
|
|
|
|
".\\scripts\\generate_language_files.cmd"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"group": "build",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
2022-06-10 01:38:20 +00:00
|
|
|
}
|
2022-02-17 08:32:10 +00:00
|
|
|
},
|
|
|
|
{
|
2022-06-10 01:38:20 +00:00
|
|
|
"label": "AF: Clean",
|
2022-02-17 08:32:10 +00:00
|
|
|
"type": "shell",
|
|
|
|
"command": "sh ./scripts/clean.sh",
|
|
|
|
"windows": {
|
|
|
|
"options": {
|
|
|
|
"shell": {
|
|
|
|
"executable": "cmd.exe",
|
|
|
|
"args": [
|
|
|
|
"/d",
|
|
|
|
"/c",
|
|
|
|
".\\scripts\\clean.cmd"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"group": "build",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
2022-06-10 01:38:20 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "AF: flutter build aar",
|
|
|
|
"type": "flutter",
|
|
|
|
"command": "flutter",
|
|
|
|
"args": [
|
|
|
|
"build",
|
|
|
|
"aar"
|
|
|
|
],
|
|
|
|
"group": "build",
|
|
|
|
"problemMatcher": [],
|
|
|
|
"detail": "app_flowy"
|
2022-02-15 02:10:47 +00:00
|
|
|
}
|
|
|
|
]
|
2022-06-11 00:16:15 +00:00
|
|
|
}
|