Skip to content

Commit 5fd56d9

Browse files
authored
build: create angular aria package (#31942)
* build: create angular aria package * fixup! build: create angular aria package * fixup! build: create angular aria package * fixup! build: create angular aria package * fixup! build: create angular aria package * fixup! build: create angular aria package * fixup! build: create angular aria package
1 parent 542bb6b commit 5fd56d9

File tree

350 files changed

+2485
-2513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

350 files changed

+2485
-2513
lines changed

.bazelignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ integration/yarn-pnp-compat/.yarn/install-state.gz
1818
integration/yarn-pnp-compat/node_modules
1919
integration/node_modules
2020

21+
src/aria/node_modules
2122
src/cdk-experimental/node_modules
2223
src/cdk/node_modules
2324
src/components-examples/node_modules

.ng-dev/commit-message.mts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ export const commitMessage: CommitMessageConfig = {
99
minBodyLengthTypeExcludes: ['docs'],
1010
scopes: [
1111
'multiple', // For when a commit applies to multiple components.
12-
'cdk-experimental/accordion',
12+
'aria/accordion',
13+
'aria/combobox',
14+
'aria/listbox',
15+
'aria/menu',
16+
'aria/radio-group',
17+
'aria/tabs',
18+
'aria/toolbar',
19+
'aria/tree',
20+
'aria/ui-patterns',
1321
'cdk-experimental/column-resize',
14-
'cdk-experimental/combobox',
15-
'cdk-experimental/listbox',
16-
'cdk-experimental/menu',
1722
'cdk-experimental/popover-edit',
18-
'cdk-experimental/radio-group',
1923
'cdk-experimental/scrolling',
2024
'cdk-experimental/selection',
2125
'cdk-experimental/table-scroll-container',
22-
'cdk-experimental/tabs',
23-
'cdk-experimental/toolbar',
24-
'cdk-experimental/tree',
25-
'cdk-experimental/ui-patterns',
2626
'cdk/a11y',
2727
'cdk/accordion',
2828
'cdk/bidi',

.ng-dev/google-sync-config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"src/material-experimental/**/*.ts",
1111
"src/material-experimental/**/*.html",
1212
"src/material-experimental/**/*.scss",
13+
"src/aria/**/*.ts",
14+
"src/aria/**/*.html",
15+
"src/aria/**/*.scss",
1316
"src/cdk/**/*.ts",
1417
"src/cdk/**/*.html",
1518
"src/cdk/**/*.scss",

.ng-dev/release.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {assertValidNpmPackageOutput} from '../tools/release-checks/npm-package-o
1818
* appear in the changelog.
1919
*/
2020
export const releasePackages = [
21+
'aria',
2122
'cdk',
2223
'material',
2324
'google-maps',

BUILD.bazel

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
load("@devinfra//bazel/validation:defs.bzl", "validate_ts_version_matching")
22
load("@npm//:defs.bzl", "npm_link_all_packages")
33
load("//:pkg-externals.bzl", "PKG_EXTERNALS")
4+
load("//src/aria:config.bzl", "ARIA_ENTRYPOINTS")
45
load("//src/cdk:config.bzl", "CDK_ENTRYPOINTS")
56
load("//src/cdk-experimental:config.bzl", "CDK_EXPERIMENTAL_ENTRYPOINTS")
67
load("//src/material:config.bzl", "MATERIAL_ENTRYPOINTS", "MATERIAL_TESTING_ENTRYPOINTS")
@@ -26,7 +27,8 @@ genrule(
2627
cmd = "echo '%s' > $@" % PKG_EXTERNALS,
2728
)
2829

29-
entryPoints = ["cdk/%s" % e for e in CDK_ENTRYPOINTS] + \
30+
entryPoints = ["aria/%s" % e for e in ARIA_ENTRYPOINTS] + \
31+
["cdk/%s" % e for e in CDK_ENTRYPOINTS] + \
3032
["cdk-experimental/%s" % e for e in CDK_EXPERIMENTAL_ENTRYPOINTS] + \
3133
["material/%s" % e for e in MATERIAL_ENTRYPOINTS + MATERIAL_TESTING_ENTRYPOINTS] + \
3234
["material-experimental/%s" % e for e in MATERIAL_EXPERIMENTAL_ENTRYPOINTS + MATERIAL_EXPERIMENTAL_TESTING_ENTRYPOINTS]

MODULE.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ npm.npm_translate_lock(
7777
"//:package.json",
7878
"//:pnpm-workspace.yaml",
7979
"//integration:package.json",
80+
"//src/aria:package.json",
8081
"//src/cdk:package.json",
8182
"//src/cdk-experimental:package.json",
8283
"//src/components-examples:package.json",
@@ -93,6 +94,10 @@ npm.npm_translate_lock(
9394
],
9495
npmrc = "//:.npmrc",
9596
package_visibility = {
97+
"@angular/aria": [
98+
"//integration:__subpackages__",
99+
"//docs:__subpackages__",
100+
],
96101
"@angular/cdk": [
97102
"//integration:__subpackages__",
98103
"//docs:__subpackages__",

docs/defs.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ COMMON_CONFIG = [
1919

2020
# Project dependencies common across libs/tests
2121
DEPS = [
22+
"//docs:node_modules/@angular/aria",
2223
"//docs:node_modules/@angular/cdk",
2324
"//docs:node_modules/@angular/cdk-experimental",
2425
"//docs:node_modules/@angular/material",

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"npm": "Please use pnpm instead of NPM to install dependencies"
2929
},
3030
"dependencies": {
31+
"@angular/aria": "workspace:*",
3132
"@angular/cdk": "workspace:*",
3233
"@angular/cdk-experimental": "workspace:*",
3334
"@angular/common": "catalog:",

packages.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Packages which are versioned together on npm
22
ANGULAR_COMPONENTS_SCOPED_PACKAGES = ["@angular/%s" % p for p in [
33
"material",
4+
"aria",
45
"cdk",
56
"cdk-experimental",
67
"material-experimental",

pkg-externals.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("//src/aria:config.bzl", "ARIA_ENTRYPOINTS")
12
load("//src/cdk:config.bzl", "CDK_ENTRYPOINTS")
23
load("//src/cdk-experimental:config.bzl", "CDK_EXPERIMENTAL_ENTRYPOINTS")
34
load("//src/material:config.bzl", "MATERIAL_ENTRYPOINTS", "MATERIAL_TESTING_ENTRYPOINTS")
@@ -28,6 +29,7 @@ PKG_EXTERNALS = [
2829
"@angular/router",
2930

3031
# Primary entry-points in the project.
32+
"@angular/aria",
3133
"@angular/cdk",
3234
"@angular/cdk-experimental",
3335
"@angular/google-maps",
@@ -58,6 +60,7 @@ PKG_EXTERNALS = [
5860
def setup_entry_point_externals(packageName, entryPoints):
5961
PKG_EXTERNALS.extend(["@angular/%s/%s" % (packageName, ep) for ep in entryPoints])
6062

63+
setup_entry_point_externals("aria", ARIA_ENTRYPOINTS)
6164
setup_entry_point_externals("cdk", CDK_ENTRYPOINTS)
6265
setup_entry_point_externals("cdk-experimental", CDK_EXPERIMENTAL_ENTRYPOINTS)
6366
setup_entry_point_externals("material", MATERIAL_ENTRYPOINTS + MATERIAL_TESTING_ENTRYPOINTS)
@@ -68,6 +71,7 @@ setup_entry_point_externals(
6871

6972
# External module names in the examples package. Individual examples are grouped
7073
# by package and component, so we add configure such entry-points as external.
74+
setup_entry_point_externals("components-examples/aria", ARIA_ENTRYPOINTS)
7175
setup_entry_point_externals("components-examples/cdk", CDK_ENTRYPOINTS)
7276
setup_entry_point_externals("components-examples/cdk-experimental", CDK_EXPERIMENTAL_ENTRYPOINTS)
7377
setup_entry_point_externals(

0 commit comments

Comments
 (0)