Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
.git
dist
node_modules
packages/angular/cli/node_modules
packages/angular/create/node_modules
packages/angular/pwa/node_modules
packages/angular_devkit/architect/node_modules
packages/angular_devkit/architect_cli/node_modules
packages/angular_devkit/benchmark/node_modules
packages/angular_devkit/build_angular/node_modules
packages/angular_devkit/build_webpack/node_modules
packages/angular_devkit/core/node_modules
packages/angular_devkit/schematics/node_modules
packages/angular_devkit/schematics_cli/node_modules
packages/ngtools/webpack/node_modules
packages/schematics/angular/node_modules
13 changes: 6 additions & 7 deletions packages/angular/cli/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ ts_library(
name = "angular-cli",
package_name = "@angular/cli",
srcs = glob(
include = ["**/*.ts"],
include = [
"lib/**/*.ts",
"src/**/*.ts",
],
exclude = [
"**/*_spec.ts",
# NB: we need to exclude the nested node_modules that is laid out by yarn workspaces
"node_modules/**",
],
) + [
# @external_begin
Expand All @@ -33,12 +34,10 @@ ts_library(
data = glob(
include = [
"bin/**/*",
"**/*.json",
"**/*.md",
"src/**/*.md",
"src/**/*.json",
],
exclude = [
# NB: we need to exclude the nested node_modules that is laid out by yarn workspaces
"node_modules/**",
"lib/config/workspace-schema.json",
],
) + [
Expand Down
8 changes: 1 addition & 7 deletions packages/angular/create/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ licenses(["notice"])
ts_library(
name = "create",
package_name = "@angular/create",
srcs = glob(
["**/*.ts"],
exclude = [
# NB: we need to exclude the nested node_modules that is laid out by yarn workspaces
"node_modules/**",
],
),
srcs = ["src/index.ts"],
deps = [
"//packages/angular/cli:angular-cli",
"@npm//@types/node",
Expand Down
16 changes: 2 additions & 14 deletions packages/angular/pwa/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,8 @@ package(default_visibility = ["//visibility:public"])
ts_library(
name = "pwa",
package_name = "@angular/pwa",
srcs = glob(
["**/*.ts"],
# Currently, this library is used only with the rollup plugin.
# To make it simpler for downstream repositories to compile this, we
# neither provide compile-time deps as an `npm_install` rule, nor do we
# expect the downstream repository to install @types/webpack[-*]
# So we exclude files that depend on webpack typings.
exclude = [
"pwa/files/**/*",
"**/*_spec.ts",
# NB: we need to exclude the nested node_modules that is laid out by yarn workspaces
"node_modules/**",
],
) + [
srcs = [
"pwa/index.ts",
"//packages/angular/pwa:pwa/schema.ts",
],
data = glob(
Expand Down
1 change: 0 additions & 1 deletion packages/angular_devkit/benchmark/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ ts_library(
include = ["src/**/*.ts"],
exclude = [
"src/**/*_spec.ts",
"src/**/*_benchmark.ts",
],
),
module_name = "@angular-devkit/benchmark",
Expand Down
1 change: 0 additions & 1 deletion packages/angular_devkit/core/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ ts_library(
include = ["src/**/*.ts"],
exclude = [
"src/**/*_spec.ts",
"src/**/*_benchmark.ts",
],
),
data = glob(
Expand Down
1 change: 0 additions & 1 deletion packages/angular_devkit/core/node/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ ts_library(
exclude = [
"testing/**/*.ts",
"**/*_spec.ts",
"**/*_benchmark.ts",
],
),
data = ["package.json"],
Expand Down
1 change: 0 additions & 1 deletion packages/angular_devkit/core/node/testing/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ ts_library(
include = ["**/*.ts"],
exclude = [
"**/*_spec.ts",
"**/*_benchmark.ts",
],
),
module_name = "@angular-devkit/core/node/testing",
Expand Down
11 changes: 3 additions & 8 deletions packages/angular_devkit/schematics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,11 @@ ts_library(
include = ["src/**/*.ts"],
exclude = [
"src/**/*_spec.ts",
"src/**/*_benchmark.ts",
],
),
data = glob(
include = ["**/*.json"],
exclude = [
# NB: we need to exclude the nested node_modules that is laid out by yarn workspaces
"node_modules/**",
],
),
data = [
"package.json",
],
module_name = "@angular-devkit/schematics",
module_root = "src/index.d.ts",
deps = [
Expand Down
1 change: 0 additions & 1 deletion packages/angular_devkit/schematics/tasks/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ ts_library(
exclude = [
"node/**/*.ts",
"**/*_spec.ts",
"**/*_benchmark.ts",
],
),
data = ["package.json"],
Expand Down
1 change: 0 additions & 1 deletion packages/angular_devkit/schematics/tasks/node/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ ts_library(
include = ["**/*.ts"],
exclude = [
"**/*_spec.ts",
"**/*_benchmark.ts",
],
),
module_name = "@angular-devkit/schematics/tasks/node",
Expand Down
1 change: 0 additions & 1 deletion packages/angular_devkit/schematics/tools/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ ts_library(
include = ["**/*.ts"],
exclude = [
"**/*_spec.ts",
"**/*_benchmark.ts",
"test/**/*.ts",
],
),
Expand Down
9 changes: 3 additions & 6 deletions packages/ngtools/webpack/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@ ts_library(
"src/**/*_spec_helpers.ts",
],
),
data = glob(
include = [
"src/type_checker_bootstrap.js",
"package.json",
],
),
data = [
"package.json",
],
module_name = "@ngtools/webpack",
module_root = "src/index.d.ts",
deps = [
Expand Down
1 change: 0 additions & 1 deletion packages/schematics/angular/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ ts_library(
include = ["**/*.ts"],
exclude = [
"**/*_spec.ts",
"**/*_benchmark.ts",
# Also exclude templated files.
"*/files/**/*.ts",
"*/other-files/**/*.ts",
Expand Down