forked from simolus3/sqlite3.dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.yaml
42 lines (40 loc) · 1.36 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
targets:
# This setup exists so that the main entrypoint (web/main.dart) gets compiled
# with dartdevc for debug builds while the worker is compiled with dart2js
# (since workers don't support the JS moduled emitted by dartdevc).
# In release builds (`--release` on the CLI), both entrypoints are compiled
# with dart2js.
#
# If you're ok with compiling everything with dart2js, just use
# `compiler: dartj2s` on the options of the default target and ignore the two
# additional targets here.
dart2js_archives:
auto_apply_builders: false
dependencies: [":$default", ":worker"]
builders:
build_web_compilers:dart2js_archive_extractor:
enabled: true
worker:
auto_apply_builders: false
dependencies: [":$default"]
builders:
build_web_compilers:entrypoint:
enabled: true
generate_for:
- example/web/worker.dart
options:
compiler: dart2js
build_web_compilers:dart2js_archive_extractor:
enabled: false
$default:
builders:
build_web_compilers:entrypoint:
generate_for:
include:
- "example/web/**"
# This one is compiled in the other target
exclude:
- "example/web/worker.dart"
# We have a designated target for this step.
build_web_compilers:dart2js_archive_extractor:
enabled: false