1 | load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
|
---|
2 | load("//tools:defaults.bzl", "ts_library")
|
---|
3 |
|
---|
4 | # Copyright Google Inc. All Rights Reserved.
|
---|
5 | #
|
---|
6 | # Use of this source code is governed by an MIT-style license that can be
|
---|
7 | # found in the LICENSE file at https://angular.io/license
|
---|
8 | licenses(["notice"])
|
---|
9 |
|
---|
10 | package(default_visibility = ["//visibility:public"])
|
---|
11 |
|
---|
12 | ts_library(
|
---|
13 | name = "tasks",
|
---|
14 | srcs = glob(
|
---|
15 | include = ["**/*.ts"],
|
---|
16 | exclude = [
|
---|
17 | "node/**/*.ts",
|
---|
18 | "**/*_spec.ts",
|
---|
19 | "**/*_benchmark.ts",
|
---|
20 | "tslint-fix/test/**/*",
|
---|
21 | ],
|
---|
22 | ),
|
---|
23 | data = ["package.json"],
|
---|
24 | module_name = "@angular-devkit/schematics/tasks",
|
---|
25 | module_root = "index.d.ts",
|
---|
26 | # The attribute below is needed in g3 to turn off strict typechecking
|
---|
27 | # strict_checks = False,
|
---|
28 | deps = [
|
---|
29 | "//packages/angular_devkit/core",
|
---|
30 | "//packages/angular_devkit/core/node",
|
---|
31 | "//packages/angular_devkit/schematics",
|
---|
32 | "@npm//@types/node",
|
---|
33 | "@npm//ora",
|
---|
34 | "@npm//rxjs",
|
---|
35 | "@npm//tslint",
|
---|
36 | "@npm//typescript",
|
---|
37 | ],
|
---|
38 | )
|
---|
39 |
|
---|
40 | ts_library(
|
---|
41 | name = "tasks_test_lib",
|
---|
42 | testonly = True,
|
---|
43 | srcs = glob(
|
---|
44 | include = [
|
---|
45 | "**/*_spec.ts",
|
---|
46 | "tslint-fix/test/**/*.ts",
|
---|
47 | ],
|
---|
48 | exclude = [
|
---|
49 | "node/**/*.ts",
|
---|
50 | ],
|
---|
51 | ),
|
---|
52 | data = [
|
---|
53 | "tslint-fix/test/collection.json",
|
---|
54 | "tslint-fix/test/rules/customRuleRule.js",
|
---|
55 | ],
|
---|
56 | # The attribute below is needed in g3 to turn off strict typechecking
|
---|
57 | # strict_checks = False,
|
---|
58 | deps = [
|
---|
59 | ":tasks",
|
---|
60 | "//packages/angular_devkit/core",
|
---|
61 | "//packages/angular_devkit/core/node",
|
---|
62 | "//packages/angular_devkit/core/node/testing",
|
---|
63 | "//packages/angular_devkit/schematics",
|
---|
64 | "//packages/angular_devkit/schematics/testing",
|
---|
65 | "@npm//rxjs",
|
---|
66 | ],
|
---|
67 | )
|
---|
68 |
|
---|
69 | jasmine_node_test(
|
---|
70 | name = "tasks_test",
|
---|
71 | srcs = [":tasks_test_lib"],
|
---|
72 | deps = [
|
---|
73 | "@npm//jasmine",
|
---|
74 | "@npm//source-map",
|
---|
75 | ],
|
---|
76 | )
|
---|