forked from dart-lang/dart-pad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yaml
40 lines (37 loc) · 1.27 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
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:
- --fast-startup
- --minify
- --no-source-maps
- -DSERVER_URL=https://stable.api.dartpad.dev/
- -DSTABLE_SERVER_URL=https://stable.api.dartpad.dev/
- -DBETA_SERVER_URL=https://beta.api.dartpad.dev/
- -DDEV_SERVER_URL=https://dev.api.dartpad.dev/
- -DOLD_SERVER_URL=https://old.api.dartpad.dev/
json_serializable:
# Ignore workshop samples.
generate_for:
exclude:
- web/example/workshops/**.dart
global_options:
build_web_compilers:ddc:
options:
environment:
SERVER_URL: https://stable.api.dartpad.dev/
STABLE_SERVER_URL: https://stable.api.dartpad.dev/
BETA_SERVER_URL: https://beta.api.dartpad.dev/
DEV_SERVER_URL: https://dev.api.dartpad.dev/
OLD_SERVER_URL: https://old.api.dartpad.dev/