forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge material.angular.io into the components repository
Merge material.angular.io into the components repository, archiving the material.angular.io repo
- Loading branch information
Showing
431 changed files
with
63,656 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
...lar.io/.aspect/rules/external_repository_action_cache/npm_translate_lock_LTE4Nzc1MDcwNjU=
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# @generated | ||
# Input hashes for repository rule npm_translate_lock(name = "npm", pnpm_lock = "//:pnpm-lock.yaml"). | ||
# This file should be checked into version control along with the pnpm-lock.yaml file. | ||
.npmrc=-1306950124 | ||
pnpm-lock.yaml=1087437730 | ||
yarn.lock=-1043892813 | ||
package.json=430646288 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dist/ | ||
node_modules/ | ||
.angular/ | ||
.circleci/ | ||
.github/ | ||
src/assets/stack-blitz/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
############################### | ||
# Filesystem interactions # | ||
############################### | ||
|
||
# Disable watchfs as it causes tests to be flaky on Windows | ||
# https://github.com/angular/angular/issues/29541 | ||
build --nowatchfs | ||
|
||
# Turn off legacy external runfiles | ||
build --nolegacy_external_runfiles | ||
|
||
# Turn on --incompatible_strict_action_env which was on by default | ||
# in Bazel 0.21.0 but turned off again in 0.22.0. Follow | ||
# https://github.com/bazelbuild/bazel/issues/7026 for more details. | ||
# This flag is needed to so that the bazel cache is not invalidated | ||
# when running bazel via `yarn bazel`. | ||
# See https://github.com/angular/angular/issues/27514. | ||
build --incompatible_strict_action_env | ||
|
||
# Enable remote caching of build/action tree | ||
build --experimental_remote_merkle_tree_cache | ||
|
||
# Ensure that tags applied in BUILDs propagate to actions | ||
common --experimental_allow_tags_propagation | ||
|
||
# Don't check if output files have been modified | ||
build --noexperimental_check_output_files | ||
|
||
# Ensure sandboxing is enabled even for exclusive tests | ||
test --incompatible_exclusive_test_sandboxed | ||
|
||
# Fixes use of npm paths with spaces such as some within the puppeteer module | ||
build --experimental_inprocess_symlink_creation | ||
|
||
# Warn if test timeout is much longer than execution time | ||
test --test_verbose_timeout_warnings | ||
|
||
# Prevent large amounbt of `dependency checking of directories is unsound` warnings | ||
startup --host_jvm_args=-DBAZEL_TRACK_SOURCE_DIRECTORIES=1 | ||
|
||
# Disable bazel modules for now | ||
common --noenable_bzlmod | ||
|
||
#################################################### | ||
# User bazel configuration | ||
# NOTE: This needs to be the *last* entry in the config. | ||
#################################################### | ||
|
||
# Load any settings which are specific to the current user. Needs to be *last* statement | ||
# in this config, as the user configuration should be able to overwrite flags from this file. | ||
try-import .bazelrc.user | ||
|
||
# Enable runfiles even on Windows. | ||
# Architect resolves output files from data files, and this isn't possible without runfile support. | ||
build --enable_runfiles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This config is remaining in place to prevent pull requests failing because of CircleCI config missing. | ||
|
||
version: 2.1 | ||
|
||
jobs: | ||
pass: | ||
docker: | ||
- image: cimg/base:2022.05 | ||
steps: | ||
- run: echo "This too shall pass (always)" | ||
|
||
workflows: | ||
version: 2 | ||
default_workflow: | ||
jobs: | ||
- pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = 0 | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
{ | ||
"root": true, | ||
"ignorePatterns": [ | ||
"*.d.ts", | ||
"src/assets/stack-blitz/**/*.ts" | ||
], | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.ts" | ||
], | ||
"plugins": [ | ||
"@stylistic", | ||
"@typescript-eslint", | ||
"ban" | ||
], | ||
"parserOptions": { | ||
"project": [ | ||
"tsconfig.json", | ||
"e2e/tsconfig.json" | ||
], | ||
"createDefaultProgram": true | ||
}, | ||
"extends": [ | ||
"plugin:@angular-eslint/ng-cli-compat", | ||
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on", | ||
"plugin:@angular-eslint/template/process-inline-templates", | ||
"plugin:@stylistic/disable-legacy" | ||
], | ||
"rules": { | ||
"@angular-eslint/component-class-suffix": "off", | ||
"@angular-eslint/component-selector": "off", | ||
"@angular-eslint/directive-class-suffix": "off", | ||
"@angular-eslint/directive-selector": "off", | ||
"@typescript-eslint/dot-notation": "off", | ||
"@typescript-eslint/member-delimiter-style": "off", | ||
"@typescript-eslint/explicit-member-accessibility": [ | ||
"off", | ||
{ | ||
"accessibility": "explicit" | ||
} | ||
], | ||
"@typescript-eslint/no-inferrable-types": "off", | ||
"@typescript-eslint/member-ordering": "off", | ||
"@typescript-eslint/no-unused-vars": "error", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/ban-types": "off", | ||
"@stylistic/quotes": [ | ||
"error", | ||
"single", | ||
{ | ||
"avoidEscape": true, | ||
"allowTemplateLiterals": true | ||
} | ||
], | ||
"@stylistic/semi": [ | ||
"error" | ||
], | ||
"arrow-parens": [ | ||
"off", | ||
"always" | ||
], | ||
"brace-style": [ | ||
"error", | ||
"1tbs" | ||
], | ||
"import/order": "off", | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"max-len": [ | ||
"error", | ||
{ | ||
"code": 100 | ||
} | ||
], | ||
"ban/ban": [ | ||
"error", | ||
{ | ||
"name": "fit" | ||
}, | ||
{ | ||
"name": "fdescribe" | ||
}, | ||
{ | ||
"name": "xit" | ||
}, | ||
{ | ||
"name": "xdescribe" | ||
}, | ||
{ | ||
"name": [ | ||
"Object", | ||
"assign" | ||
], | ||
"message": "Use the spread operator instead." | ||
} | ||
], | ||
"no-duplicate-imports": "error", | ||
"no-redeclare": "error", | ||
"object-shorthand": "off", | ||
"no-underscore-dangle": "off", | ||
"prefer-arrow/prefer-arrow-functions": "off", | ||
"jsdoc/newline-after-description": "off", | ||
"quote-props": "off" | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"*.html" | ||
], | ||
"extends": [ | ||
"plugin:@angular-eslint/template/recommended" | ||
], | ||
"rules": { | ||
"@angular-eslint/template/accessibility-alt-text": "error", | ||
"@angular-eslint/template/accessibility-elements-content": "error", | ||
"@angular-eslint/template/accessibility-label-for": "error", | ||
"@angular-eslint/template/accessibility-table-scope": "error", | ||
"@angular-eslint/template/accessibility-valid-aria": "error", | ||
"@angular-eslint/template/click-events-have-key-events": "error", | ||
"@angular-eslint/template/mouse-events-have-key-events": "error", | ||
"@angular-eslint/template/no-autofocus": "error", | ||
"@angular-eslint/template/no-distracting-elements": "error", | ||
"@angular-eslint/template/no-positive-tabindex": "error" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Docs Infrastructure | ||
about: Suggest an improvement to the infrastructure used to build material.angular.io | ||
--- | ||
|
||
<!-------- | ||
🛑 | ||
Use the Angular Components repository (https://github.com/angular/components/issues/new/choose) | ||
to report issues. | ||
The Angular team can't provide general troubleshooting help. This is especially true when the | ||
problem is specific to your app and cannot be reproduced in a StackBlitz demo. | ||
However, the extended community of users may be able to provide help via the following channels: | ||
- StackOverflow: https://stackoverflow.com/questions/tagged/angular-material2 | ||
- Gitter: https://gitter.im/angular/material2 | ||
- Google Groups: https://groups.google.com/forum/#!forum/angular-material2 | ||
--------> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- "[0-9]+.[0-9]+.x" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: {} | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
env: | ||
# TODO: Remove when pnpm is exclusively used. | ||
ASPECT_RULES_JS_FROZEN_PNPM_LOCK: "1" | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Initialize environment | ||
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b | ||
- name: Install node modules | ||
run: yarn install --immutable | ||
- name: Execute Linting | ||
run: yarn bazel test --test_tag_filters=lint //... | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Initialize environment | ||
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b | ||
- name: Install node modules | ||
run: yarn install --immutable | ||
- name: Execute Direct Production Build (deploy usage) | ||
run: yarn prod-build | ||
- name: Execute Build via Bazel | ||
run: yarn bazel build //... | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Initialize environment | ||
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b | ||
- name: Install node modules | ||
run: yarn install --immutable | ||
- name: Execute Tests | ||
run: yarn bazel test --test_tag_filters=-lint,-e2e,-audit //... | ||
- name: Store Test Logs | ||
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 | ||
with: | ||
name: test-logs | ||
path: bazel-testlogs/ | ||
retention-days: 14 | ||
|
||
lighthouse: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Initialize environment | ||
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@db91da4e742cd081bfba01db2edc4e816018419b | ||
- name: Install node modules | ||
run: yarn install --immutable | ||
- name: Execute Lighthouse Audit | ||
run: yarn bazel test --test_tag_filters=audit //... | ||
- name: Store Audit Logs | ||
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 | ||
with: | ||
name: lighthouse-logs | ||
path: bazel-testlogs/ | ||
retention-days: 14 |
Oops, something went wrong.