Skip to content

Commit c718975

Browse files
committed
Merge remote-tracking branch 'remotes/origin/main' into fix-issue-2791
2 parents 73f21c0 + e785f02 commit c718975

File tree

3,762 files changed

+353973
-90922
lines changed

Some content is hidden

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

3,762 files changed

+353973
-90922
lines changed

.devcontainer/devcontainer.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
3+
{
4+
"name": "Node.js & TypeScript",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-16",
7+
"features": {
8+
"ghcr.io/devcontainers/features/github-cli:1": {},
9+
"ghcr.io/devcontainers/features/rust:1": {},
10+
"devwasm.azurecr.io/dev-wasm/dev-wasm-feature/rust-wasi:0": {}
11+
},
12+
13+
// Features to add to the dev container. More info: https://containers.dev/features.
14+
// "features": {},
15+
16+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
17+
// "forwardPorts": [],
18+
19+
// Use 'postCreateCommand' to run commands after the container is created.
20+
"onCreateCommand": "/bin/bash ./.devcontainer/setup.sh",
21+
22+
// Configure tool-specific properties.
23+
"customizations": {
24+
"vscode": {
25+
"extensions": [
26+
"rust-lang.rust-analyzer",
27+
"bungcip.better-toml",
28+
"ms-vscode.cpptools",
29+
"GitHub.copilot",
30+
"dustypomerleau.rust-syntax",
31+
"serayuzgur.crates",
32+
"esbenp.prettier-vscode",
33+
"dbaeumer.vscode-eslint",
34+
"mutantdino.resourcemonitor",
35+
"DavidAnson.vscode-markdownlint"
36+
]
37+
}
38+
}
39+
40+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
41+
// "remoteUser": "root"
42+
}

.devcontainer/setup.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
echo "🚀 Setting up Rushstack codespace..."
4+
5+
# Set local git config
6+
echo "🔑 Setting up local git config..."
7+
git config --local user.email ${GITHUB_USER}@users.noreply.github.com
8+
git config --local user.name "$(git config --system user.name)"
9+
10+
# Install Rush and Heft Dependencies
11+
echo "📦 Installing Rush, Heft, & Prettier dependencies..."
12+
npm install -g @microsoft/rush @rushstack/heft prettier
13+
14+
# Install Rush Dependencies
15+
echo "📦 Installing monorepo dependencies..."
16+
rush install
17+
18+
echo "🚀 Codespace setup complete! "
19+
echo "🙏 Thank you for contributing to Rushstack! "

.gitattributes

+3-31
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Prevent Git to auto detect text files and perform LF normalization.
2-
* -text
1+
# Set default behavior to automatically normalize line endings.
2+
* text=auto
33

44
# The item with `binary` is treated as binary file.
55
# The item with `eol=lf` is converted to LF on checkin, back to LF on checkout.
@@ -17,45 +17,17 @@
1717
# > git add .gitattributes
1818
# > git commit -m "Apply end-of-line normalization based on updated .gitattributes file"
1919

20-
*.aspx text eol=crlf
21-
*.bowerrc text eol=lf
2220
*.cmd text eol=crlf
23-
*.command text eol=lf
24-
*.config text eol=crlf
25-
*.cs text eol=crlf
26-
*.csproj text eol=crlf
27-
*.css text eol=crlf
2821
*.dll binary
29-
*.editorconfig text eol=lf
3022
*.eot binary
31-
*.example text eol=crlf
3223
*.exe binary
3324
*.gif binary
34-
*.gitattributes text eol=lf
35-
*.gitignore text eol=lf
36-
*.gitmodules text eol=lf
37-
*.html text eol=crlf
3825
*.ico binary
3926
*.jpg binary
40-
*.js text eol=crlf
41-
*.json text eol=crlf
42-
*.less text eol=crlf
43-
*.map text eol=lf
44-
*.md text eol=crlf
45-
*.npmignore text eol=lf
4627
*.png binary
47-
*.ps1 text eol=crlf
48-
*.rels text eol=crlf
49-
*.resx text eol=crlf
50-
*.scss text eol=crlf
51-
*.sln text eol=crlf
52-
*.svg text elf=lf
53-
*.ts text eol=crlf
54-
*.tsx text eol=crlf
5528
*.ttf binary
5629
*.woff binary
5730
*.wsp binary
58-
*.xml text eol=crlf
5931

