Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
refactor: simplify launch settings
MikeWallaceDevc93b2a8635e7
diff --git a/frontend/.vscode/launch.json b/frontend/.vscode/launch.jsonindex 66fc02b1a1..4328389d39 100644--- a/frontend/.vscode/launch.json+++ b/frontend/.vscode/launch.json@@ -5,40 +5,60 @@"version": "0.2.0","configurations": [{- "name": "app_flowy",+ // This task builds the Rust and Dart code of AppFlowy.+ "name": "AF: Build All","request": "launch","program": "./lib/main.dart","type": "dart",- "preLaunchTask": "build_flowy_sdk",+ "preLaunchTask": "AF: build_flowy_sdk","env":{"RUST_LOG":"info"},"cwd": "${workspaceRoot}/app_flowy"},{- "name": "app_flowy(trace)",+ // This task only builds the Dart code of AppFlowy.+ "name": "AF: Build Dart Only",+ "request": "launch",+ "program": "${workspaceRoot}/lib/main.dart",+ "type": "dart",+ "env": {+ "RUST_LOG": "debug"+ },+ "cwd": "${workspaceRoot}"+ },+ {+ // This task builds will:+ // - call the clean task,+ // - rebuild all the generated Files (including freeze and language files)+ // - rebuild the the Rust and Dart code of AppFlowy.+ "name": "AF: Clean + Rebuild All","request": "launch","program": "./lib/main.dart","type": "dart",- "preLaunchTask": "build_flowy_sdk",+ "preLaunchTask": "AF: Clean + Rebuild All","env":{- "RUST_LOG":"trace"+ "RUST_LOG":"info"},"cwd": "${workspaceRoot}/app_flowy"},+{- "name": "app_flowy (profile mode)",+ "name": "AF: Build All (rustlog: trace)","request": "launch",+ "program": "./lib/main.dart","type": "dart",- "flutterMode": "profile"+ "preLaunchTask": "AF: build_flowy_sdk",+ "env":{+ "RUST_LOG":"trace"+ },+ "cwd": "${workspaceRoot}/app_flowy"},{- "name": "Generate Language Files",+ "name": "AF: app_flowy (profile mode)","request": "launch",- "program": "./lib/main.dart","type": "dart",- "preLaunchTask": "Generate Language Files",- "cwd": "${workspaceRoot}/app_flowy/"+ "flutterMode": "profile"},]-}\ No newline at end of file+}diff --git a/frontend/.vscode/tasks.json b/frontend/.vscode/tasks.jsonindex e902e3dfd5..aec5955c19 100644--- a/frontend/.vscode/tasks.json+++ b/frontend/.vscode/tasks.json@@ -10,13 +10,35 @@// ${cwd}: the current working directory of the spawned process"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","command": "sh ./scripts/build_sdk.sh","windows": {"options": {"env": {- "FLOWY_DEV_ENV": "Windows",+ "FLOWY_DEV_ENV": "Windows"},"shell": {"executable": "cmd.exe",@@ -31,27 +53,67 @@"linux": {"options": {"env": {- "FLOWY_DEV_ENV": "Linux-x86",+ "FLOWY_DEV_ENV": "Linux-x86"}- },+ }},"osx": {"options": {"env": {- "FLOWY_DEV_ENV": "macOS",+ "FLOWY_DEV_ENV": "macOS"}- },+ }},"group": "build","options": {"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","command": "sh ./scripts/generate_language_files.sh","windows": {@@ -69,10 +131,10 @@"group": "build","options": {"cwd": "${workspaceFolder}"- },+ }},{- "label": "Clean",+ "label": "AF: Clean","type": "shell","command": "sh ./scripts/clean.sh","windows": {@@ -90,7 +152,19 @@"group": "build","options": {"cwd": "${workspaceFolder}"- },+ }+ },+ {+ "label": "AF: flutter build aar",+ "type": "flutter",+ "command": "flutter",+ "args": [+ "build",+ "aar"+ ],+ "group": "build",+ "problemMatcher": [],+ "detail": "app_flowy"}]-}\ No newline at end of file+}diff --git a/frontend/app_flowy/.vscode/launch.json b/frontend/app_flowy/.vscode/launch.jsondeleted file mode 100644index e5ea3cdf6f..0000000000--- a/frontend/app_flowy/.vscode/launch.json+++ /dev/null@@ -1,48 +0,0 @@-{- // Use IntelliSense to learn about possible attributes.- // Hover to view descriptions of existing attributes.- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387- "version": "0.2.0",- "configurations": [- {- // This task builds the Rust and Dart code of AppFlowy.- "name": "Build",- "request": "launch",- "program": "${workspaceRoot}/lib/main.dart",- "preLaunchTask": "build_flowy_sdk",- "type": "dart",- "env": {- "RUST_LOG": "debug"- },- "cwd": "${workspaceRoot}"- },- {- // This task only build the Dart code of AppFlowy.- "name": "Build (Dart)",- "request": "launch",- "program": "${workspaceRoot}/lib/main.dart",- "type": "dart",- "env": {- "RUST_LOG": "debug"- },- "cwd": "${workspaceRoot}"- },- {- "name": "Build (trace log)",- "request": "launch",- "program": "${workspaceRoot}/lib/main.dart",- "type": "dart",- "preLaunchTask": "build_flowy_sdk",- "env": {- "RUST_LOG": "trace"- },- "cwd": "${workspaceRoot}"- },- {- "name": "Build (profile mode)",- "request": "launch",- "type": "dart",- "flutterMode": "profile"- },- ]-}\ No newline at end of filediff --git a/frontend/app_flowy/.vscode/settings.json b/frontend/app_flowy/.vscode/settings.jsondeleted file mode 100644index 13845cc225..0000000000--- a/frontend/app_flowy/.vscode/settings.json+++ /dev/null@@ -1,26 +0,0 @@-{- "[dart]": {- "editor.formatOnSave": true,- "editor.formatOnType": true,- "editor.rulers": [- 120- ],- "editor.selectionHighlight": false,- "editor.suggest.snippetsPreventQuickSuggestions": false,- "editor.suggestSelection": "first",- "editor.tabCompletion": "onlySnippets",- "editor.wordBasedSuggestions": false- },- "svgviewer.enableautopreview": true,- "svgviewer.previewcolumn": "Active",- "svgviewer.showzoominout": true,- "editor.wordWrapColumn": 120,- "editor.minimap.maxColumn": 140,- "prettier.printWidth": 140,- "editor.wordWrap": "wordWrapColumn",- "dart.lineLength": 120,- "files.associations": {- "*.log.*": "log"- },- "editor.formatOnSave": true,-}\ No newline at end of filediff --git a/frontend/app_flowy/.vscode/tasks.json b/frontend/app_flowy/.vscode/tasks.jsondeleted file mode 100644index f46aac1085..0000000000--- a/frontend/app_flowy/.vscode/tasks.json+++ /dev/null@@ -1,129 +0,0 @@-{- "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": "build_flowy_sdk",- "type": "shell",- "command": "sh ./scripts/build_sdk.sh",- "windows": {- "options": {- "env": {- "FLOWY_DEV_ENV": "Windows",- },- "shell": {- "executable": "cmd.exe",- "args": [- "/d",- "/c",- ".\\scripts\\build_sdk.cmd"- ]- }- }- },- "linux": {- "options": {- "env": {- "FLOWY_DEV_ENV": "Linux-x86",- }- },- },- "osx": {- "options": {- "env": {- "FLOWY_DEV_ENV": "macOS",- }- },- },- "group": "build",- "options": {- "cwd": "${workspaceFolder}/../"- },- // "problemMatcher": [- // "$rustc"- // ],- },- {- "label": "Code Gen",- "type": "shell",- "dependsOn": [- "Flutter Pub",- "Flutter Package Get",- "Generate Language Files",- "Generate Freezed Files"- ],- "group": {- "kind": "build",- "isDefault": true,- },- "dependsOrder": "sequence",- "presentation": {- "reveal": "always",- "panel": "new"- },- },- {- "label": "Flutter Pub",- "type": "shell",- "command": "flutter pub get",- },- {- "label": "Flutter Package Get",- "type": "shell",- "command": "flutter packages pub get",- },- {- "label": "Generate Freezed Files",- "type": "shell",- "command": "flutter pub run build_runner build --delete-conflicting-outputs",- },- {- "label": "Generate Language Files",- "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}/../"- },- },- {- "label": "Clean",- "type": "shell",- "command": "sh ./scripts/clean.sh",- "windows": {- "options": {- "shell": {- "executable": "cmd.exe",- "args": [- "/d",- "/c",- ".\\scripts\\clean.cmd"- ]- }- }- },- "options": {- "cwd": "${workspaceFolder}/../"- },- }- ]-}\ No newline at end of file