gibahjoe / openapi-generator-dart

Openapi Generator for Dart/Flutter
BSD 3-Clause "New" or "Revised" License
128 stars 34 forks source link

Builder Clean support #19

Open robertcsakany opened 4 years ago

robertcsakany commented 4 years ago

Is there any way to remove generated files with the build runner clean - like other builder supported genrators?

gibahjoe commented 4 years ago

Hi @robertcsakany,

Because this generator generates project files using an external java library, it might not be possible to hook into build_runner clean, to the best of my knowledge. Please tell me a use case for this and i can find a workaround or better still, a PR will be most helpfull

robertcsakany commented 4 years ago

Okay, thanks. I will investigate this. I think if we are able to collect a file list from openAPI generator which files are affected with generaration on that case its possible to calclulate the clean step.