forked from dart-lang/dart-pad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yaml
33 lines (30 loc) · 980 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
targets:
$default:
builders:
# Don't clean up workshop examples, they need to be served.
build_web_compilers:dart_source_cleanup:
generate_for:
exclude:
- web/example/workshops/**.dart
build_web_compilers|entrypoint:
# Don't compile workshop examples.
generate_for:
exclude:
- web/example/workshops/**.dart
options:
dart2js_args:
- --minify
- --fast-startup
- -DPRE_NULL_SAFETY_SERVER_URL=https://v1.api.dartpad.dev/
- -DNULL_SAFETY_SERVER_URL=https://nullsafety.api.dartpad.dev/
json_serializable:
# Ignore workshop samples.
generate_for:
exclude:
- web/example/workshops/**.dart
global_options:
build_web_compilers:ddc:
options:
environment:
PRE_NULL_SAFETY_SERVER_URL: https://v1.api.dartpad.dev/
NULL_SAFETY_SERVER_URL: https://nullsafety.api.dartpad.dev/