-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Expand file tree
/
Copy pathBUILD.bazel
More file actions
83 lines (75 loc) · 1.92 KB
/
Copy pathBUILD.bazel
File metadata and controls
83 lines (75 loc) · 1.92 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
load("@aspect_rules_ts//ts:defs.bzl", rules_js_tsconfig = "ts_config")
load("//tools:defaults.bzl", "ng_package", "ng_project", "ng_web_test_suite")
package(default_visibility = ["//visibility:public"])
rules_js_tsconfig(
name = "tsconfig-test",
src = "tsconfig-test.json",
deps = [
"//:node_modules/@types/google.maps",
"//:node_modules/@types/jasmine",
"//:node_modules/@types/node",
"//src:test-tsconfig",
],
)
rules_js_tsconfig(
name = "tsconfig",
src = "tsconfig-build.json",
deps = [
"//:node_modules/@types/google.maps",
"//src:build-tsconfig",
],
)
ng_project(
name = "google-maps",
srcs = glob(
["**/*.ts"],
exclude = [
"**/*.spec.ts",
],
),
tsconfig = ":tsconfig",
deps = [
"//:node_modules/@angular/common",
"//:node_modules/@angular/core",
"//:node_modules/@types/google.maps",
"//:node_modules/rxjs",
"//src:dev_mode_types",
],
)
# Creates the @angular/google-maps package published to npm
ng_package(
name = "npm_package",
package_name = "@angular/google-maps",
srcs = ["package.json"],
nested_packages = ["//src/google-maps/schematics:npm_package"],
tags = ["release-package"],
visibility = [
"//:__pkg__",
"//goldens:__pkg__",
"//integration:__subpackages__",
],
deps = [":google-maps"],
)
filegroup(
name = "source-files",
srcs = glob(["**/*.ts"]),
)
ng_project(
name = "unit_test_sources",
testonly = True,
srcs = glob(
["**/*.spec.ts"],
exclude = ["**/*.e2e.spec.ts"],
),
tsconfig = ":tsconfig-test",
deps = [
":google-maps",
"//:node_modules/@angular/core",
"//:node_modules/@angular/platform-browser",
"//src/google-maps/testing",
],
)
ng_web_test_suite(
name = "unit_tests",
deps = [":unit_test_sources"],
)