[6a3a178] | 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 = "tools",
|
---|
| 14 | srcs = glob(
|
---|
| 15 | include = ["**/*.ts"],
|
---|
| 16 | exclude = [
|
---|
| 17 | "**/*_spec.ts",
|
---|
| 18 | "**/*_benchmark.ts",
|
---|
| 19 | "test/**/*.ts",
|
---|
| 20 | ],
|
---|
| 21 | ),
|
---|
| 22 | data = ["package.json"],
|
---|
| 23 | module_name = "@angular-devkit/schematics/tools",
|
---|
| 24 | module_root = "index.d.ts",
|
---|
| 25 | # The attribute below is needed in g3 to turn off strict typechecking
|
---|
| 26 | # strict_checks = False,
|
---|
| 27 | deps = [
|
---|
| 28 | "//packages/angular_devkit/core",
|
---|
| 29 | "//packages/angular_devkit/core/node",
|
---|
| 30 | "//packages/angular_devkit/schematics",
|
---|
| 31 | "//packages/angular_devkit/schematics/tasks",
|
---|
| 32 | "//packages/angular_devkit/schematics/tasks/node",
|
---|
| 33 | "@npm//@types/node",
|
---|
| 34 | "@npm//rxjs",
|
---|
| 35 | ],
|
---|
| 36 | )
|
---|
| 37 |
|
---|
| 38 | ts_library(
|
---|
| 39 | name = "tools_test_lib",
|
---|
| 40 | testonly = True,
|
---|
| 41 | srcs = glob(
|
---|
| 42 | include = [
|
---|
| 43 | "**/*_spec.ts",
|
---|
| 44 | "test/**/*.ts",
|
---|
| 45 | ],
|
---|
| 46 | ),
|
---|
| 47 | deps = [
|
---|
| 48 | ":tools",
|
---|
| 49 | "//packages/angular_devkit/core",
|
---|
| 50 | "//packages/angular_devkit/core/node",
|
---|
| 51 | "//packages/angular_devkit/schematics",
|
---|
| 52 | "//packages/angular_devkit/schematics/tasks",
|
---|
| 53 | "//packages/angular_devkit/schematics/testing",
|
---|
| 54 | "//tests/angular_devkit/schematics/tools/file-system-engine-host:file_system_engine_host_test_lib",
|
---|
| 55 | "@npm//rxjs",
|
---|
| 56 | ],
|
---|
| 57 | )
|
---|
| 58 |
|
---|
| 59 | jasmine_node_test(
|
---|
| 60 | name = "tools_test",
|
---|
| 61 | srcs = [":tools_test_lib"],
|
---|
| 62 | deps = [
|
---|
| 63 | "@npm//jasmine",
|
---|
| 64 | "@npm//source-map",
|
---|
| 65 | ],
|
---|
| 66 | )
|
---|