-
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.
- Loading branch information
Showing
203 changed files
with
18,155 additions
and
0 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,14 @@ | ||
# 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=text | ||
shrinkwrap.yaml merge=binary | ||
npm-shrinkwrap.json merge=binary | ||
yarn.lock merge=binary | ||
|
||
# Rush's JSON config files use JavaScript-style code comments. The rule below prevents pedantic | ||
# syntax highlighters such as GitHub's from highlighting these comments as errors. Your text editor | ||
# may also require a special configuration to allow comments in JSON. | ||
# | ||
# For more information, see this issue: https://github.com/microsoft/rushstack/issues/1088 | ||
# | ||
*.json linguist-language=JSON-with-Comments |
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,27 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
- name: Git config user | ||
uses: snow-actions/[email protected] | ||
with: | ||
name: # Service Account's Name | ||
email: # Service Account's Email Address | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- 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 | ||
- name: Rush rebuild | ||
run: node common/scripts/install-run-rush.js rebuild --verbose --production |
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,81 @@ | ||
# Logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next | ||
|
||
# OS X temporary files | ||
.DS_Store | ||
|
||
# IntelliJ IDEA project files; if you want to commit IntelliJ settings, this recipe may be helpful: | ||
# https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore | ||
.idea/ | ||
*.iml | ||
|
||
# Rush temporary files | ||
common/deploy/ | ||
common/temp/ | ||
common/autoinstallers/*/.npmrc | ||
**/.rush/temp/ | ||
*.lock | ||
|
||
# Heft temporary files | ||
.cache | ||
.heft | ||
|
||
**/dist | ||
**/lib | ||
**/.rollup.cache/ | ||
*storybook.log | ||
storybook-static |
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 @@ | ||
**/*.md |
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,5 @@ | ||
{ | ||
"printWidth": 220, | ||
"arrowParens": "avoid", | ||
"trailingComma": "none" | ||
} |
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,3 @@ | ||
{ | ||
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "streetsidesoftware.code-spell-checker"] | ||
} |
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 @@ | ||
{ | ||
"dc": { | ||
"scope": "typescript,typescriptreact", | ||
"prefix": "dc", | ||
"body": ["const { $0 } = ${1:props};"] | ||
} | ||
} |
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,21 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.tabSize": 2, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "always" | ||
}, | ||
"eslint.useFlatConfig": true, | ||
"eslint.workingDirectories": [ | ||
{ | ||
"pattern": "./packages/*/" | ||
}, | ||
{ | ||
"pattern": "./tools/*/" | ||
}, | ||
{ | ||
"pattern": "./examples/*/" | ||
} | ||
], | ||
"git.branchProtection": ["main"] | ||
} |
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,22 @@ | ||
# Rush uses this file to configure the NPM package registry during installation. It is applicable | ||
# to PNPM, NPM, and Yarn package managers. It is used by operations such as "rush install", | ||
# "rush update", and the "install-run.js" scripts. | ||
# | ||
# NOTE: The "rush publish" command uses .npmrc-publish instead. | ||
# | ||
# Before invoking the package manager, Rush will copy this file to the folder where installation | ||
# is performed. The copied file will omit any config lines that reference environment variables | ||
# that are undefined in that session; this avoids problems that would otherwise result due to | ||
# a missing variable being replaced by an empty string. | ||
# | ||
# * * * SECURITY WARNING * * * | ||
# | ||
# It is NOT recommended to store authentication tokens in a text file on a lab machine, because | ||
# other unrelated processes may be able to read the file. Also, the file may persist indefinitely, | ||
# for example if the machine loses power. A safer practice is to pass the token via an | ||
# environment variable, which can be referenced from .npmrc using ${} expansion. For example: | ||
# | ||
# //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN} | ||
# | ||
registry=https://registry.npmjs.org/ | ||
always-auth=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,20 @@ | ||
# This config file is very similar to common/config/rush/.npmrc, except that .npmrc-publish | ||
# is used by the "rush publish" command, as publishing often involves different credentials | ||
# and registries than other operations. | ||
# | ||
# Before invoking the package manager, Rush will copy this file to "common/temp/publish-home/.npmrc" | ||
# and then temporarily map that folder as the "home directory" for the current user account. | ||
# This enables the same settings to apply for each project folder that gets published. The copied file | ||
# will omit any config lines that reference environment variables that are undefined in that session; | ||
# this avoids problems that would otherwise result due to a missing variable being replaced by | ||
# an empty string. | ||
# | ||
# * * * SECURITY WARNING * * * | ||
# | ||
# It is NOT recommended to store authentication tokens in a text file on a lab machine, because | ||
# other unrelated processes may be able to read the file. Also, the file may persist indefinitely, | ||
# for example if the machine loses power. A safer practice is to pass the token via an | ||
# environment variable, which can be referenced from .npmrc using ${} expansion. For example: | ||
# | ||
# //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN} | ||
# |
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,38 @@ | ||
'use strict'; | ||
|
||
/** | ||
* When using the PNPM package manager, you can use pnpmfile.js to workaround | ||
* dependencies that have mistakes in their package.json file. (This feature is | ||
* functionally similar to Yarn's "resolutions".) | ||
* | ||
* For details, see the PNPM documentation: | ||
* https://pnpm.js.org/docs/en/hooks.html | ||
* | ||
* IMPORTANT: SINCE THIS FILE CONTAINS EXECUTABLE CODE, MODIFYING IT IS LIKELY TO INVALIDATE | ||
* ANY CACHED DEPENDENCY ANALYSIS. After any modification to pnpmfile.js, it's recommended to run | ||
* "rush update --full" so that PNPM will recalculate all version selections. | ||
*/ | ||
module.exports = { | ||
hooks: { | ||
readPackage | ||
} | ||
}; | ||
|
||
/** | ||
* This hook is invoked during installation before a package's dependencies | ||
* are selected. | ||
* The `packageJson` parameter is the deserialized package.json | ||
* contents for the package that is about to be installed. | ||
* The `context` parameter provides a log() function. | ||
* The return value is the updated object. | ||
*/ | ||
function readPackage(packageJson, context) { | ||
|
||
// // The karma types have a missing dependency on typings from the log4js package. | ||
// if (packageJson.name === '@types/karma') { | ||
// context.log('Fixed up dependencies for @types/karma'); | ||
// packageJson.dependencies['log4js'] = '0.6.38'; | ||
// } | ||
|
||
return packageJson; | ||
} |
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,145 @@ | ||
/** | ||
* This configuration file manages Rush's build cache feature. | ||
* More documentation is available on the Rush website: https://rushjs.io | ||
*/ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/build-cache.schema.json", | ||
|
||
/** | ||
* (Required) EXPERIMENTAL - Set this to true to enable the build cache feature. | ||
* | ||
* See https://rushjs.io/pages/maintainer/build_cache/ for details about this experimental feature. | ||
*/ | ||
"buildCacheEnabled": false, | ||
|
||
/** | ||
* (Required) Choose where project build outputs will be cached. | ||
* | ||
* Possible values: "local-only", "azure-blob-storage", "amazon-s3" | ||
*/ | ||
"cacheProvider": "local-only", | ||
|
||
/** | ||
* Setting this property overrides the cache entry ID. If this property is set, it must contain | ||
* a [hash] token. | ||
* | ||
* Other available tokens: | ||
* - [projectName] Example: "@my-scope/my-project" | ||
* - [projectName:normalize] Example: "my-scope+my-project" | ||
* - [phaseName] Example: "_phase:test/api" | ||
* - [phaseName:normalize] Example: "_phase:test+api" | ||
* - [phaseName:trimPrefix] Example: "test/api" | ||
* - [os] Example: "win32" | ||
* - [arch] Example: "x64" | ||
*/ | ||
// "cacheEntryNamePattern": "[projectName:normalize]-[phaseName:normalize]-[hash]" | ||
|
||
/** | ||
* Use this configuration with "cacheProvider"="azure-blob-storage" | ||
*/ | ||
"azureBlobStorageConfiguration": { | ||
/** | ||
* (Required) The name of the the Azure storage account to use for build cache. | ||
*/ | ||
// "storageAccountName": "example", | ||
|
||
/** | ||
* (Required) The name of the container in the Azure storage account to use for build cache. | ||
*/ | ||
// "storageContainerName": "my-container", | ||
|
||
/** | ||
* The Azure environment the storage account exists in. Defaults to AzurePublicCloud. | ||
* | ||
* Possible values: "AzurePublicCloud", "AzureChina", "AzureGermany", "AzureGovernment" | ||
*/ | ||
// "azureEnvironment": "AzurePublicCloud", | ||
|
||
/** | ||
* An optional prefix for cache item blob names. | ||
*/ | ||
// "blobPrefix": "my-prefix", | ||
|
||
/** | ||
* If set to true, allow writing to the cache. Defaults to false. | ||
*/ | ||
// "isCacheWriteAllowed": true | ||
}, | ||
|
||
/** | ||
* Use this configuration with "cacheProvider"="amazon-s3" | ||
*/ | ||
"amazonS3Configuration": { | ||
/** | ||
* (Required unless s3Endpoint is specified) The name of the bucket to use for build cache. | ||
* Example: "my-bucket" | ||
*/ | ||
// "s3Bucket": "my-bucket", | ||
|
||
/** | ||
* (Required unless s3Bucket is specified) The Amazon S3 endpoint of the bucket to use for build cache. | ||
* This should not include any path; use the s3Prefix to set the path. | ||
* Examples: "my-bucket.s3.us-east-2.amazonaws.com" or "http://localhost:9000" | ||
*/ | ||
// "s3Endpoint": "https://my-bucket.s3.us-east-2.amazonaws.com", | ||
|
||
/** | ||
* (Required) The Amazon S3 region of the bucket to use for build cache. | ||
* Example: "us-east-1" | ||
*/ | ||
// "s3Region": "us-east-1", | ||
|
||
/** | ||
* An optional prefix ("folder") for cache items. It should not start with "/". | ||
*/ | ||
// "s3Prefix": "my-prefix", | ||
|
||
/** | ||
* If set to true, allow writing to the cache. Defaults to false. | ||
*/ | ||
// "isCacheWriteAllowed": true | ||
}, | ||
|
||
/** | ||
* Use this configuration with "cacheProvider"="http" | ||
*/ | ||
"httpConfiguration": { | ||
/** | ||
* (Required) The URL of the server that stores the caches. | ||
* Example: "https://build-cacches.example.com/" | ||
*/ | ||
// "url": "https://build-cacches.example.com/", | ||
|
||
/** | ||
* (Optional) The HTTP method to use when writing to the cache (defaults to PUT). | ||
* Should be one of PUT, POST, or PATCH. | ||
* Example: "PUT" | ||
*/ | ||
// "uploadMethod": "PUT", | ||
|
||
/** | ||
* (Optional) HTTP headers to pass to the cache server. | ||
* Example: { "X-HTTP-Company-Id": "109283" } | ||
*/ | ||
// "headers": {}, | ||
|
||
/** | ||
* (Optional) Shell command that prints the authorization token needed to communicate with the | ||
* cache server, and exits with exit code 0. This command will be executed from the root of | ||
* the monorepo. | ||
* Example: { "exec": "node", "args": ["common/scripts/auth.js"] } | ||
*/ | ||
// "tokenHandler": { "exec": "node", "args": ["common/scripts/auth.js"] }, | ||
|
||
/** | ||
* (Optional) Prefix for cache keys. | ||
* Example: "my-company-" | ||
*/ | ||
// "cacheKeyPrefix": "", | ||
|
||
/** | ||
* (Optional) If set to true, allow writing to the cache. Defaults to false. | ||
*/ | ||
// "isCacheWriteAllowed": true | ||
} | ||
} |
Oops, something went wrong.