forked from angular/zone.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
43 lines (39 loc) · 1.09 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
load("@build_bazel_rules_nodejs//:defs.bzl", "npm_package", "rollup_bundle")
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
load("//lib:bundle.bzl", "ES2015_BUNDLES", "ES5_BUNDLES", "ES5_GLOBAL_BUNDLES")
exports_files([
"tsconfig.json",
"tsconfig-node.json",
"angular_license.txt",
])
npm_package(
name = "npm_package",
srcs = [
"CHANGELOG.md",
"LICENSE",
"LICENSE.wrapped",
"README.md",
"package.json",
],
deps = [
"//dist:zone_externs",
"//lib",
] + ["//dist:" + b + "-dist" for b in ES5_BUNDLES] + ["//dist:" + b + "-dist" for b in ES2015_BUNDLES] + ["//dist:" + b + "-dist" for b in ES5_GLOBAL_BUNDLES] + ["//dist:zone_d_ts"],
)
ts_library(
name = "npm_package_spec_lib",
testonly = True,
srcs = ["test/npm_package/npm_package.spec.ts"],
deps = [
"@npm//@types",
],
)
jasmine_node_test(
name = "test_npm_package",
srcs = [":npm_package_spec_lib"],
data = [
":npm_package",
"@npm//shelljs",
],
)