-
Notifications
You must be signed in to change notification settings - Fork 28
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
565 changed files
with
26,442 additions
and
28,459 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,13 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 120 | ||
|
||
[*.{md,markdown}] | ||
trim_trailing_whitespace = 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 @@ | ||
HYPIXEL_KEY=HYPIXEL_API_KEY |
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
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
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
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
This file was deleted.
Oops, something went wrong.
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,24 @@ | ||
XS: | ||
name: size/XS | ||
lines: 0 | ||
color: 3CBF00 | ||
S: | ||
name: size/S | ||
lines: 50 | ||
color: 5D9801 | ||
M: | ||
name: size/M | ||
lines: 200 | ||
color: 7F7203 | ||
L: | ||
name: size/L | ||
lines: 1000 | ||
color: A14C05 | ||
XL: | ||
name: size/XL | ||
lines: 3000 | ||
color: C32607 | ||
XXL: | ||
name: size/XXL | ||
lines: 7500 | ||
color: E50009 |
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 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": ["config:base", "group:allNonMajor"], | ||
"rebaseWhen": "behind-base-branch", | ||
"ignoreDeps": ["pnpm", "node"], | ||
"semanticCommits": "enabled", | ||
"labels": ["dependencies"], | ||
"schedule": ["* 0 * * *"], | ||
"enabledManagers": ["npm"], | ||
"rangeStrategy": "bump", | ||
"prConcurrentLimit": 5, | ||
"includeForks": true, | ||
"prHourlyLimit": 0, | ||
"timezone": "UTC", | ||
"packageRules": [ | ||
{ | ||
"matchPackageNames": ["skyhelper-networth"], | ||
"updateTypes": ["minor"], | ||
"automerge": true | ||
}, | ||
{ | ||
"matchUpdateTypes": ["minor", "patch"], | ||
"matchCurrentVersion": "!/^0/", | ||
"commitMessagePrefix": "chore(deps):" | ||
} | ||
] | ||
} |
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,54 @@ | ||
import { parseString } from 'xml2js'; | ||
import { readFile } from 'fs'; | ||
|
||
function parseXMLFile(): Promise<any> { | ||
return new Promise((resolve, reject) => { | ||
readFile('.github/coverageData.xml', 'utf8', (err, data) => { | ||
if (err) { | ||
reject('File Dose not exist!'); | ||
return; | ||
} | ||
|
||
parseString(data, (err, result) => { | ||
if (err) { | ||
reject('Something Went wrong!'); | ||
return; | ||
} | ||
|
||
resolve(result); | ||
}); | ||
}); | ||
}); | ||
} | ||
|
||
const data = await parseXMLFile(); | ||
const codeStats = data.coverage.project[0].metrics[0].$; | ||
const info = { | ||
statements: Number(codeStats.statements), | ||
coveredstatements: Number(codeStats.coveredstatements), | ||
conditionals: Number(codeStats.conditionals), | ||
coveredconditionals: Number(codeStats.coveredconditionals), | ||
methods: Number(codeStats.methods), | ||
coveredmethods: Number(codeStats.coveredmethods) | ||
}; | ||
|
||
if (95 > (info.coveredstatements / info.statements) * 100) { | ||
throw new Error('Statements is required to be 95% or higher'); | ||
} | ||
|
||
if (95 > (info.coveredconditionals / info.conditionals) * 100) { | ||
throw new Error('Conditionals is required to be 95% or higher'); | ||
} | ||
|
||
if (95 > (info.coveredmethods / info.methods) * 100) { | ||
throw new Error('Methods is required to be 95% or higher'); | ||
} | ||
|
||
if ( | ||
95 > | ||
((info.coveredstatements + info.coveredconditionals + info.coveredmethods) / | ||
(info.statements + info.conditionals + info.methods)) * | ||
100 | ||
) { | ||
throw new Error('Everythng Combinded is required to be 95% or higher'); | ||
} |
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 @@ | ||
name: 'Update Docs' | ||
on: | ||
push: | ||
paths: | ||
- src/** | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
env: | ||
NODE_VERSION: '20' | ||
|
||
jobs: | ||
pnpm: | ||
name: Install dependencies (pnpm) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Use Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
cache: 'pnpm' | ||
|
||
- name: Install node dependencies | ||
run: pnpm install | ||
|
||
UpdateDocs: | ||
name: Update Documentation | ||
needs: [pnpm] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Git checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
|
||
- name: Use Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
cache: 'pnpm' | ||
|
||
- name: Install node dependencies | ||
run: pnpm install | ||
|
||
- name: Generate Documentation | ||
run: pnpm docgen | ||
|
||
- name: Move new documentation to temp directory | ||
run: mv documentation/ tmp/ | ||
|
||
- name: Switch to documentation branch | ||
run: | | ||
git fetch --all | ||
git checkout docs | ||
- name: Clear Old Documentation files | ||
run: | ||
rm -rf assets/ classes/ functions/ interfaces/ modules/ types/ variables/ 404.html hierarchy.html index.html | ||
modules.html sitemap.xml .nojekyll | ||
|
||
- name: Move new Documentation files into place | ||
run: | | ||
mv tmp/.nojekyll ./ | ||
mv tmp/* ./ | ||
rm -r tmp/ | ||
- name: Commit and push changes | ||
run: | | ||
git config --global user.name "Docs Updater[bot]" | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git add . | ||
git commit -m "Update Documentation" || echo "No changes to commit" | ||
git push origin documentation |
Oops, something went wrong.