Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/main' into fix-issue-2791
Browse files Browse the repository at this point in the history
  • Loading branch information
octogonz committed Dec 4, 2023
2 parents 73f21c0 + e785f02 commit c718975
Show file tree
Hide file tree
Showing 3,762 changed files with 353,973 additions and 90,922 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
42 changes: 42 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
{
"name": "Node.js & TypeScript",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/typescript-node:0-16",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/rust:1": {},
"devwasm.azurecr.io/dev-wasm/dev-wasm-feature/rust-wasi:0": {}
},

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"onCreateCommand": "/bin/bash ./.devcontainer/setup.sh",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"rust-lang.rust-analyzer",
"bungcip.better-toml",
"ms-vscode.cpptools",
"GitHub.copilot",
"dustypomerleau.rust-syntax",
"serayuzgur.crates",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"mutantdino.resourcemonitor",
"DavidAnson.vscode-markdownlint"
]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
19 changes: 19 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

echo "🚀 Setting up Rushstack codespace..."

# Set local git config
echo "🔑 Setting up local git config..."
git config --local user.email ${GITHUB_USER}@users.noreply.github.com
git config --local user.name "$(git config --system user.name)"

# Install Rush and Heft Dependencies
echo "📦 Installing Rush, Heft, & Prettier dependencies..."
npm install -g @microsoft/rush @rushstack/heft prettier

# Install Rush Dependencies
echo "📦 Installing monorepo dependencies..."
rush install

echo "🚀 Codespace setup complete! "
echo "🙏 Thank you for contributing to Rushstack! "
34 changes: 3 additions & 31 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Prevent Git to auto detect text files and perform LF normalization.
* -text
# Set default behavior to automatically normalize line endings.
* text=auto

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

*.aspx text eol=crlf
*.bowerrc text eol=lf
*.cmd text eol=crlf
*.command text eol=lf
*.config text eol=crlf
*.cs text eol=crlf
*.csproj text eol=crlf
*.css text eol=crlf
*.dll binary
*.editorconfig text eol=lf
*.eot binary
*.example text eol=crlf
*.exe binary
*.gif binary
*.gitattributes text eol=lf
*.gitignore text eol=lf
*.gitmodules text eol=lf
*.html text eol=crlf
*.ico binary
*.jpg binary
*.js text eol=crlf
*.json text eol=crlf
*.less text eol=crlf
*.map text eol=lf
*.md text eol=crlf
*.npmignore text eol=lf
*.png binary
*.ps1 text eol=crlf
*.rels text eol=crlf
*.resx text eol=crlf
*.scss text eol=crlf
*.sln text eol=crlf
*.svg text elf=lf
*.ts text eol=crlf
*.tsx text eol=crlf
*.ttf binary
*.woff binary
*.wsp binary
*.xml text eol=crlf

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

# Don't allow people to merge changes to these generated files, because the result
# may be invalid. You need to run "rush update" again.
pnpm-lock.yaml merge=binary
pnpm-lock.yaml merge=text
shrinkwrap.yaml merge=binary
npm-shrinkwrap.json merge=binary
yarn.lock merge=binary
Expand Down
35 changes: 21 additions & 14 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
.github/CODEOWNERS @iclanton @octogonz @patmill @apostolisms
common/config/**/* @iclanton @octogonz @patmill @apostolisms
.github/CODEOWNERS @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @patmill
common/autoinstallers/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @patmill
common/config/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @patmill

common/reviews/**/* @iclanton @octogonz @apostolisms
common/reviews/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft

apps/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
build-tests/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
core-build/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
libraries/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
stack/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
webpack/**/* @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
rush.json @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
.gitattributes @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
.gitignore @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
README.md @iclanton @octogonz @apostolisms @halfnibble @sachinjoseph @D4N14L
apps/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
build-tests/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
build-tests-samples/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
eslint/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
heft-plugins/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
libraries/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
repo-scripts/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
rigs/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
rush-plugins/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
stack/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
tutorials/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
webpack/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @TheLarkInn
rush.json @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
.gitattributes @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
.gitignore @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft
README.md @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft

libraries/load-themed-styles/**/* @iclanton @octogonz @dzearing @apostolisms
libraries/load-themed-styles/**/* @iclanton @octogonz @apostolisms @D4N14L @dmichon-msft @dzearing
62 changes: 62 additions & 0 deletions .github/ISSUE_TEMPLATE/lockfile-explorer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
name: 'Lockfile Explorer'
about: Report an issue with the '@rushstack/lockfile-explorer' app
title: '[lockfile-explorer] '
labels: ''
assignees: ''
---

