2018-02-13 14:26:06 -05:00
|
|
|
load("//packages/bazel:index.bzl", "ng_module")
|
|
|
|
|
|
|
|
ng_module(
|
|
|
|
name = "test_module",
|
2018-10-25 23:47:28 -04:00
|
|
|
testonly = True,
|
2018-02-13 14:26:06 -05:00
|
|
|
srcs = glob(["*.ts"]),
|
2018-10-16 16:20:00 -04:00
|
|
|
compiler = "//packages/bazel/src/ngc-wrapped",
|
2018-02-13 14:26:06 -05:00
|
|
|
entry_point = "index.ts",
|
2018-03-15 21:04:34 -04:00
|
|
|
flat_module_out_file = "flat_module_filename",
|
2018-02-13 14:26:06 -05:00
|
|
|
module_name = "some_npm_module",
|
2018-10-16 16:20:00 -04:00
|
|
|
ng_xi18n = "//packages/bazel/src/ngc-wrapped:xi18n",
|
2018-10-04 16:14:14 -04:00
|
|
|
node_modules = "@ngdeps//typescript:typescript__typings",
|
2018-10-25 23:47:28 -04:00
|
|
|
tags = [
|
|
|
|
"fixme-ivy-aot",
|
|
|
|
],
|
2018-10-04 16:14:14 -04:00
|
|
|
deps = [
|
|
|
|
"//packages/core",
|
|
|
|
"@ngdeps//@types",
|
|
|
|
],
|
2018-02-13 14:26:06 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
load(":extract_flat_module_index.bzl", "extract_flat_module_index")
|
|
|
|
|
|
|
|
extract_flat_module_index(
|
|
|
|
name = "flat_module_index",
|
2018-10-25 23:47:28 -04:00
|
|
|
testonly = True,
|
2018-02-13 14:26:06 -05:00
|
|
|
deps = [":test_module"],
|
|
|
|
)
|
|
|
|
|
2018-09-11 21:11:32 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test")
|
2018-02-13 14:26:06 -05:00
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
|
|
|
srcs = ["spec.js"],
|
|
|
|
data = [":flat_module_index"],
|
2018-10-16 02:24:22 -04:00
|
|
|
tags = [
|
2018-10-23 12:54:12 -04:00
|
|
|
"fixme-ivy-aot",
|
2018-10-16 02:24:22 -04:00
|
|
|
],
|
2018-02-13 14:26:06 -05:00
|
|
|
)
|