Skip to content
Open
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
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.7.1
8.4.2
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
- name: Checking package externals
run: |
bazel build //:package_externals
pnpm check-package-externals $(bazel info bazel-bin)/package_externals.json
pnpm check-package-externals $(bazel --ignore_all_rc_files info bazel-bin)/package_externals.json
- name: Checking entry-points configuration
run: |
bazel build //:entry_points_manifest
pnpm check-entry-point-setup $(bazel info bazel-bin)/entry_points_manifest.json
pnpm check-entry-point-setup $(bazel --ignore_all_rc_files info bazel-bin)/entry_points_manifest.json
- name: Validate pull approve configuration
run: pnpm ng-dev pullapprove verify
- name: Check for component id collisions
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
- name: Checking package externals
run: |
bazel build //:package_externals
pnpm check-package-externals $(bazel info bazel-bin)/package_externals.json
pnpm check-package-externals $(bazel --ignore_all_rc_files info bazel-bin)/package_externals.json
- name: Checking entry-points configuration
run: |
bazel build //:entry_points_manifest
pnpm check-entry-point-setup $(bazel info bazel-bin)/entry_points_manifest.json
pnpm check-entry-point-setup $(bazel --ignore_all_rc_files info bazel-bin)/entry_points_manifest.json
- name: Validate pull approve configuration
run: pnpm ng-dev pullapprove verify
- name: Check for component id collisions
Expand Down
1,173 changes: 481 additions & 692 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/build-docs-content.mts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function buildDocsContentPackage(): BuiltPackage {
sh.cd(projectDir);

/** Path to the bazel bin output directory. */
const bazelBinPath = sh.exec(`${bazelCmd} info bazel-bin`).stdout.trim();
const bazelBinPath = sh.exec(`${bazelCmd} --ignore_all_rc_files info bazel-bin`).stdout.trim();

/** Path where the NPM package is built into by Bazel. */
const bazelBinOutDir = join(bazelBinPath, 'src/components-examples/npm_package');
Expand Down
4 changes: 3 additions & 1 deletion scripts/build-packages-dist.mts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ function buildReleasePackages(distPath: string, isSnapshotBuild: boolean): Built
// List of targets to build. e.g. "src/cdk:npm_package", or "src/material:npm_package".
const targets = exec(queryPackagesCmd, true).split(/\r?\n/);
const packageNames = getPackageNamesOfTargets(targets);
const bazelBinPath = exec(`${bazelCmd} info bazel-bin`, true);
// TODO: Remove --ignore_all_rc_files flag once repository can be loaded in bazelrc during info
// commands again.
const bazelBinPath = exec(`${bazelCmd} --ignore_all_rc_files info bazel-bin`, true);
const getBazelOutputPath = (pkgName: string) => join(bazelBinPath, 'src', pkgName, 'npm_package');
const getDistPath = (pkgName: string) => join(distPath, pkgName);

Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy-dev-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const projectDirPath = join(__dirname, '../');
cd(projectDirPath);

/** Path to the bazel-bin directory. */
const bazelBinPath = exec(`pnpm -s bazel info bazel-bin`).stdout.trim();
const bazelBinPath = exec(`pnpm -s bazel --ignore_all_rc_files info bazel-bin`).stdout.trim();

/** Output path for the Bazel dev-app web package target. */
const webPackagePath = join(bazelBinPath, 'src/dev-app/web_package');
Expand Down
1 change: 0 additions & 1 deletion src/cdk/clipboard/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ ng_project(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
assets = glob(["**/*.html"]),
deps = [
"//:node_modules/@angular/common",
"//:node_modules/@angular/core",
Expand Down
6 changes: 1 addition & 5 deletions src/components-examples/cdk/platform/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ package(default_visibility = ["//visibility:public"])
ng_project(
name = "platform",
srcs = glob(["**/*.ts"]),
assets = glob([
"**/*.html",
"**/*.css",
]),
assets = glob(["**/*.html"]),
deps = [
"//:node_modules/@angular/core",
"//src/cdk/platform",
Expand All @@ -19,7 +16,6 @@ filegroup(
name = "source-files",
srcs = glob([
"**/*.html",
"**/*.css",
"**/*.ts",
]),
)
6 changes: 1 addition & 5 deletions src/components-examples/material/bottom-sheet/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ ng_project(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
assets = glob([
"**/*.html",
"**/*.css",
]),
assets = glob(["**/*.html"]),
deps = [
"//:node_modules/@angular/core",
"//:node_modules/@angular/platform-browser",
Expand All @@ -30,7 +27,6 @@ filegroup(
name = "source-files",
srcs = glob([
"**/*.html",
"**/*.css",
"**/*.ts",
]),
)
Expand Down
6 changes: 1 addition & 5 deletions src/components-examples/material/divider/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ ng_project(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
assets = glob([
"**/*.html",
"**/*.css",
]),
assets = glob(["**/*.html"]),
deps = [
"//:node_modules/@angular/core",
"//:node_modules/@angular/platform-browser",
Expand All @@ -28,7 +25,6 @@ filegroup(
name = "source-files",
srcs = glob([
"**/*.html",
"**/*.css",
"**/*.ts",
]),
)
Expand Down
6 changes: 1 addition & 5 deletions src/components-examples/material/icon/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ ng_project(
["**/*.ts"],
exclude = ["**/*.spec.ts"],
),
assets = glob([
"**/*.html",
"**/*.css",
]),
assets = glob(["**/*.html"]),
deps = [
"//:node_modules/@angular/core",
"//:node_modules/@angular/platform-browser",
Expand All @@ -27,7 +24,6 @@ filegroup(
name = "source-files",
srcs = glob([
"**/*.html",
"**/*.css",
"**/*.ts",
]),
)
Expand Down
9 changes: 0 additions & 9 deletions src/dev-app/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,6 @@ sass_binary(
],
)

# Variables that are going to be inlined into the dev app index.html.
filegroup(
name = "variables",
# Note that we need the * in the pattern, because there's a lint rule which
# doesn't allow single files in a `glob`. We have to use a glob, because the file is optional.
srcs = glob(["*variables.json"]),
)

# File group for all static files which are needed to serve the dev-app. These files are
# used in the devserver as runfiles and will be copied into the static web package that can
# be deployed on static hosting services (like firebase).
Expand All @@ -163,7 +155,6 @@ filegroup(
"index.html",
":theme",
":theme_m3",
":variables",
"//:node_modules/moment",
"//:node_modules/zone.js",
"//src/dev-app/icon:icon_demo_assets",
Expand Down
10 changes: 0 additions & 10 deletions src/material/schematics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -131,23 +131,13 @@ ts_project(
],
)

filegroup(
name = "schematics_test_cases",
testonly = True,
srcs = glob([
"ng-update/test-cases/**/*_input.ts",
"ng-update/test-cases/**/*_expected_output.ts",
]),
)

jasmine_test(
name = "unit_tests",
data = [
":collection_assets",
":ng_generate_assets",
":schema_assets",
":schematics",
":schematics_test_cases",
":unit_test_sources",
"//src/material/schematics:package_json",
],
Expand Down
2 changes: 1 addition & 1 deletion src/material/schematics/migration-utilities/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ts_project(
ts_project(
name = "unit_tests_lib",
testonly = True,
srcs = glob(["**/*.spec.ts"] + ["rules/components/test-setup-helper.ts"]),
srcs = glob(["**/*.spec.ts"]),
tsconfig = "//src/material/schematics:tsconfig-test",
deps = [
":migration-utilities",
Expand Down
3 changes: 2 additions & 1 deletion src/material/schematics/ng-generate/theme-color/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ ts_project(
testonly = True,
srcs = glob([
"**/*.spec.ts",
]) + [
"index_bundled.d.ts",
] + ["rules/components/test-setup-helper.ts"]),
],
data = [":index_bundled"],
tsconfig = "//src/material/schematics:tsconfig-test",
deps = [
Expand Down
10 changes: 0 additions & 10 deletions src/material/schematics/ng-update/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ esbuild(
deps = [":ng_update_lib"],
)

filegroup(
name = "schematics_test_cases",
testonly = True,
srcs = glob([
"test-cases/**/*_input.ts",
"test-cases/**/*_expected_output.ts",
]),
)

ts_project(
name = "test_lib",
testonly = True,
Expand All @@ -70,7 +61,6 @@ jasmine_test(
name = "test",
data = [
":ng_update_index",
":schematics_test_cases",
":test_lib",
"//src/material/schematics:collection_assets",
"//src/material/schematics:node_modules/@angular/cdk/schematics",
Expand Down
Loading