<!-- Have a question? Before creating an issue, ask in the chat room: https://rushstack.zulipchat.com/ -->

<!--------------------------------------------------------------------------
👉 STEP 1: Write a concise but specific issue title in the box above.
Example: "[lockfile-explorer] Incorrect text-wrapping on small display"
--------------------------------------------------------------------------->

## Summary

<!--------------------------------------------------------------------------
👉 STEP 2: In a few sentences, please explain:
What were you trying to accomplish?
What action did you perform that ran into trouble?
What went wrong?
--------------------------------------------------------------------------->

## Repro steps

<!--------------------------------------------------------------------------
👉 STEP 3: If your issue is a feature request and not a bug, delete this
"Repro steps" section and skip to STEP 6.
👉 STEP 4: In many cases we can investigate bugs much faster if you include:
The URL for a simplified Git branch that reproduces the problem.
Step by step instructions for how to build the branch and see the error.
👉 STEP 5: It's also helpful to include an "expected" and "actual" result.
But if that's not relevant, feel free to delete those fields.
--------------------------------------------------------------------------->

**Expected result:** <!-- What you expected these steps to accomplish -->

**Actual result:** <!-- If an error occurred, include the full error message text and any call stack. -->

## Details

<!--------------------------------------------------------------------------
👉 STEP 6: Provide any additional information you think might be helpful:
What do you think is the cause of this problem?
How do you think we should fix this?
--------------------------------------------------------------------------->

## Standard questions

Please answer these questions to help us investigate your issue more quickly:

| Question | Answer |
| -------- | -------- |
| `@rushstack/lockfile-explorer` version? | <!-- X.Y.Z --> |
| Operating system? | <!-- Windows / Mac / Linux --> |
| Would you consider contributing a PR? | <!-- Yes / No --> |
| Node.js version (`node -v`)? | <!-- X.Y.Z --> |
17 changes: 16 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,25 @@
Pushing additional commits with "small" fixes often invalidates testing.
--------------------------------------------------------------------------->

## Impacted documentation

<!--------------------------------------------------------------------------
👉 STEP 7: Don't forget to run "rush change":
👉 STEP 7: Does your PR affect anything that is discussed in the website docs?
If so, please paste the URL of each affected web page, so we will
remember to update the documentation after your PR is merged.
(Updating the website is appreciated but not required.)
If no docs are impacted, delete the "Impacted documentation" section.
If you modified a JSON schema, remember to update init templates such as:
rush-lib/assets/rush-init/*.json
api-extractor/src/schemas/api-extractor-template.json
--------------------------------------------------------------------------->

<!--------------------------------------------------------------------------
👉 STEP 8: Don't forget to run "rush change":
https://rushjs.io/pages/best_practices/change_logs/
--------------------------------------------------------------------------->


<!-- Have a question? Ask for help in the chat room: https://rushstack.zulipchat.com/ -->
67 changes: 67 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: CI
on:
push:
branches: ['main']
pull_request:
branches: ['main']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
strategy:
matrix:
include:
- NodeVersion: 16.20.x
NodeVersionDisplayName: 16
OS: ubuntu-latest
- NodeVersion: 18.18.x
NodeVersionDisplayName: 18
OS: ubuntu-latest
- NodeVersion: 20.9.x
NodeVersionDisplayName: 20
OS: ubuntu-latest
- NodeVersion: 18.18.x
NodeVersionDisplayName: 18
OS: windows-latest
name: Node.js v${{ matrix.NodeVersionDisplayName }} (${{ matrix.OS }})
runs-on: ${{ matrix.OS }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Git config user
run: |
git config --local user.name "Rushbot"
git config --local user.email "rushbot@users.noreply.github.com"
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.NodeVersion }}

- name: Verify Change Logs
run: node common/scripts/install-run-rush.js change --verify

- name: Rush Install
run: node common/scripts/install-run-rush.js install

# - if: runner.os == 'Linux'
# name: Start xvfb
# run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &

- name: Rush retest (install-run-rush)
run: node common/scripts/install-run-rush.js retest --verbose --production
env:
# Prevent time-based browserslist update warning
# See https://github.com/microsoft/rushstack/issues/2981
BROWSERSLIST_IGNORE_OLD_DATA: 1

- name: Ensure repo README is up-to-date
run: node repo-scripts/repo-toolbox/lib/start.js readme --verify

- name: Rush test (rush-lib)
run: node apps/rush/lib/start-dev.js test --verbose --production --timeline
env:
# Prevent time-based browserslist update warning
# See https://github.com/microsoft/rushstack/issues/2981
BROWSERSLIST_IGNORE_OLD_DATA: 1

0 comments on commit c718975

Please sign in to comment.