mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 14:02:43 +08:00
Contains fixes related to the symlink behaviour inside of bazel. Without it, webpack needs to be configured to be aware of symlinks and preserve the paths.
76 lines
1.9 KiB
Python
76 lines
1.9 KiB
Python
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
|
|
load("@npm_bazel_typescript//:index.bzl", "ts_library")
|
|
|
|
# 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
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
licenses(["notice"]) # MIT License
|
|
|
|
ts_library(
|
|
name = "node",
|
|
srcs = glob(
|
|
include = ["**/*.ts"],
|
|
exclude = [
|
|
"testing/**/*.ts",
|
|
"**/*_spec.ts",
|
|
"**/*_spec_large.ts",
|
|
"**/*_benchmark.ts",
|
|
],
|
|
),
|
|
devmode_module = "commonjs",
|
|
devmode_target = "es2018",
|
|
module_name = "@angular-devkit/core/node",
|
|
module_root = "index.d.ts",
|
|
# The attribute below is needed in g3 to turn off strict typechecking
|
|
# strict_checks = False,
|
|
deps = [
|
|
"//packages/angular_devkit/core",
|
|
"@npm//@types/node",
|
|
"@npm//rxjs",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "node_test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
include = [
|
|
"**/*_spec.ts",
|
|
"**/*_spec_large.ts",
|
|
],
|
|
exclude = [
|
|
"testing/**/*.ts",
|
|
],
|
|
),
|
|
devmode_module = "commonjs",
|
|
devmode_target = "es2018",
|
|
# @external_begin
|
|
tsconfig = "//:tsconfig-test.json",
|
|
# @external_end
|
|
deps = [
|
|
":node",
|
|
"//packages/angular_devkit/core",
|
|
"//tests/angular_devkit/core/node/jobs:jobs_test_lib",
|
|
"@npm//@types/jasmine",
|
|
"@npm//@types/node",
|
|
"@npm//rxjs",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "node_test",
|
|
srcs = [":node_test_lib"],
|
|
# TODO: Audit tests to determine if tests can be run in RBE environments
|
|
local = True,
|
|
deps = [
|
|
"@npm//chokidar",
|
|
"@npm//temp",
|
|
# @node_module: ajv
|
|
# @node_module: fast_json_stable_stringify
|
|
# @node_module: magic_string
|
|
],
|
|
)
|