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
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.5.0
7.5.0
5 changes: 5 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# TODO: Investigate bzlmod and use it where possible.

module(
name = "angular_material",
)
110 changes: 110 additions & 0 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions integration/module-tests/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import ts from 'typescript';
import {findAllEntryPointsAndExportedModules} from './find-all-modules.mjs';

async function main() {
// Touch the TEST_SHARD_FILE to mark for bazel that sharding is supported.
await fs.writeFile(process.env.TEST_SHARD_STATUS_FILE!, '', {encoding: 'utf-8'});

const [configPath] = process.argv.slice(2);
const tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), 'ng-module-test-'));
const config = JSON.parse(await fs.readFile(configPath, 'utf8')) as {
Expand Down
2 changes: 1 addition & 1 deletion src/dev-app/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ http_server(
name = "devserver",
srcs = [":dev_app_static_files"],
additional_root_paths = [
"angular_material/",
"_main/",
],
enable_dev_ui = True,
# List of environment variables that will be made available as `window.<NAME>` in the
Expand Down
2 changes: 1 addition & 1 deletion src/e2e-app/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ http_server(
testonly = True,
srcs = devserverIndexHtmlDependencies,
additional_root_paths = [
"angular_material/",
"_main/",
],
tags = ["manual"],
deps = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {MIGRATION_PATH} from '../../paths';
describe('Material upgrade test cases', () => {
const versionNames = getAllVersionNames().map(versionName => versionName.toLowerCase());
const testCasesMap = findBazelVersionTestCases(
'angular_material/src/material/schematics/ng-update/test-cases',
'_main/src/material/schematics/ng-update/test-cases',
);

// Setup the test cases for each target version. The test cases will be automatically
Expand Down
2 changes: 1 addition & 1 deletion src/universal-app/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ http_server(
"//:node_modules/zone.js",
],
additional_root_paths = [
"angular_material/",
"_main/",
],
tags = ["manual"],
deps = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const inlineStylesSourcemapRegex = /styles: ?\[["'].*sourceMappingURL=.*["']/;
const externalReferencesRegex = /(templateUrl|styleUrls): *["'[]/;

/** RegExp that matches common Bazel manifest paths in this workspace */
const bazelManifestPath = /(angular_material|external)\//;
const bazelManifestPath = /(_main|external)\//;

/**
* List of fields which are mandatory in entry-point "package.json" files and refer
Expand Down
Loading