forked from microsoft/rushstack
-
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 branch 'main' of https://github.com/microsoft/rushstack into us…
…er/danade/MergeMain
- Loading branch information
Showing
659 changed files
with
24,366 additions
and
5,029 deletions.
There are no files selected for viewing
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,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" | ||
} |
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,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! " |
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -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 |
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,86 @@ | ||
################################################################################ | ||
# When pull requests are merged to the main branch, evaluate the pull request | ||
# body and file a documentation ticket against the rushstack-websites repo | ||
# with a corresponding documentation task. | ||
# | ||
# The pull request body must contain non-comment, non-whitespace text below | ||
# the "Impacted documentation" header in the PR template to file a | ||
# documentation ticket. | ||
################################################################################ | ||
name: File Doc Tickets | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- closed | ||
|
||
jobs: | ||
file-tickets: | ||
name: File Tickets | ||
if: ${{ github.event.pull_request.merged }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Use nodejs | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Parse PR body | ||
run: | | ||
cat <<-"EOF" > event.json | ||
${{ toJson(github.event) }} | ||
EOF | ||
cat <<-"EOF" | node | ||
const fs = require('fs'); | ||
const EVENT_FILE = 'event.json'; | ||
const RESULT_FILE = 'issue.md'; | ||
const DELIMITER = '## Impacted documentation'; | ||
const event = JSON.parse(fs.readFileSync(EVENT_FILE, 'utf8')); | ||
const strippedBody = (event.pull_request.body || '').replace(/<!-+(.|\r|\n)+?-+>/g, ''); | ||
const delimIndex = strippedBody.indexOf(DELIMITER); | ||
if (delimIndex < 0) { | ||
console.log('No documentation tasks detected -- skipping doc ticket.'); | ||
process.exit(0); | ||
} | ||
const delimBody = strippedBody.substring(delimIndex + DELIMITER.length).trim(); | ||
if (delimBody.length === 0) { | ||
console.log('No documentation tasks detected -- skipping doc ticket.'); | ||
process.exit(0); | ||
} | ||
const quotedBody = delimBody.split('\n').map(line => `> ${line}`).join('\n'); | ||
fs.writeFileSync(RESULT_FILE, [ | ||
'### Summary', | ||
'', | ||
'Follow up on documentation tasks from ' + event.pull_request.html_url + '.', | ||
'', | ||
'### Details', | ||
'', | ||
'This ticket was generated automatically. Suggested documentation updates:', | ||
'', | ||
quotedBody, | ||
'' | ||
].join('\n'), 'utf8'); | ||
EOF | ||
if [ -f issue.md ]; then | ||
echo "FILE_TICKET=1" >> $GITHUB_ENV | ||
fi | ||
- name: File ticket | ||
if: ${{ env.FILE_TICKET == '1' }} | ||
uses: peter-evans/create-issue-from-file@af31b99c72f9e91877aea8a2d96fd613beafac84 # @v4 (locked) | ||
with: | ||
repository: microsoft/rushstack-websites | ||
token: '${{ secrets.RUSHSTACK_WEBSITES_TOKEN }}' | ||
title: '[doc] ${{ github.event.pull_request.title }}' | ||
content-filepath: ./issue.md | ||
labels: | | ||
automated |
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 |
---|---|---|
|
@@ -83,6 +83,7 @@ lib-amd | |
lib-es6 | ||
lib-esnext | ||
lib-commonjs | ||
lib-shim | ||
dist | ||
*.scss.ts | ||
*.sass.ts |
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
Oops, something went wrong.