File tree Expand file tree Collapse file tree 1 file changed +65
-0
lines changed
packages/schematics/update Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright Google Inc. All Rights Reserved.
2+ #
3+ # Use of this source code is governed by an MIT-style license that can be
4+ # found in the LICENSE file at https://angular.io/license
5+
6+ licenses (["notice" ]) # MIT
7+
8+ load ("//tools:defaults.bzl" , "ts_library" )
9+ load ("@build_bazel_rules_nodejs//:defs.bzl" , "jasmine_node_test" )
10+
11+ package (default_visibility = ["//visibility:public" ])
12+
13+ ts_library (
14+ name = "update" ,
15+ srcs = glob (
16+ include = ["**/*.ts" ],
17+ exclude = [
18+ "**/*_spec.ts" ,
19+ "**/*_spec_large.ts" ,
20+ "**/*_benchmark.ts" ,
21+ ],
22+ ),
23+ deps = [
24+ "//packages/angular_devkit/core" ,
25+ "//packages/angular_devkit/schematics" ,
26+ "//packages/angular_devkit/schematics:tasks" ,
27+ "@rxjs" ,
28+ "@rxjs//operators" ,
29+ # @typings: node
30+ ],
31+ )
32+
33+ ts_library (
34+ name = "update_test_lib" ,
35+ srcs = glob (
36+ include = [
37+ "**/*_spec.ts" ,
38+ "**/*_spec_large.ts" ,
39+ ],
40+ exclude = [
41+ # The purify spec also depends on the webpack typings so we ignore it.
42+ # "src/purify/**",
43+ ],
44+ ),
45+ deps = [
46+ ":update" ,
47+ "//packages/angular_devkit/core" ,
48+ "//packages/angular_devkit/schematics" ,
49+ "//packages/angular_devkit/schematics:testing" ,
50+ "@rxjs" ,
51+ "@rxjs//operators" ,
52+ # @typings: jasmine
53+ # @typings: node
54+ ],
55+ )
56+
57+ # Disabled because 'collection.json' cannot be resolved in bazel, and all tests use it.
58+ # TODO(@filipesilva): figure out how to make data files resolve correctly.
59+ # jasmine_node_test(
60+ # name = "update_test",
61+ # srcs = [":update_test_lib"],
62+ # data = [
63+ # "collection.json"
64+ # ],
65+ # )
You can’t perform that action at this time.
0 commit comments