6032
# NPM "bin" scripts MUST have LF, or else the executable fails to run on Mac.
6133
# This fnmatch expression only matches files in a "bin" folder and without
@@ -64,7 +36,7 @@
6436

6537
# Don't allow people to merge changes to these generated files, because the result
6638
# may be invalid. You need to run "rush update" again.
67-
pnpm-lock.yaml merge=binary
39+
pnpm-lock.yaml merge=text
6840
shrinkwrap.yaml merge=binary
6941
npm-shrinkwrap.json merge=binary
7042
yarn.lock merge=binary

.github/CODEOWNERS

+21-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
1-
.github/CODEOWNERS @iclanton @octogonz @patmill @apostolisms
2-
common/config/**/* @iclanton @octogonz @patmill @apostolisms
1+
.github/CODEOWNERS @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @patmill
2+
common/autoinstallers/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @patmill
3+
common/config/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @patmill
34

4-
common/reviews/**/* @iclanton @octogonz @apostolisms
5+
common/reviews/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
56

6-
apps/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
7-
build-tests/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
8-
core-build/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
9-
libraries/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
10-
stack/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
11-
webpack/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
12-
rush.json @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
13-
.gitattributes @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
14-
.gitignore @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
15-
README.md @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
7+
apps/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
8+
build-tests/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
9+
build-tests-samples/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
10+
eslint/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
11+
heft-plugins/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
12+
libraries/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
13+
repo-scripts/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
14+
rigs/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
15+
rush-plugins/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
16+
stack/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
17+
tutorials/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
18+
webpack/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @TheLarkInn
19+
rush.json @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
20+
.gitattributes @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
21+
.gitignore @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
22+
README.md @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
1623

17-
libraries/load-themed-styles/**/* @iclanton @octogonz @dzearing @apostolisms
24+
libraries/load-themed-styles/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @dzearing
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
name: 'Lockfile Explorer'
3+
about: Report an issue with the '@rushstack/lockfile-explorer' app
4+
title: '[lockfile-explorer] '
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
<!-- Have a question? Before creating an issue, ask in the chat room: https://rushstack.zulipchat.com/ -->
10+
11+
<!--------------------------------------------------------------------------
12+
👉 STEP 1: Write a concise but specific issue title in the box above.
13+
Example: "[lockfile-explorer] Incorrect text-wrapping on small display"
14+
--------------------------------------------------------------------------->
15+
16+
## Summary
17+
18+
<!--------------------------------------------------------------------------
19+
👉 STEP 2: In a few sentences, please explain:
20+
21+
What were you trying to accomplish?
22+
What action did you perform that ran into trouble?
23+
What went wrong?
24+
--------------------------------------------------------------------------->
25+
26+
## Repro steps
27+
28+
<!--------------------------------------------------------------------------
29+
👉 STEP 3: If your issue is a feature request and not a bug, delete this
30+
"Repro steps" section and skip to STEP 6.
31+
32+
👉 STEP 4: In many cases we can investigate bugs much faster if you include:
33+
The URL for a simplified Git branch that reproduces the problem.
34+
Step by step instructions for how to build the branch and see the error.
35+
36+
👉 STEP 5: It's also helpful to include an "expected" and "actual" result.
37+
But if that's not relevant, feel free to delete those fields.
38+
--------------------------------------------------------------------------->
39+
40+
**Expected result:** <!-- What you expected these steps to accomplish -->
41+
42+
**Actual result:** <!-- If an error occurred, include the full error message text and any call stack. -->
43+
44+
## Details
45+
46+
<!--------------------------------------------------------------------------
47+
👉 STEP 6: Provide any additional information you think might be helpful:
48+
49+
What do you think is the cause of this problem?
50+
How do you think we should fix this?
51+
--------------------------------------------------------------------------->
52+
53+
## Standard questions
54+
55+
Please answer these questions to help us investigate your issue more quickly:
56+
57+
| Question | Answer |
58+
| -------- | -------- |
59+
| `@rushstack/lockfile-explorer` version? | <!-- X.Y.Z --> |
60+
| Operating system? | <!-- Windows / Mac / Linux --> |
61+
| Would you consider contributing a PR? | <!-- Yes / No --> |
62+
| Node.js version (`node -v`)? | <!-- X.Y.Z --> |

