mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
243f80b6d5
* chore: remove use of svgWidget() * refactor: redundant code in svg * feat: add generator to generate flowy_svgs.g.dart * chore: reference new package in pubspec * chore: remove svg widget from flowy_infra * refactor: update usage in flowy_infra_ui * refactor: usage in appflowy_flutter * fix: error with script not running * fix: error with script not running * fix: use unix style file path * feat: use generation script for flowy svgs * feat: add task * fix: add required missing semicolon * fix: rebase errors * feat: update generate build script * fix: solve duplicate entries in the generated file * fix: compilation errors * fix: replace all spaces with an underscore * feat: use FlowySvgs * feat: reduce assets and simplify * refactor: do not return empty svg widget * fix: rebase errors * fix: analyzer warnings * chore: remove flowy_icons from tracking * chore: fix generate flowy icons script linux * chore: macos/linux script * chore: add rsync --------- Co-authored-by: Mathias Mogensen <mathiasrieckm@gmail.com> Co-authored-by: Mathias Mogensen <mathias@appflowy.io>
291 lines
7.4 KiB
JSON
291 lines
7.4 KiB
JSON
{
|
|
"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": [
|
|
"AF: Dart Clean",
|
|
"AF: Flutter Clean",
|
|
"AF: Build Appflowy Core",
|
|
"AF: Flutter Pub Get",
|
|
"AF: Flutter Package Get",
|
|
"AF: Generate Language Files",
|
|
"AF: Generate Freezed Files",
|
|
"AF: Generate Svg Files"
|
|
],
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new"
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: Clean + Rebuild All (iOS)",
|
|
"type": "shell",
|
|
"dependsOrder": "sequence",
|
|
"dependsOn": [
|
|
"AF: Dart Clean",
|
|
"AF: Flutter Clean",
|
|
"AF: Build Appflowy Core For iOS",
|
|
"AF: Flutter Pub Get",
|
|
"AF: Flutter Package Get",
|
|
"AF: Generate Language Files",
|
|
"AF: Generate Freezed Files",
|
|
"AF: Generate Svg Files"
|
|
],
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new"
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: Clean + Rebuild All (iOS Simulator)",
|
|
"type": "shell",
|
|
"dependsOrder": "sequence",
|
|
"dependsOn": [
|
|
"AF: Dart Clean",
|
|
"AF: Flutter Clean",
|
|
"AF: Build Appflowy Core For iOS Simulator",
|
|
"AF: Flutter Pub Get",
|
|
"AF: Flutter Package Get",
|
|
"AF: Generate Language Files",
|
|
"AF: Generate Freezed Files",
|
|
"AF: Generate Svg Files"
|
|
],
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new"
|
|
}
|
|
},
|
|
{
|
|
"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",
|
|
"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}"
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: Code Gen",
|
|
"type": "shell",
|
|
"dependsOrder": "sequence",
|
|
"dependsOn": [
|
|
"AF: Flutter Clean",
|
|
"AF: Flutter Pub Get",
|
|
"AF: Flutter Package Get",
|
|
"AF: Generate Language Files",
|
|
"AF: Generate Freezed Files",
|
|
"AF: Generate Svg Files"
|
|
],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "new"
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: Flutter Clean",
|
|
"type": "shell",
|
|
"command": "flutter clean",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/appflowy_flutter"
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: Flutter Pub Get",
|
|
"type": "shell",
|
|
"command": "flutter pub get",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/appflowy_flutter"
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: Flutter Package Get",
|
|
"type": "shell",
|
|
"command": "flutter packages pub get",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/appflowy_flutter"
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: Generate Freezed Files",
|
|
"type": "shell",
|
|
"command": "sh ./scripts/code_generation/freezed/generate_freezed.sh",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
"group": "build",
|
|
"windows": {
|
|
"options": {
|
|
"shell": {
|
|
"executable": "cmd.exe",
|
|
"args": [
|
|
"/d",
|
|
"/c",
|
|
".\\scripts\\code_generation\\freezed\\generate_freezed.cmd"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: Generate Language Files",
|
|
"type": "shell",
|
|
"command": "sh ./scripts/code_generation/language_files/generate_language_files.sh",
|
|
"windows": {
|
|
"options": {
|
|
"shell": {
|
|
"executable": "cmd.exe",
|
|
"args": [
|
|
"/d",
|
|
"/c",
|
|
".\\scripts\\code_generation\\language_files\\generate_language_files.cmd"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"group": "build",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
},
|
|
{
|
|
"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}"
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: Flutter Clean",
|
|
"type": "shell",
|
|
"command": "cargo make flutter_clean",
|
|
"group": "build",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: flutter build aar",
|
|
"type": "flutter",
|
|
"command": "flutter",
|
|
"args": ["build", "aar"],
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "appflowy_flutter"
|
|
},
|
|
{
|
|
"label": "AF: Tauri UI Dev",
|
|
"type": "shell",
|
|
"isBackground": true,
|
|
"command": "yarn",
|
|
"args": ["dev"],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/appflowy_tauri"
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: Tauri UI Build",
|
|
"type": "shell",
|
|
"command": "pnpm run build",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/appflowy_tauri"
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: Tauri Dev",
|
|
"type": "shell",
|
|
"command": "npm run tauri:dev",
|
|
"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",
|
|
"dependsOn": ["AF: Tauri Clean", "AF: Tauri UI Dev"],
|
|
"options": {
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: Tauri ESLint",
|
|
"type": "shell",
|
|
"command": "npx eslint --fix src",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/appflowy_tauri"
|
|
}
|
|
},
|
|
{
|
|
"label": "AF: Generate Env",
|
|
"type": "shell",
|
|
"command": "dart run build_runner clean && dart run build_runner build --delete-conflicting-outputs ",
|
|
"options": {
|
|
"cwd": "${workspaceFolder}/appflowy_flutter"
|
|
}
|
|
}
|
|
]
|
|
}
|