forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: move BUILD.bazel files for secondary entry points into own folder
Without this change, module names will be computed with incorrect paths containing duplicate path fragments (e.g. `@angular-devkit/architect/testing/testing/test-logger`).
- Loading branch information
1 parent
f2d2cd1
commit 5f3f736
Showing
20 changed files
with
413 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# 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_typescript//:index.bzl", "ts_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
|
||
ts_library( | ||
name = "node", | ||
srcs = glob( | ||
include = ["**/*.ts"], | ||
exclude = [ | ||
"**/*_spec.ts", | ||
"**/*_spec_large.ts", | ||
], | ||
), | ||
module_name = "@angular-devkit/architect/node", | ||
module_root = "index.d.ts", | ||
# strict_checks = False, | ||
deps = [ | ||
"//packages/angular_devkit/architect", | ||
"//packages/angular_devkit/core", | ||
"//packages/angular_devkit/core/node", | ||
"@npm//@types/node", | ||
"@npm//rxjs", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 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_typescript//:index.bzl", "ts_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
|
||
ts_library( | ||
name = "testing", | ||
srcs = glob( | ||
include = ["**/*.ts"], | ||
exclude = [ | ||
"**/*_spec.ts", | ||
"**/*_spec_large.ts", | ||
], | ||
), | ||
module_name = "@angular-devkit/architect/testing", | ||
module_root = "index.d.ts", | ||
deps = [ | ||
"//packages/angular_devkit/architect", | ||
"//packages/angular_devkit/core", | ||
"//packages/angular_devkit/core/node", | ||
"@npm//@types/node", | ||
"@npm//rxjs", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# 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"]) | ||
|
||
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test") | ||
load("@npm_bazel_typescript//:index.bzl", "ts_library") | ||
|
||
licenses(["notice"]) # MIT License | ||
|
||
|
||
ts_library( | ||
name = "node", | ||
srcs = glob( | ||
include = ["**/*.ts"], | ||
exclude = [ | ||
"testing/**/*.ts", | ||
"**/*_spec.ts", | ||
"**/*_spec_large.ts", | ||
"**/*_benchmark.ts", | ||
], | ||
), | ||
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", | ||
], | ||
), | ||
# @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 | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 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"]) | ||
|
||
load("@npm_bazel_typescript//:index.bzl", "ts_library") | ||
|
||
licenses(["notice"]) # MIT License | ||
|
||
|
||
ts_library( | ||
name = "testing", | ||
srcs = glob( | ||
include = ["**/*.ts"], | ||
exclude = [ | ||
"**/*_spec.ts", | ||
"**/*_spec_large.ts", | ||
"**/*_benchmark.ts", | ||
], | ||
), | ||
module_name = "@angular-devkit/core/node/testing", | ||
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", | ||
"//packages/angular_devkit/core/node:node", | ||
"@npm//@types/jasmine", | ||
"@npm//@types/node", | ||
"@npm//rxjs", | ||
], | ||
) |
Oops, something went wrong.