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
chore: support compile af on frontend/ directory
appflowyaecf29ddca24
diff --git a/frontend/.vscode/launch.json b/frontend/.vscode/launch.jsonnew file mode 100644index 0000000000..74249d756e--- /dev/null+++ b/frontend/.vscode/launch.json@@ -0,0 +1,44 @@+{+ // 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": [+ {+ "name": "app_flowy",+ "request": "launch",+ "program": "./lib/main.dart",+ "type": "dart",+ "preLaunchTask": "build_flowy_sdk",+ "env":{+ "RUST_LOG":"info",+ },+ "cwd": "${workspaceRoot}/app_flowy"+ },+ {+ "name": "app_flowy(trace)",+ "request": "launch",+ "program": "./lib/main.dart",+ "type": "dart",+ "preLaunchTask": "build_flowy_sdk",+ "env":{+ "RUST_LOG":"trace",+ },+ "cwd": "${workspaceRoot}/app_flowy"+ },+ {+ "name": "app_flowy (profile mode)",+ "request": "launch",+ "type": "dart",+ "flutterMode": "profile"+ },+ {+ "name": "Generate Language Files",+ "request": "launch",+ "program": "./lib/main.dart",+ "type": "dart",+ "preLaunchTask": "Generate Language Files",+ "cwd": "${workspaceRoot}/app_flowy/"+ },+ ]+}\ No newline at end of filediff --git a/frontend/.vscode/settings.json b/frontend/.vscode/settings.jsonnew file mode 100644index 0000000000..13845cc225--- /dev/null+++ b/frontend/.vscode/settings.json@@ -0,0 +1,26 @@+{+ "[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/.vscode/tasks.json b/frontend/.vscode/tasks.jsonnew file mode 100644index 0000000000..e6d25b9352--- /dev/null+++ b/frontend/.vscode/tasks.json@@ -0,0 +1,75 @@+{+ "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": "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}"+ },+ }+ ]+}\ No newline at end of filediff --git a/frontend/rust-lib/flowy-test/Cargo.toml b/frontend/rust-lib/flowy-test/Cargo.tomlindex 1440506586..0a04c1d5f6 100644--- a/frontend/rust-lib/flowy-test/Cargo.toml+++ b/frontend/rust-lib/flowy-test/Cargo.toml@@ -6,7 +6,7 @@ edition = "2018"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html[dependencies]-flowy-sdk = { path = "../flowy-sdk"}+flowy-sdk = { path = "../flowy-sdk", default-features = false }flowy-user = { path = "../flowy-user"}flowy-net = { path = "../flowy-net"}flowy-folder = { path = "../flowy-folder", default-features = false}