mikededo / dartBarrelFileGenerator

VSCode extension that generates barrel files for Dart projects
MIT License
25 stars 9 forks source link

Generate single file without generating in its sub folders #56

Closed murataksuu closed 2 years ago

murataksuu commented 2 years ago

If I have a file directory like

lib/test1/example1.dart
lib/test2/example2.dart
lib/test3/example3.dart
lib/test4/example4.dart

Test directories contain only one file. For these, 4 files will be created: test1.dart, test2.dart, test3.dart, test4.dart.

It might be better to merge it into one file instead: lib/<file-name>.dart

mikededo commented 2 years ago

Thanks for opening an issue @murataksuu!

Hmm, I like what you are proposing. I could add a new option that would:

What do you think?

murataksuu commented 2 years ago

It looks very good. We will be able to export our libraries containing many files in a single file in a short time. Without allowing confusion. Thank you

mikededo commented 2 years ago

I will try to work on it this weekend. I will keep you noticed 😃

mikededo commented 2 years ago

Feature added in v4.0.0 which should be life now! Thank you for your proposal, give me any feedback you can 💪🏼!

Star the project and recommend it to your fellow developers to help the extension grow 😄

murataksuu commented 2 years ago

Wonderful! Thank you for your interest.