forked from deriv-com/flutter-deriv-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.yaml
57 lines (54 loc) · 1.44 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
targets:
$default:
builders:
flutter_deriv_api|apiParser:
enabled: true
generate_for:
- lib/basic_api/generated/*_receive.json
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:
apiParser:
import: "./api_parser.dart"
builder_factories: ["apiParser"]
auto_apply: root_package
build_extensions: { ".json": ["_result.dart"] }
is_optional: False
build_to: source
runs_before:
- flutter_deriv_api|api
defaults:
generate_for:
include:
- lib/basic_api/generated/*_receive.json
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
defaults:
generate_for:
include:
- lib/basic_api/helper/response_mapper.dart