Skip to content

Commit

Permalink
Improve melos configuration
Browse files Browse the repository at this point in the history
* rename workspace project to avoid conflicts in IDEA (2x dio project)
* add examples to melos
* add .gitignore where missing
  • Loading branch information
kuhnroyal committed Sep 11, 2023
1 parent 07a4002 commit 2487f07
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
@@ -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
7 changes: 1 addition & 6 deletions melos_dio.iml → example/melos_dio_example.iml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/.pub" />
<excludeFolder url="file://$MODULE_DIR$/build" />
<excludeFolder url="file://$MODULE_DIR$/dio/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/dio/.pub" />
<excludeFolder url="file://$MODULE_DIR$/dio/build" />
<excludeFolder url="file://$MODULE_DIR$/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/build" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Dart SDK" level="project" />
Expand Down
1 change: 1 addition & 0 deletions example_flutter_app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
.pub-cache/
.pub/
/build/
pubspec_overrides.yaml

# Web related
lib/generated_plugin_registrant.dart
Expand Down
2 changes: 1 addition & 1 deletion example_flutter_app/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: dio
name: dio_workspace
repository: https://github.com/cfug/dio

packages:
- dio
- plugins/*
- example*

ide:
intellij: true
27 changes: 27 additions & 0 deletions melos_dio_workspace.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/dio/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/dio/.pub" />
<excludeFolder url="file://$MODULE_DIR$/dio/build" />
<excludeFolder url="file://$MODULE_DIR$/example/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example/build" />
<excludeFolder url="file://$MODULE_DIR$/example_flutter_app/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/example_flutter_app/.pub" />
<excludeFolder url="file://$MODULE_DIR$/example_flutter_app/build" />
<excludeFolder url="file://$MODULE_DIR$/plugins/cookie_manager/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/plugins/cookie_manager/.pub" />
<excludeFolder url="file://$MODULE_DIR$/plugins/cookie_manager/build" />
<excludeFolder url="file://$MODULE_DIR$/plugins/http2_adapter/.dart_tool" />
<excludeFolder url="file://$MODULE_DIR$/plugins/http2_adapter/.pub" />
<excludeFolder url="file://$MODULE_DIR$/plugins/http2_adapter/build" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Dart SDK" level="project" />
<orderEntry type="library" name="Dart Packages" level="project" />
</component>
</module>
13 changes: 9 additions & 4 deletions plugins/native_dio_adapter/.gitignore
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2487f07

Please sign in to comment.