From 2487f078f2c4dcadda07025fc7a17e9d25b73ef8 Mon Sep 17 00:00:00 2001 From: Peter Leibiger Date: Mon, 11 Sep 2023 14:53:15 +0200 Subject: [PATCH] Improve melos configuration * rename workspace project to avoid conflicts in IDEA (2x dio project) * add examples to melos * add .gitignore where missing --- .idea/modules.xml | 4 ++- example/.gitignore | 30 +++++++++++++++++++ .../melos_dio_example.iml | 7 +---- example_flutter_app/.gitignore | 1 + example_flutter_app/pubspec.yaml | 2 +- melos.yaml | 3 +- melos_dio_workspace.iml | 27 +++++++++++++++++ plugins/native_dio_adapter/.gitignore | 13 +++++--- 8 files changed, 74 insertions(+), 13 deletions(-) create mode 100644 example/.gitignore rename melos_dio.iml => example/melos_dio_example.iml (64%) create mode 100644 melos_dio_workspace.iml diff --git a/.idea/modules.xml b/.idea/modules.xml index dc369a6e8..b86b60dda 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -4,9 +4,11 @@ + + - + \ No newline at end of file diff --git a/example/.gitignore b/example/.gitignore new file mode 100644 index 000000000..0a1945d6d --- /dev/null +++ b/example/.gitignore @@ -0,0 +1,30 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +.dart_tool/ +.flutter-plugins +.packages +.pub-cache/ +.pub/ +build/ +pubspec_overrides.yaml diff --git a/melos_dio.iml b/example/melos_dio_example.iml similarity index 64% rename from melos_dio.iml rename to example/melos_dio_example.iml index c01170bea..389d07a14 100644 --- a/melos_dio.iml +++ b/example/melos_dio_example.iml @@ -4,15 +4,10 @@ + - - - - - - diff --git a/example_flutter_app/.gitignore b/example_flutter_app/.gitignore index 0fa6b675c..6606cd9f6 100644 --- a/example_flutter_app/.gitignore +++ b/example_flutter_app/.gitignore @@ -30,6 +30,7 @@ .pub-cache/ .pub/ /build/ +pubspec_overrides.yaml # Web related lib/generated_plugin_registrant.dart diff --git a/example_flutter_app/pubspec.yaml b/example_flutter_app/pubspec.yaml index 6ec61c5d0..7660ed17f 100644 --- a/example_flutter_app/pubspec.yaml +++ b/example_flutter_app/pubspec.yaml @@ -1,4 +1,4 @@ -name: flutter_app +name: dio_flutter_example description: A new Flutter application for dio test # The following line prevents the package from being accidentally published to diff --git a/melos.yaml b/melos.yaml index 853a62664..f4b73cc36 100644 --- a/melos.yaml +++ b/melos.yaml @@ -1,9 +1,10 @@ -name: dio +name: dio_workspace repository: https://github.com/cfug/dio packages: - dio - plugins/* + - example* ide: intellij: true diff --git a/melos_dio_workspace.iml b/melos_dio_workspace.iml new file mode 100644 index 000000000..a559d9797 --- /dev/null +++ b/melos_dio_workspace.iml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/native_dio_adapter/.gitignore b/plugins/native_dio_adapter/.gitignore index 8d1fae670..48f7ab40e 100644 --- a/plugins/native_dio_adapter/.gitignore +++ b/plugins/native_dio_adapter/.gitignore @@ -1,15 +1,20 @@ -# Files and directories created by pub. +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id .dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies .packages +.pub-cache/ +.pub/ +/build/ +pubspec_overrides.yaml # IntelliJ related *.ipr *.iws .idea/ -# Conventional directory for build outputs. -build/ - # Omit committing pubspec.lock for library packages; see # https://dart.dev/guides/libraries/private-files#pubspeclock. pubspec.lock