Skip to content

Commit 8c3790b

Browse files
committed
Merge remote-tracking branch 'mai/main'
2 parents 4697d8e + 64951c4 commit 8c3790b

431 files changed

Lines changed: 64085 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# @generated
2+
# Input hashes for repository rule npm_translate_lock(name = "npm", pnpm_lock = "//:pnpm-lock.yaml").
3+
# This file should be checked into version control along with the pnpm-lock.yaml file.
4+
.npmrc=-1306950124
5+
pnpm-lock.yaml=1087437730
6+
yarn.lock=-1043892813
7+
package.json=430646288
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dist/
2+
node_modules/
3+
.angular/
4+
.circleci/
5+
.github/
6+
src/assets/stack-blitz/node_modules
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
###############################
2+
# Filesystem interactions #
3+
###############################
4+
5+
# Disable watchfs as it causes tests to be flaky on Windows
6+
# https://github.com/angular/angular/issues/29541
7+
build --nowatchfs
8+
9+
# Turn off legacy external runfiles
10+
build --nolegacy_external_runfiles
11+
12+
# Turn on --incompatible_strict_action_env which was on by default
13+
# in Bazel 0.21.0 but turned off again in 0.22.0. Follow
14+
# https://github.com/bazelbuild/bazel/issues/7026 for more details.
15+
# This flag is needed to so that the bazel cache is not invalidated
16+
# when running bazel via `yarn bazel`.
17+
# See https://github.com/angular/angular/issues/27514.
18+
build --incompatible_strict_action_env
19+
20+
# Enable remote caching of build/action tree
21+
build --experimental_remote_merkle_tree_cache
22+
23+
# Ensure that tags applied in BUILDs propagate to actions
24+
common --experimental_allow_tags_propagation
25+
26+
# Don't check if output files have been modified
27+
build --noexperimental_check_output_files
28+
29+
# Ensure sandboxing is enabled even for exclusive tests
30+
test --incompatible_exclusive_test_sandboxed
31+
32+
# Fixes use of npm paths with spaces such as some within the puppeteer module
33+
build --experimental_inprocess_symlink_creation
34+
35+
# Warn if test timeout is much longer than execution time
36+
test --test_verbose_timeout_warnings
37+
38+
# Prevent large amounbt of `dependency checking of directories is unsound` warnings
39+
startup --host_jvm_args=-DBAZEL_TRACK_SOURCE_DIRECTORIES=1
40+
41+
# Disable bazel modules for now
42+
common --noenable_bzlmod
43+
44+
####################################################
45+
# User bazel configuration
46+
# NOTE: This needs to be the *last* entry in the config.
47+
####################################################
48+
49+
# Load any settings which are specific to the current user. Needs to be *last* statement
50+
# in this config, as the user configuration should be able to overwrite flags from this file.
51+
try-import .bazelrc.user
52+
53+
# Enable runfiles even on Windows.
54+
# Architect resolves output files from data files, and this isn't possible without runfile support.
55+
build --enable_runfiles
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.3.0
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This config is remaining in place to prevent pull requests failing because of CircleCI config missing.
2+
3+
version: 2.1
4+
5+
jobs:
6+
pass:
7+
docker:
8+
- image: cimg/base:2022.05
9+
steps:
10+
- run: echo "This too shall pass (always)"
11+
12+
workflows:
13+
version: 2
14+
default_workflow:
15+
jobs:
16+
- pass
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = 0
13+
trim_trailing_whitespace = false
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"*.d.ts",
5+
"src/assets/stack-blitz/**/*.ts"
6+
],
7+
"overrides": [
8+
{
9+
"files": [
10+
"*.ts"
11+
],
12+
"plugins": [
13+
"@stylistic",
14+
"@typescript-eslint",
15+
"ban"
16+
],
17+
"parserOptions": {
18+
"project": [
19+
"tsconfig.json",
20+
"e2e/tsconfig.json"
21+
],
22+
"createDefaultProgram": true
23+
},
24+
"extends": [
25+
"plugin:@angular-eslint/ng-cli-compat",
26+
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
27+
"plugin:@angular-eslint/template/process-inline-templates",
28+
"plugin:@stylistic/disable-legacy"
29+
],
30+
"rules": {
31+
"@angular-eslint/component-class-suffix": "off",
32+
"@angular-eslint/component-selector": "off",
33+
"@angular-eslint/directive-class-suffix": "off",
34+
"@angular-eslint/directive-selector": "off",
35+
"@typescript-eslint/dot-notation": "off",
36+
"@typescript-eslint/member-delimiter-style": "off",
37+
"@typescript-eslint/explicit-member-accessibility": [
38+
"off",
39+
{
40+
"accessibility": "explicit"
41+
}
42+
],
43+
"@typescript-eslint/no-inferrable-types": "off",
44+
"@typescript-eslint/member-ordering": "off",
45+
"@typescript-eslint/no-unused-vars": "error",
46+
"@typescript-eslint/no-non-null-assertion": "off",
47+
"@typescript-eslint/ban-types": "off",
48+
"@stylistic/quotes": [
49+
"error",
50+
"single",
51+
{
52+
"avoidEscape": true,
53+
"allowTemplateLiterals": true
54+
}
55+
],
56+
"@stylistic/semi": [
57+
"error"
58+
],
59+
"arrow-parens": [
60+
"off",
61+
"always"
62+
],
63+
"brace-style": [
64+
"error",
65+
"1tbs"
66+
],
67+
"import/order": "off",
68+
"linebreak-style": [
69+
"error",
70+
"unix"
71+
],
72+
"max-len": [
73+
"error",
74+
{
75+
"code": 100
76+
}
77+
],
78+
"ban/ban": [
79+
"error",
80+
{
81+
"name": "fit"
82+
},
83+
{
84+
"name": "fdescribe"
85+
},
86+
{
87+
"name": "xit"
88+
},
89+
{
90+
"name": "xdescribe"
91+
},
92+
{
93+
"name": [
94+
"Object",
95+
"assign"
96+
],
97+
"message": "Use the spread operator instead."
98+
}
99+
],
100+
"no-duplicate-imports": "error",
101+
"no-redeclare": "error",
102+
"object-shorthand": "off",
103+
"no-underscore-dangle": "off",
104+
"prefer-arrow/prefer-arrow-functions": "off",
105+
"jsdoc/newline-after-description": "off",
106+
"quote-props": "off"
107+
}
108+
},
109+
{
110+
"files": [
111+
"*.html"
112+
],
113+
"extends": [
114+
"plugin:@angular-eslint/template/recommended"
115+
],
116+
"rules": {
117+
"@angular-eslint/template/accessibility-alt-text": "error",
118+
"@angular-eslint/template/accessibility-elements-content": "error",
119+
"@angular-eslint/template/accessibility-label-for": "error",
120+
"@angular-eslint/template/accessibility-table-scope": "error",
121+
"@angular-eslint/template/accessibility-valid-aria": "error",
122+
"@angular-eslint/template/click-events-have-key-events": "error",
123+
"@angular-eslint/template/mouse-events-have-key-events": "error",
124+
"@angular-eslint/template/no-autofocus": "error",
125+
"@angular-eslint/template/no-distracting-elements": "error",
126+
"@angular-eslint/template/no-positive-tabindex": "error"
127+
}
128+
}
129+
]
130+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Docs Infrastructure
3+
about: Suggest an improvement to the infrastructure used to build material.angular.io
4+
---
5+
6+
<!--------
7+
🛑
8+
Use the Angular Components repository (https://github.com/angular/components/issues/new/choose)
9+
to report issues.
10+
11+
The Angular team can't provide general troubleshooting help. This is especially true when the
12+
problem is specific to your app and cannot be reproduced in a StackBlitz demo.
13+
However, the extended community of users may be able to provide help via the following channels:
14+
- StackOverflow: https://stackoverflow.com/questions/tagged/angular-material2
15+
- Gitter: https://gitter.im/angular/material2
16+
- Google Groups: https://groups.google.com/forum/#!forum/angular-material2
17+
-------->
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- "[0-9]+.[0-9]+.x"
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions: {}
14+
15+
defaults:
16+
run:
17+
shell: bash
18+
19+
env:
20+
# TODO: Remove when pnpm is exclusively used.
21+
ASPECT_RULES_JS_FROZEN_PNPM_LOCK: "1"
22+
23+
jobs:
24+
lint:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Initialize environment
28+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b
29+
- name: Install node modules
30+
run: yarn install --immutable
31+
- name: Execute Linting
32+
run: yarn bazel test --test_tag_filters=lint //...
33+
34+
build:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Initialize environment
38+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b
39+
- name: Install node modules
40+
run: yarn install --immutable
41+
- name: Execute Direct Production Build (deploy usage)
42+
run: yarn prod-build
43+
- name: Execute Build via Bazel
44+
run: yarn bazel build //...
45+
46+
test:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Initialize environment
50+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b
51+
- name: Install node modules
52+
run: yarn install --immutable
53+
- name: Execute Tests
54+
run: yarn bazel test --test_tag_filters=-lint,-e2e,-audit //...
55+
- name: Store Test Logs
56+
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
57+
with:
58+
name: test-logs
59+
path: bazel-testlogs/
60+
retention-days: 14
61+
62+
lighthouse:
63+
runs-on: ubuntu-latest
64+
steps:
65+
- name: Initialize environment
66+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b
67+
- name: Install node modules
68+
run: yarn install --immutable
69+
- name: Execute Lighthouse Audit
70+
run: yarn bazel test --test_tag_filters=audit //...
71+
- name: Store Audit Logs
72+
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
73+
with:
74+
name: lighthouse-logs
75+
path: bazel-testlogs/
76+
retention-days: 14

0 commit comments

Comments
 (0)