forked from angular/universal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
63 lines (57 loc) · 1.26 KB
/
BUILD.bazel
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ng_package", "ng_test_library")
package(default_visibility = ["//visibility:public"])
ng_module(
name = "socket-engine",
srcs = glob([
"*.ts",
"src/**/*.ts",
]),
module_name = "@nguniversal/socket-engine",
deps = [
"//modules/common/engine",
"@npm//@angular/core",
],
)
ng_package(
name = "npm_package",
srcs = [
":package.json",
],
entry_point = ":index.ts",
readme_md = ":README.md",
tags = ["release"],
deps = [
":socket-engine",
],
)
# NgModule used only for tests.
ng_module(
name = "testing",
srcs = glob([
"testing/**/*.ts",
]),
module_name = "@nguniversal/socket-engine/testing",
deps = [
"@npm//@angular/platform-browser",
"@npm//@angular/platform-server",
],
)
ng_test_library(
name = "unit_test_lib",
srcs = glob([
"spec/**/*.spec.ts",
]),
deps = [
":socket-engine",
":testing",
"@npm//@angular/platform-browser",
"@npm//@angular/platform-server",
"@npm//domino",
"@npm//xhr2",
"@npm//zone.js",
],
)
jasmine_node_test(
name = "unit_test",
srcs = [":unit_test_lib"],
)