.github/PULL_REQUEST_TEMPLATE.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,25 @@
5757
Pushing additional commits with "small" fixes often invalidates testing.
5858
--------------------------------------------------------------------------->
5959

60+
## Impacted documentation
61+
6062
<!--------------------------------------------------------------------------
61-
👉 STEP 7: Don't forget to run "rush change":
63+
👉 STEP 7: Does your PR affect anything that is discussed in the website docs?
64+
If so, please paste the URL of each affected web page, so we will
65+
remember to update the documentation after your PR is merged.
66+
(Updating the website is appreciated but not required.)
67+
If no docs are impacted, delete the "Impacted documentation" section.
68+
69+
If you modified a JSON schema, remember to update init templates such as:
70+
rush-lib/assets/rush-init/*.json
71+
api-extractor/src/schemas/api-extractor-template.json
72+
--------------------------------------------------------------------------->
73+
74+
<!--------------------------------------------------------------------------
75+
👉 STEP 8: Don't forget to run "rush change":
6276
6377
https://rushjs.io/pages/best_practices/change_logs/
6478
--------------------------------------------------------------------------->
6579

80+
6681
<!-- Have a question? Ask for help in the chat room: https://rushstack.zulipchat.com/ -->

.github/workflows/ci.yml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: ['main']
5+
pull_request:
6+
branches: ['main']
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
include:
14+
- NodeVersion: 16.20.x
15+
NodeVersionDisplayName: 16
16+
OS: ubuntu-latest
17+
- NodeVersion: 18.18.x
18+
NodeVersionDisplayName: 18
19+
OS: ubuntu-latest
20+
- NodeVersion: 20.9.x
21+
NodeVersionDisplayName: 20
22+
OS: ubuntu-latest
23+
- NodeVersion: 18.18.x
24+
NodeVersionDisplayName: 18
25+
OS: windows-latest
26+
name: Node.js v${{ matrix.NodeVersionDisplayName }} (${{ matrix.OS }})
27+
runs-on: ${{ matrix.OS }}
28+
steps:
29+
- uses: actions/checkout@v3
30+
with:
31+
fetch-depth: 2
32+
33+
- name: Git config user
34+
run: |
35+
git config --local user.name "Rushbot"
36+
git config --local user.email "rushbot@users.noreply.github.com"
37+
38+
- uses: actions/setup-node@v3
39+
with:
40+
node-version: ${{ matrix.NodeVersion }}
41+
42+
- name: Verify Change Logs
43+
run: node common/scripts/install-run-rush.js change --verify
44+
45+
- name: Rush Install
46+
run: node common/scripts/install-run-rush.js install
47+
48+
# - if: runner.os == 'Linux'
49+
# name: Start xvfb
50+
# run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
51+
52+
- name: Rush retest (install-run-rush)
53+
run: node common/scripts/install-run-rush.js retest --verbose --production
54+
env:
55+
# Prevent time-based browserslist update warning
56+
# See https://github.com/microsoft/rushstack/issues/2981
57+
BROWSERSLIST_IGNORE_OLD_DATA: 1
58+
59+
- name: Ensure repo README is up-to-date
60+
run: node repo-scripts/repo-toolbox/lib/start.js readme --verify
61+
62+
- name: Rush test (rush-lib)
63+
run: node apps/rush/lib/start-dev.js test --verbose --production --timeline
64+
env:
65+
# Prevent time-based browserslist update warning
66+
# See https://github.com/microsoft/rushstack/issues/2981
67+
BROWSERSLIST_IGNORE_OLD_DATA: 1

0 commit comments

Comments
 (0)