-
Notifications
You must be signed in to change notification settings - Fork 21
/
build.yaml
81 lines (70 loc) · 2.7 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
targets:
$default:
builders:
# Serializer
json_serializable:
options:
explicit_to_json: true
# By default, field_rename: none, More options —
# snake, kebab, pascal, etc. To use, uncomment this below line —
# field_rename: snake
generate_for:
include:
# data layer:
- lib/data/model/**.dart
- lib/data/services/**_request.dart
- lib/data/services/**_response.dart
- lib/data/response_objects/**.dart
# domain layer:
# Note: We added domain layer? Why? Because sometimes, we may need
# some freezed classes to be saved on storage where toJson() is required.
# We should not allow the entire `/entities` folder here, as entities don't need fromJson(), toJson(), etc.
# Specifying exact file will help build runner to run fast.
- lib/domain/entities/user.dart
# Retrofit Classes / Remote Data Sources
retrofit_generator:
generate_for:
include:
- lib/data/**/data_sources/remote/*_remote_data_source.dart
# Data Classes, Cloning
freezed:freezed:
generate_for:
include:
# data layer:
- lib/data/model/**.dart
- lib/data/services/**_request.dart
- lib/data/services/**_response.dart
- lib/data/response_objects/**.dart
# domain layer:
- lib/domain/common/**.dart
- lib/domain/entities/**.dart
# presentation layer:
- lib/presentation/features/**_state.dart
# Dependency Injection
injectable_generator:injectable_config_builder:
generate_for:
include:
- lib/injection/injector.dart
injectable_generator:injectable_builder:
generate_for:
include:
- lib/injection/injector.dart
- lib/injection/modules/*_module.dart
# data
- lib/data/**_config.dart
- lib/data/**_client.dart
- lib/data/**/data_sources/remote/*_remote_data_source.dart
- lib/data/services/**_service_impl.dart
- lib/data/services/**_remapper.dart
- lib/data/preferences/**_preferences.dart
# domain
- lib/domain/use_cases/**_use_case.dart
# presentation
- lib/presentation/features/**_cubit.dart
# Routing
auto_route_generator:
generate_for:
include:
- lib/presentation/routes/router.dart
- lib/presentation/features/**_screen.dart
- lib/presentation/features/**_page.dart