forked from Stacked-Org/generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yaml
81 lines (75 loc) · 2.43 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:
stacked_generator|stackedLocatorGenerator:
enabled: true
generate_for:
exclude:
- test
- .dart_tool
include:
- test/getit/integration_test/samples/*
- test/getit/integration_test/samples/**
stacked_generator|stackedLoggerGenerator:
enabled: true
generate_for:
exclude:
- test
- .dart_tool
include:
- test/logging/integration_test/samples/*
stacked_generator|stackedDialogGenerator:
enabled: true
generate_for:
exclude:
- test
- .dart_tool
include:
- test/dialogs/integration_test/samples/*
source_gen|combining_builder:
options:
ignore_for_file:
- "type=lint"
builders:
# Generate the router file and routes
stackedRouterGenerator:
import: "package:stacked_generator/builder.dart"
builder_factories: ["stackedRouterGenerator"]
build_extensions: { ".dart": [".router.dart"] }
auto_apply: dependents
build_to: source
# Generator the stacked locator service registrations
stackedLocatorGenerator:
import: "package:stacked_generator/builder.dart"
builder_factories: ["stackedLocatorGenerator"]
build_extensions: { ".dart": [".locator.dart"] }
auto_apply: dependents
build_to: source
# Generator the form view
stackedFormGenerator:
import: "package:stacked_generator/builder.dart"
builder_factories: ["stackedFormGenerator"]
build_extensions: { ".dart": [".form.dart"] }
auto_apply: dependents
build_to: source
# Generator the logger
stackedLoggerGenerator:
import: "package:stacked_generator/builder.dart"
builder_factories: ["stackedLoggerGenerator"]
build_extensions: { ".dart": [".logger.dart"] }
auto_apply: dependents
build_to: source
# Generator the dialogs
stackedDialogGenerator:
import: "package:stacked_generator/builder.dart"
builder_factories: ["stackedDialogGenerator"]
build_extensions: { ".dart": [".dialogs.dart"] }
auto_apply: dependents
build_to: source
# Generator the bottomsheets
stackedBottomsheetGenerator:
import: "package:stacked_generator/builder.dart"
builder_factories: ["stackedBottomsheetGenerator"]
build_extensions: { ".dart": [".bottomsheets.dart"] }
auto_apply: dependents
build_to: source