-
Notifications
You must be signed in to change notification settings - Fork 2
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
0 parents
commit c29c45f
Showing
290 changed files
with
27,230 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,77 @@ | ||
# Prevent Git to auto detect text files and perform LF normalization. | ||
* -text | ||
|
||
# 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. | ||
# The item with `eol=crlf` is converted to LF on checkin, back to CRLF on checkout. | ||
|
||
# To get full extension list in the repo, remove the node_modules folder and run the following PowerShell cmdlet. | ||
# PS> Get-ChildItem . -Recurse | Where-Object { -not $_.PSIsContainer } | ForEach-Object { $_.Extension.ToLower() } | Sort-Object | Get-Unique | ||
|
||
# If new extensions are added, please refresh the repo with the following commands. | ||
# Reference: https://git-scm.com/docs/gitattributes | ||
# > rm .git/index # Remove the index to force Git to | ||
# > git reset # re-scan the working directory | ||
# > git status # Show files that will be normalized | ||
# > git add -u | ||
# > 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 | ||
# a period in the filename. | ||
/*/*/bin/+([!.]) -text | ||
# 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,30 @@ | ||
<!-- PULL REQUEST TEMPLATE --> | ||
<!-- (Update "[ ]" to "[x]" to check a box) --> | ||
|
||
### Basic Checks | ||
|
||
Have you run `rush change` for this change? | ||
|
||
- [ ] Yes | ||
- [ ] No | ||
|
||
If **No**, please run `rush change` before, this is necessary. | ||
|
||
If adding a **new feature**, the PR's description includes: | ||
|
||
- [ ] Reason for adding this feature | ||
- [ ] How to use | ||
- [ ] A basic example | ||
|
||
**Does this PR introduce a breaking change?** (check one) | ||
|
||
- [ ] Yes | ||
- [ ] No | ||
|
||
If yes, please describe the impact and migration path for existing applications: | ||
|
||
### Summary | ||
|
||
### Detail | ||
|
||
### How to test it |
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,29 @@ | ||
name: Build and Test | ||
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: tiktokbot | ||
email: [email protected] | ||
- 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 | ||
- name: Rush test | ||
run: node common/scripts/install-run-rush.js test --verbose |
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,29 @@ | ||
name: Publish NPM Packages | ||
on: | ||
workflow_dispatch | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
token: ${{ secrets.BOT_ACCESS_TOKEN }} | ||
- name: Git config user | ||
uses: snow-actions/[email protected] | ||
with: | ||
name: tiktokbot | ||
email: [email protected] | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Rush Install | ||
run: node common/scripts/install-run-rush.js install | ||
- name: Rush build | ||
run: node common/scripts/install-run-rush.js build --verbose --production | ||
- name: Rush test | ||
run: node common/scripts/install-run-rush.js test --verbose | ||
- name: Rush publish | ||
run: node common/scripts/install-run-rush.js publish --apply --publish --target-branch ${{ github.ref_name }} | ||
env: | ||
NPM_AUTH_TOKEN: ${{ secrets.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,70 @@ | ||
# 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 | ||
|
||
# Rush temporary files | ||
common/deploy/ | ||
common/temp/ | ||
common/autoinstallers/*/.npmrc | ||
**/.rush/temp/ | ||
|
||
# Heft | ||
.heft | ||
|
||
temp/ |
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,108 @@ | ||
#------------------------------------------------------------------------------------------------------------------- | ||
# Keep this section in sync with .gitignore | ||
#------------------------------------------------------------------------------------------------------------------- | ||
|
||
# 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 | ||
|
||
# Rush temporary files | ||
common/deploy/ | ||
common/temp/ | ||
**/.rush/temp/ | ||
|
||
# Common toolchain intermediate files | ||
temp | ||
lib | ||
lib-amd | ||
lib-es6 | ||
dist | ||
*.scss.ts | ||
*.sass.ts | ||
|
||
# Visual Studio Code | ||
.vscode | ||
|
||
# Remove eventually | ||
package-deps.json | ||
|
||
#------------------------------------------------------------------------------------------------------------------- | ||
# Prettier-specific overrides | ||
#------------------------------------------------------------------------------------------------------------------- | ||
|
||
# Machine-egnerated files | ||
common/reviews | ||
common/changes | ||
common/scripts | ||
common/config/rush/browser-approved-packages.json | ||
common/config/rush/nonbrowser-approved-packages.json | ||
CHANGELOG.* | ||
pnpm-lock.yaml | ||
build-tests/*/etc | ||
dist-dev | ||
dist-prod | ||
|
||
# Prettier doesn't understand the /*[LINE "HYPOTHETICAL"]*/ macros in these files: | ||
libraries/rush-lib/assets/rush-init/ | ||
|
||
# These are intentionally invalid files | ||
libraries/heft-config-file/src/test/errorCases/invalidJson/config.json | ||
|
||
# We'll consider enabling this later; Prettier reformats code blocks, which affects end-user content | ||
*.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,13 @@ | ||
// Documentation for this file: https://prettier.io/docs/en/configuration.html | ||
module.exports = { | ||
// We use a larger print width because Prettier's word-wrapping seems to be tuned | ||
// for plain JavaScript without type annotations | ||
printWidth: 110, | ||
// Microsoft style quotes | ||
singleQuote: true, | ||
// Preserve existing newlines | ||
endOfLine: 'auto', | ||
// For ES5, trailing commas cannot be used in function parameters; it is counterintuitive | ||
// to use them for arrays only | ||
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,25 @@ | ||
// Place your settings in this file to overwrite default and user settings. | ||
{ | ||
// Controls the rendering size of tabs in characters. Accepted values: "auto", 2, 4, 6, etc. If set to "auto", the value will be guessed when a file is opened. | ||
"editor.tabSize": 2, | ||
// Controls after how many characters the editor will wrap to the next line. Setting this to 0 turns on viewport width wrapping | ||
// When enabled, will trim trailing whitespace when you save a file. | ||
"files.trimTrailingWhitespace": true, | ||
// Controls if the editor should automatically close brackets after opening them | ||
"editor.autoClosingBrackets": "never", | ||
// Configure glob patterns for excluding files and folders in searches. Inherits all glob patterns from the file.exclude setting. | ||
"search.exclude": { | ||
"**/node_modules": true, | ||
"**/bower_components": true, | ||
"**/dist": true, | ||
"**/lib": true, | ||
"**/lib-amd": true, | ||
"**/test/**/temp": false, | ||
"**/temp": true, | ||
"**/coverage": true | ||
}, | ||
"files.associations": { | ||
"**/package.json": "json", | ||
"**/*.json": "jsonc" | ||
} | ||
} |
Oops, something went wrong.