Skip to content

Commit

Permalink
build: mark external only bazel rules
Browse files Browse the repository at this point in the history
(cherry picked from commit 1e21440)
  • Loading branch information
clydin authored and alan-agius4 committed Jun 17, 2022
1 parent 62f46c8 commit 0bb875d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/angular/cli/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
# found in the LICENSE file at https://angular.io/license

load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
load("//tools:defaults.bzl", "pkg_npm", "ts_library")

# @external_begin
load("//tools:ts_json_schema.bzl", "ts_json_schema")
load("//tools:ng_cli_schema_generator.bzl", "cli_json_schema")
load("//tools:defaults.bzl", "pkg_npm", "ts_library")
# @external_end

licenses(["notice"]) # MIT

Expand Down Expand Up @@ -91,6 +94,7 @@ ts_library(
],
)

# @external_begin
CLI_SCHEMA_DATA = [
"//packages/angular_devkit/build_angular:src/builders/app-shell/schema.json",
"//packages/angular_devkit/build_angular:src/builders/browser/schema.json",
Expand Down Expand Up @@ -280,6 +284,7 @@ ts_json_schema(
name = "update_schematic_schema",
src = "src/commands/update/schematic/schema.json",
)
# @external_end

ts_library(
name = "angular-cli_test_lib",
Expand Down Expand Up @@ -307,6 +312,7 @@ jasmine_node_test(
srcs = [":angular-cli_test_lib"],
)

# @external_begin
genrule(
name = "license",
srcs = ["//:LICENSE"],
Expand All @@ -333,3 +339,4 @@ pkg_npm(
":utilities/INITIAL_COMMIT_MESSAGE.txt",
],
)
# @external_end
7 changes: 7 additions & 0 deletions packages/angular_devkit/architect/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@

load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
load("//tools:defaults.bzl", "pkg_npm", "ts_library")

# @external_begin
load("//tools:ts_json_schema.bzl", "ts_json_schema")
load("@npm//@angular/dev-infra-private/bazel/api-golden:index.bzl", "api_golden_test_npm_package")
# @external_end

licenses(["notice"]) # MIT

package(default_visibility = ["//visibility:public"])

# @external_begin
ts_json_schema(
name = "builder_input_schema",
src = "src/input-schema.json",
Expand All @@ -36,6 +40,7 @@ ts_json_schema(
name = "operator_schema",
src = "builders/operator-schema.json",
)
# @external_end

ts_library(
name = "architect",
Expand Down Expand Up @@ -90,6 +95,7 @@ jasmine_node_test(
srcs = [":architect_test_lib"],
)

# @external_begin
genrule(
name = "license",
srcs = ["//:LICENSE"],
Expand Down Expand Up @@ -120,3 +126,4 @@ api_golden_test_npm_package(
golden_dir = "angular_cli/goldens/public-api/angular_devkit/architect",
npm_package = "angular_cli/packages/angular_devkit/architect/npm_package",
)
# @external_end
5 changes: 5 additions & 0 deletions packages/angular_devkit/core/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
load("//tools:defaults.bzl", "pkg_npm", "ts_library")

# @external_begin
load("@npm//@angular/dev-infra-private/bazel/api-golden:index.bzl", "api_golden_test_npm_package")
# @external_end

# Copyright Google Inc. All Rights Reserved.
#
Expand Down Expand Up @@ -76,6 +79,7 @@ jasmine_node_test(
],
)

# @external_begin
genrule(
name = "license",
srcs = ["//:LICENSE"],
Expand Down Expand Up @@ -107,3 +111,4 @@ api_golden_test_npm_package(
npm_package = "angular_cli/packages/angular_devkit/core/npm_package",
types = ["@npm//@types/node"],
)
# @external_end
5 changes: 5 additions & 0 deletions packages/angular_devkit/schematics/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test")
load("//tools:defaults.bzl", "pkg_npm", "ts_library")

# @external_begin
load("@npm//@angular/dev-infra-private/bazel/api-golden:index.bzl", "api_golden_test_npm_package")
# @external_end

# Copyright Google Inc. All Rights Reserved.
#
Expand Down Expand Up @@ -64,6 +67,7 @@ jasmine_node_test(
],
)

# @external_begin
genrule(
name = "license",
srcs = ["//:LICENSE"],
Expand Down Expand Up @@ -99,3 +103,4 @@ api_golden_test_npm_package(
npm_package = "angular_cli/packages/angular_devkit/schematics/npm_package",
types = ["@npm//@types/node"],
)
# @external_end

0 comments on commit 0bb875d

Please sign in to comment.