forked from deriv-com/flutter-deriv-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yaml
37 lines (37 loc) · 993 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
32
33
34
35
36
37
targets:
$default:
builders:
flutter_deriv_api|api:
enabled: true
generate_for:
- lib/basic_api/generated/*_send.json
- lib/basic_api/generated/*_receive.json
flutter_deriv_api|apiHelper:
enabled: true
builders:
api:
import: './api_builder.dart'
builder_factories: ["apiBuilder"]
auto_apply: root_package
build_extensions: {".json": [".dart"]}
is_optional: False
build_to: source
runs_before:
- flutter_deriv_api|apiHelper
defaults:
generate_for:
include:
- lib/basic_api/generated/**
apiHelper:
import: './api_helper_builder.dart'
builder_factories: ["apiHelperBuilder"]
build_extensions: {".dart": [".helper.dart"]}
is_optional: False
build_to: source
required_inputs: ["api"]
runs_before:
- json_serializable|json_serializable
defaults:
generate_for:
include:
- lib/basic_api/helper/response_mapper.dart