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"])
|
|
|
|
|
|
|
|
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)
|
|
|
|
##
|
2018-11-02 00:23:06 -04:00
|
|
|
## This file generates `src/bazel_define_compile_value.ts` file which reexports
|
2018-10-30 20:03:01 -04:00
|
|
|
## `--define=compile` value as `bazelDefineCompileValue` symbols so that runtime can detect
|
|
|
|
## which mode it is running in.
|
|
|
|
##
|
|
|
|
## See: `//.bazelrc` where `--define=ivy=legacy` is defined as default.
|
|
|
|
## See: `./src/bazel_define_compile_value.ts` for more details.
|
|
|
|
genrule(
|
|
|
|
name = "bazel_define_compile_value",
|
|
|
|
outs = ["src/bazel_define_compile_value.ts"],
|
|
|
|
cmd = "echo export const bazelDefineCompileValue = \"'$(compile)'\"\; > $@",
|
|
|
|
)
|