2019-02-01 08:46:38 -05:00
|
|
|
package(default_visibility = [
|
|
|
|
"//modules/playground:__subpackages__",
|
|
|
|
"//packages:__subpackages__",
|
|
|
|
])
|
2018-07-27 16:49:22 -04:00
|
|
|
|
|
|
|
exports_files(["package.json"])
|
|
|
|
|
2019-02-26 07:30:44 -05:00
|
|
|
load("//tools:defaults.bzl", "ng_module")
|
|
|
|
|
2018-07-27 16:49:22 -04:00
|
|
|
ng_module(
|
|
|
|
name = "testing",
|
2018-08-14 19:18:26 -04:00
|
|
|
testonly = True,
|
2018-07-27 16:49:22 -04:00
|
|
|
srcs = glob(
|
|
|
|
["**/*.ts"],
|
|
|
|
),
|
|
|
|
module_name = "@angular/private/testing",
|
|
|
|
deps = [
|
|
|
|
"//packages/core",
|
|
|
|
],
|
|
|
|
)
|
2018-10-30 20:03:01 -04:00
|
|
|
|
|
|
|
## Controls if Ivy is enabled. (Temporary target until we permanently switch over to Ivy)
|
|
|
|
##
|
2019-11-22 15:14:39 -05:00
|
|
|
## This file generates `src/angular_ivy_enabled.ts` file which exports a truthy value
|
|
|
|
## whether Ivy should be enabled based on the `--defined=angular_ivy_enabled` value so
|
|
|
|
## runtime can detect which mode it is running in.
|
2018-10-30 20:03:01 -04:00
|
|
|
##
|
2019-11-22 15:14:39 -05:00
|
|
|
## See: `//.bazelrc` where `--define=angular_ivy_enabled=false` is defined as default.
|
|
|
|
## See: `./src/angular_ivy_enabled.ts` for more details.
|
2018-10-30 20:03:01 -04:00
|
|
|
genrule(
|
2019-11-22 15:14:39 -05:00
|
|
|
name = "angular_ivy_enabled",
|
|
|
|
outs = ["src/angular_ivy_enabled.ts"],
|
|
|
|
cmd = "echo export const ivyEnabled = \"'True'.toString() == '$(angular_ivy_enabled)'\"\; > $@",
|
2018-10-30 20:03:01 -04:00
|
|
|
)
|