forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
70 lines (63 loc) Β· 1.68 KB
/
BUILD
File metadata and controls
70 lines (63 loc) Β· 1.68 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
# Copyright Google Inc. All Rights Reserved.
#
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file at https://angular.io/license
licenses(["notice"]) # MIT
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
load("@npm_bazel_typescript//:defs.bzl", "ts_library")
load("@build_bazel_rules_nodejs//:defs.bzl", "npm_package")
package(default_visibility = ["//visibility:public"])
ts_library(
name = "build_optimizer",
srcs = glob(
include = ["src/**/*.ts"],
exclude = [
# TODO(@filipesilva): shouldn't need to exclude the cli files but can't exclude them
# from jasmine_node_test.
"src/**/cli.ts",
"src/**/*_spec.ts",
"src/**/*_spec_large.ts",
"src/**/*_benchmark.ts",
],
),
deps = [
"@npm//@types/node",
"@npm//@types/source-map",
"@npm//@types/webpack",
"@npm//typescript",
],
)
ts_library(
name = "build_optimizer_test_lib",
testonly = True,
srcs = glob(
include = [
"src/**/*_spec.ts",
"src/**/*_spec_large.ts",
],
),
# @external_begin
tsconfig = "//:tsconfig-test.json",
deps = [
":build_optimizer",
"//packages/angular_devkit/core",
"@npm//@types/jasmine",
"@npm//@types/node",
"@npm//@types/source-map",
],
# @external_end
)
jasmine_node_test(
name = "build_optimizer_test",
srcs = [":build_optimizer_test_lib"],
deps = [
"@npm//jasmine",
"@npm//source-map",
],
)
npm_package(
name = "npm_package",
deps = [
":build_optimizer",
],
)