Replies: 1 comment
-
I managed to make it work, here is my new yaml targets:
$default:
builders:
riverpod_generator:
options:
provider_name_prefix: ""
provider_family_name_prefix: ""
provider_name_suffix: "Provider"
provider_family_name_suffix: "Provider"
source_gen|combining_builder:
generate_for:
- lib/**.dart
options:
build_extensions:
{
"lib/src/data/dtos/{{file}}.dart": "lib/src/data/dtos/generated/{{file}}.g.dart",
"lib/src/domain/states/{{file}}.dart": "lib/src/domain/states/generated/{{file}}.g.dart", # Forgot to add this
}
freezed|freezed:
options:
build_extensions:
"^lib/src/data/dtos/{{file}}.dart": "lib/src/data/dtos/generated/{{file}}.freezed.dart" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello !
I'm doing some cleaning in my project, therefore I want to move my generated files to an other folder to improve the readability. I've managed to move freezed files but not riverpod This is my build.yaml
part 'generated/my_notifier.g.dart';
in my notifiersHow can I move my riverpods file in a generated folder ? I refered to https://github.com/rrousselGit/riverpod/blame/master/packages/riverpod_generator/build.yaml but didn't manage to make it work
Beta Was this translation helpful? Give feedback.
All reactions