-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathbuild.yaml
82 lines (76 loc) · 3.35 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
82
builders:
overReactBuilder:
import: "package:over_react/builder.dart"
builder_factories: ["overReactBuilder"]
build_extensions: {".dart" : [".over_react.g.dart"]}
auto_apply: dependents
build_to: cache
# Builder just for this package.
_over_react_local_builder:
import: "package:over_react/builder.dart"
builder_factories: ["overReactBuilder"]
build_extensions: {".dart" : [".over_react.g.dart"]}
auto_apply: none
build_to: source
targets:
$default:
builders:
over_react|_over_react_local_builder:
enabled: true
generate_for:
include:
- "lib/**"
- "test/**"
- "web/component1/**"
# The Dart 2 only boilerplate does not analyze cleanly without a build so the generated files need to be
# checked in.
- "example/boilerplate_versions/dart2_only/**"
exclude:
# These tests analyze cleanly without a build so the generated files do not need to be checked in.
- "test/over_react/component_declaration/builder_integration_tests/backwards_compatible/**"
- "test/over_react/component_declaration/builder_integration_tests/new_boilerplate/**"
- "test/over_react/component_declaration/non_null_safe_builder_integration_tests/backwards_compatible/**"
- "test/over_react/component_declaration/non_null_safe_builder_integration_tests/new_boilerplate/**"
# These test un-built base class behavior, and contain code that might look like declarations
# and should definitely not be built
- "test/over_react/component_declaration/builder_helpers_test.dart"
- "test/over_react/component_declaration/component_base_test.dart"
over_react|overReactBuilder:
enabled: true
generate_for:
include:
- "web/**"
- "example/**"
# These tests analyze cleanly without a build so the generated files do not need to be checked in.
- "test/over_react/component_declaration/builder_integration_tests/backwards_compatible/**"
- "test/over_react/component_declaration/builder_integration_tests/new_boilerplate/**"
- "test/over_react/component_declaration/non_null_safe_builder_integration_tests/backwards_compatible/**"
- "test/over_react/component_declaration/non_null_safe_builder_integration_tests/new_boilerplate/**"
exclude:
- "web/component1/**"
# The Dart 2 only boilerplate does not analyze cleanly without a build so the generated files need to be
# checked in.
- "example/boilerplate_versions/dart2_only/**"
# build_vm_compilers|entrypoint:
# generate_for:
# include:
# - "test/vm_tests/**"
# builder uses mirrors and will cause a build to fail when using build web compilers
# vm tests require the use of mirrors
build_web_compilers|ddc:
generate_for:
include:
- "example/**"
- "lib/**"
- "test/**"
- "web/**"
exclude:
- "lib/src/builder/**"
build_web_compilers|entrypoint:
generate_for:
- "example/**.dart"
- "test/*.browser_test.dart"
- "web/**/index.dart"
options:
dart2js_args:
- --no-minify