-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.yaml
31 lines (30 loc) · 831 Bytes
/
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
targets:
$default:
builders:
auto_route_generator:auto_route_generator: # this for @RoutePage
enabled: true
generate_for:
- lib/routes/**
- lib/core/features/**_screen.dart
- lib/features/**_screen.dart
options:
enable_cached_builds: true
auto_route_generator:auto_router_generator: # this for @AutoRouterConfig
enabled: true
generate_for:
- lib/routes/app_router.dart
options:
enable_cached_builds: true
global_options:
# json_serializable:
# runs_before:
# - retrofit_generator
dart_mappable_builder:
options:
renameMethods:
fromJson: fromJsonString
toJson: toJsonString
fromMap: fromJson
toMap: toJson
runs_before:
- retrofit_generator