2022-02-15 02:10:47 +00:00
|
|
|
{
|
2023-04-04 04:50:22 +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": [
|
|
|
|
{
|
|
|
|
"label": "AF: Clean + Rebuild All",
|
|
|
|
"type": "shell",
|
|
|
|
"dependsOrder": "sequence",
|
|
|
|
"dependsOn": [
|
2023-12-11 01:01:12 +00:00
|
|
|
"AF: Dart Clean",
|
2023-04-04 04:50:22 +00:00
|
|
|
"AF: Flutter Clean",
|
|
|
|
"AF: Build Appflowy Core",
|
|
|
|
"AF: Flutter Pub Get",
|
|
|
|
"AF: Generate Language Files",
|
2023-08-14 20:34:01 +00:00
|
|
|
"AF: Generate Freezed Files",
|
|
|
|
"AF: Generate Svg Files"
|
2023-04-04 04:50:22 +00:00
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "new"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-07-21 07:53:57 +00:00
|
|
|
"label": "AF: Clean + Rebuild All (iOS)",
|
2023-04-04 04:50:22 +00:00
|
|
|
"type": "shell",
|
|
|
|
"dependsOrder": "sequence",
|
|
|
|
"dependsOn": [
|
2023-12-11 01:01:12 +00:00
|
|
|
"AF: Dart Clean",
|
2023-04-04 04:50:22 +00:00
|
|
|
"AF: Flutter Clean",
|
2023-07-21 07:53:57 +00:00
|
|
|
"AF: Build Appflowy Core For iOS",
|
2023-04-04 04:50:22 +00:00
|
|
|
"AF: Flutter Pub Get",
|
|
|
|
"AF: Generate Language Files",
|
2023-08-14 20:34:01 +00:00
|
|
|
"AF: Generate Freezed Files",
|
|
|
|
"AF: Generate Svg Files"
|
2023-04-04 04:50:22 +00:00
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "new"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-07-21 07:53:57 +00:00
|
|
|
"label": "AF: Clean + Rebuild All (iOS Simulator)",
|
2023-04-04 04:50:22 +00:00
|
|
|
"type": "shell",
|
2023-07-21 07:53:57 +00:00
|
|
|
"dependsOrder": "sequence",
|
|
|
|
"dependsOn": [
|
2023-12-11 01:01:12 +00:00
|
|
|
"AF: Dart Clean",
|
2023-07-21 07:53:57 +00:00
|
|
|
"AF: Flutter Clean",
|
|
|
|
"AF: Build Appflowy Core For iOS Simulator",
|
|
|
|
"AF: Flutter Pub Get",
|
|
|
|
"AF: Generate Language Files",
|
2023-08-14 20:34:01 +00:00
|
|
|
"AF: Generate Freezed Files",
|
|
|
|
"AF: Generate Svg Files"
|
2023-07-21 07:53:57 +00:00
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "new"
|
|
|
|
}
|
|
|
|
},
|
2023-10-19 01:55:23 +00:00
|
|
|
{
|
|
|
|
"label": "AF: Clean + Rebuild All (Android)",
|
|
|
|
"type": "shell",
|
|
|
|
"dependsOrder": "sequence",
|
|
|
|
"dependsOn": [
|
2023-12-11 01:01:12 +00:00
|
|
|
"AF: Dart Clean",
|
2023-10-19 01:55:23 +00:00
|
|
|
"AF: Flutter Clean",
|
|
|
|
"AF: Build Appflowy Core For Android",
|
|
|
|
"AF: Flutter Pub Get",
|
|
|
|
"AF: Generate Language Files",
|
|
|
|
"AF: Generate Freezed Files",
|
|
|
|
"AF: Generate Svg Files"
|
|
|
|
],
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "new"
|
|
|
|
}
|
|
|
|
},
|
2023-04-04 04:50:22 +00:00
|
|
|
{
|
|
|
|
"label": "AF: Build Appflowy Core",
|
|
|
|
"type": "shell",
|
|
|
|
"windows": {
|
|
|
|
"command": "cargo make --profile development-windows-x86 appflowy-core-dev"
|
|
|
|
},
|
|
|
|
"linux": {
|
|
|
|
"command": "cargo make --profile \"development-linux-$(uname -m)\" appflowy-core-dev"
|
|
|
|
},
|
|
|
|
"osx": {
|
|
|
|
"command": "cargo make --profile \"development-mac-$(uname -m)\" appflowy-core-dev"
|
|
|
|
},
|
|
|
|
"group": "build",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
}
|
|
|
|
},
|
2023-12-11 01:01:12 +00:00
|
|
|
{
|
|
|
|
"label": "AF: Build Appflowy Core For iOS",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "cargo make --profile development-ios-arm64 appflowy-core-dev-ios",
|
|
|
|
"group": "build",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "AF: Build Appflowy Core For iOS Simulator",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "cargo make --profile development-ios-arm64-sim appflowy-core-dev-ios",
|
|
|
|
"group": "build",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "AF: Build Appflowy Core For Android",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "cargo make --profile development-android appflowy-core-dev-android",
|
|
|
|
"group": "build",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
}
|
|
|
|
},
|
2023-04-04 04:50:22 +00:00
|
|
|
{
|
|
|
|
"label": "AF: Code Gen",
|
|
|
|
"type": "shell",
|
|
|
|
"dependsOrder": "sequence",
|
|
|
|
"dependsOn": [
|
|
|
|
"AF: Flutter Clean",
|
|
|
|
"AF: Flutter Pub Get",
|
|
|
|
"AF: Generate Language Files",
|
2023-08-14 20:34:01 +00:00
|
|
|
"AF: Generate Freezed Files",
|
|
|
|
"AF: Generate Svg Files"
|
2023-04-04 04:50:22 +00:00
|
|
|
],
|
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true
|
|
|
|
},
|
|
|
|
"presentation": {
|
|
|
|
"reveal": "always",
|
|
|
|
"panel": "new"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-12-11 01:01:12 +00:00
|
|
|
"label": "AF: Dart Clean",
|
2023-04-04 04:50:22 +00:00
|
|
|
"type": "shell",
|
2023-12-11 01:01:12 +00:00
|
|
|
"command": "cargo make flutter_clean",
|
|
|
|
"group": "build",
|
2023-04-04 04:50:22 +00:00
|
|
|
"options": {
|
2023-12-11 01:01:12 +00:00
|
|
|
"cwd": "${workspaceFolder}"
|
2023-04-04 04:50:22 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-12-11 01:01:12 +00:00
|
|
|
"label": "AF: Flutter Clean",
|
2023-04-04 04:50:22 +00:00
|
|
|
"type": "shell",
|
2023-12-11 01:01:12 +00:00
|
|
|
"command": "flutter clean",
|
2023-04-04 04:50:22 +00:00
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/appflowy_flutter"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-12-11 01:01:12 +00:00
|
|
|
"label": "AF: Flutter Pub Get",
|
2023-04-04 04:50:22 +00:00
|
|
|
"type": "shell",
|
2023-12-11 01:01:12 +00:00
|
|
|
"command": "flutter pub get",
|
2023-04-04 04:50:22 +00:00
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/appflowy_flutter"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "AF: Generate Freezed Files",
|
|
|
|
"type": "shell",
|
2023-07-03 14:07:11 +00:00
|
|
|
"command": "sh ./scripts/code_generation/freezed/generate_freezed.sh",
|
2023-04-04 04:50:22 +00:00
|
|
|
"options": {
|
2023-07-03 14:07:11 +00:00
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
},
|
2023-07-05 03:04:18 +00:00
|
|
|
"group": "build",
|
2023-07-03 14:07:11 +00:00
|
|
|
"windows": {
|
|
|
|
"options": {
|
|
|
|
"shell": {
|
|
|
|
"executable": "cmd.exe",
|
|
|
|
"args": [
|
|
|
|
"/d",
|
|
|
|
"/c",
|
|
|
|
".\\scripts\\code_generation\\freezed\\generate_freezed.cmd"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2023-08-14 20:34:01 +00:00
|
|
|
}
|
2023-04-04 04:50:22 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "AF: Generate Language Files",
|
|
|
|
"type": "shell",
|
2023-07-03 14:07:11 +00:00
|
|
|
"command": "sh ./scripts/code_generation/language_files/generate_language_files.sh",
|
2023-04-04 04:50:22 +00:00
|
|
|
"windows": {
|
|
|
|
"options": {
|
|
|
|
"shell": {
|
|
|
|
"executable": "cmd.exe",
|
|
|
|
"args": [
|
|
|
|
"/d",
|
|
|
|
"/c",
|
2023-07-03 14:07:11 +00:00
|
|
|
".\\scripts\\code_generation\\language_files\\generate_language_files.cmd"
|
2023-04-04 04:50:22 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"group": "build",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
}
|
|
|
|
},
|
2023-08-14 20:34:01 +00:00
|
|
|
{
|
|
|
|
"label": "AF: Generate Svg Files",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "sh ./scripts/code_generation/flowy_icons/generate_flowy_icons.sh",
|
|
|
|
"windows": {
|
|
|
|
"options": {
|
|
|
|
"shell": {
|
|
|
|
"executable": "cmd.exe",
|
|
|
|
"args": [
|
|
|
|
"/d",
|
|
|
|
"/c",
|
|
|
|
".\\scripts\\code_generation\\flowy_icons\\generate_flowy_icons.cmd"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"group": "build",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
}
|
|
|
|
},
|
2023-04-04 04:50:22 +00:00
|
|
|
{
|
|
|
|
"label": "AF: flutter build aar",
|
|
|
|
"type": "flutter",
|
|
|
|
"command": "flutter",
|
2023-12-11 01:01:12 +00:00
|
|
|
"args": [
|
|
|
|
"build",
|
|
|
|
"aar"
|
|
|
|
],
|
2023-04-04 04:50:22 +00:00
|
|
|
"group": "build",
|
|
|
|
"problemMatcher": [],
|
|
|
|
"detail": "appflowy_flutter"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "AF: Tauri UI Build",
|
|
|
|
"type": "shell",
|
2023-05-10 05:27:50 +00:00
|
|
|
"command": "pnpm run build",
|
2023-04-04 04:50:22 +00:00
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/appflowy_tauri"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-12-11 01:01:12 +00:00
|
|
|
"label": "AF: Tauri UI Dev",
|
2023-04-04 04:50:22 +00:00
|
|
|
"type": "shell",
|
2023-12-11 01:01:12 +00:00
|
|
|
"isBackground": true,
|
2024-03-07 13:05:19 +00:00
|
|
|
"command": "pnpm run sync:i18n && pnpm run dev",
|
2023-04-04 04:50:22 +00:00
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/appflowy_tauri"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "AF: Tauri Clean",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "cargo make tauri_clean",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "AF: Tauri Clean + Dev",
|
|
|
|
"type": "shell",
|
|
|
|
"dependsOrder": "sequence",
|
2023-12-11 01:01:12 +00:00
|
|
|
"dependsOn": [
|
|
|
|
"AF: Tauri Clean",
|
|
|
|
"AF: Tauri UI Dev"
|
|
|
|
],
|
2023-04-04 04:50:22 +00:00
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "AF: Tauri ESLint",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "npx eslint --fix src",
|
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/appflowy_tauri"
|
|
|
|
}
|
|
|
|
},
|
2023-07-05 12:57:09 +00:00
|
|
|
{
|
2023-08-22 14:41:52 +00:00
|
|
|
"label": "AF: Generate Env File",
|
2023-07-05 12:57:09 +00:00
|
|
|
"type": "shell",
|
2023-11-28 02:54:31 +00:00
|
|
|
"command": "dart run build_runner clean && dart run build_runner build --delete-conflicting-outputs",
|
2023-07-05 12:57:09 +00:00
|
|
|
"options": {
|
|
|
|
"cwd": "${workspaceFolder}/appflowy_flutter"
|
|
|
|
}
|
2024-01-10 11:24:40 +00:00
|
|
|
}
|
2023-04-04 04:50:22 +00:00
|
|
|
]
|
2023-12-11 01:01:12 +00:00
|
|
|
}
|