Skip to content

Commit

Permalink
Merge pull request microsoft#4051 from dmichon-msft/user/danade/Merge…
Browse files Browse the repository at this point in the history
…Main

Update heft-next RC with latest main
  • Loading branch information
iclanton authored Apr 5, 2023
2 parents 49f0a2d + bf0d5ef commit 1bad5e9
Show file tree
Hide file tree
Showing 684 changed files with 25,333 additions and 6,082 deletions.
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! "
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
86 changes: 86 additions & 0 deletions .github/workflows/file-doc-tickets.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ lib-amd
lib-es6
lib-esnext
lib-commonjs
lib-shim
dist
*.scss.ts
*.sass.ts
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
The home for various projects maintained by the Rush Stack community, whose mission is to develop reusable tooling
for large scale TypeScript monorepos.

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=69618902&machine=standardLinux32gb&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=WestUs2)

## Documentation Links

Expand Down Expand Up @@ -90,6 +91,7 @@ These GitHub repositories provide supplementary resources for Rush Stack:
| [/webpack/loader-raw-script](./webpack/loader-raw-script/) | [![npm version](https://badge.fury.io/js/%40rushstack%2Floader-raw-script.svg)](https://badge.fury.io/js/%40rushstack%2Floader-raw-script) | [changelog](./webpack/loader-raw-script/CHANGELOG.md) | [@rushstack/loader-raw-script](https://www.npmjs.com/package/@rushstack/loader-raw-script) |
| [/webpack/preserve-dynamic-require-plugin](./webpack/preserve-dynamic-require-plugin/) | [![npm version](https://badge.fury.io/js/%40rushstack%2Fwebpack-preserve-dynamic-require-plugin.svg)](https://badge.fury.io/js/%40rushstack%2Fwebpack-preserve-dynamic-require-plugin) | [changelog](./webpack/preserve-dynamic-require-plugin/CHANGELOG.md) | [@rushstack/webpack-preserve-dynamic-require-plugin](https://www.npmjs.com/package/@rushstack/webpack-preserve-dynamic-require-plugin) |
| [/webpack/set-webpack-public-path-plugin](./webpack/set-webpack-public-path-plugin/) | [![npm version](https://badge.fury.io/js/%40rushstack%2Fset-webpack-public-path-plugin.svg)](https://badge.fury.io/js/%40rushstack%2Fset-webpack-public-path-plugin) | [changelog](./webpack/set-webpack-public-path-plugin/CHANGELOG.md) | [@rushstack/set-webpack-public-path-plugin](https://www.npmjs.com/package/@rushstack/set-webpack-public-path-plugin) |
| [/webpack/webpack-embedded-dependencies-plugin](./webpack/webpack-embedded-dependencies-plugin/) | [![npm version](https://badge.fury.io/js/%40rushstack%2Fwebpack-embedded-dependencies-plugin.svg)](https://badge.fury.io/js/%40rushstack%2Fwebpack-embedded-dependencies-plugin) | [changelog](./webpack/webpack-embedded-dependencies-plugin/CHANGELOG.md) | [@rushstack/webpack-embedded-dependencies-plugin](https://www.npmjs.com/package/@rushstack/webpack-embedded-dependencies-plugin) |
| [/webpack/webpack-plugin-utilities](./webpack/webpack-plugin-utilities/) | [![npm version](https://badge.fury.io/js/%40rushstack%2Fwebpack-plugin-utilities.svg)](https://badge.fury.io/js/%40rushstack%2Fwebpack-plugin-utilities) | [changelog](./webpack/webpack-plugin-utilities/CHANGELOG.md) | [@rushstack/webpack-plugin-utilities](https://www.npmjs.com/package/@rushstack/webpack-plugin-utilities) |
| [/webpack/webpack4-localization-plugin](./webpack/webpack4-localization-plugin/) | [![npm version](https://badge.fury.io/js/%40rushstack%2Fwebpack4-localization-plugin.svg)](https://badge.fury.io/js/%40rushstack%2Fwebpack4-localization-plugin) | [changelog](./webpack/webpack4-localization-plugin/CHANGELOG.md) | [@rushstack/webpack4-localization-plugin](https://www.npmjs.com/package/@rushstack/webpack4-localization-plugin) |
| [/webpack/webpack4-module-minifier-plugin](./webpack/webpack4-module-minifier-plugin/) | [![npm version](https://badge.fury.io/js/%40rushstack%2Fwebpack4-module-minifier-plugin.svg)](https://badge.fury.io/js/%40rushstack%2Fwebpack4-module-minifier-plugin) | [changelog](./webpack/webpack4-module-minifier-plugin/CHANGELOG.md) | [@rushstack/webpack4-module-minifier-plugin](https://www.npmjs.com/package/@rushstack/webpack4-module-minifier-plugin) |
Expand Down Expand Up @@ -153,6 +155,7 @@ These GitHub repositories provide supplementary resources for Rush Stack:
| [/build-tests/rush-project-change-analyzer-test](./build-tests/rush-project-change-analyzer-test/) | This is an example project that uses rush-lib's ProjectChangeAnalyzer to |
| [/build-tests/set-webpack-public-path-plugin-webpack4-test](./build-tests/set-webpack-public-path-plugin-webpack4-test/) | Building this project tests the set-webpack-public-path-plugin using Webpack 4 |
| [/build-tests/ts-command-line-test](./build-tests/ts-command-line-test/) | Building this project is a regression test for ts-command-line |
| [/libraries/rush-themed-ui](./libraries/rush-themed-ui/) | Rush Component Library: a set of themed components for rush projects |
| [/libraries/rushell](./libraries/rushell/) | Execute shell commands using a consistent syntax on every platform |
| [/repo-scripts/doc-plugin-rush-stack](./repo-scripts/doc-plugin-rush-stack/) | API Documenter plugin used with the rushstack.io website |
| [/repo-scripts/generate-api-docs](./repo-scripts/generate-api-docs/) | Used to generate API docs for the rushstack.io website |
Expand Down
Loading

0 comments on commit 1bad5e9

Please sign in to comment.