Skip to content

Commit

Permalink
Merge branch 'rewrite' into tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Jul 30, 2024
2 parents 62218b3 + d6acf8d commit d5ba65a
Show file tree
Hide file tree
Showing 40 changed files with 2,317 additions and 3,979 deletions.
28 changes: 0 additions & 28 deletions .eslintrc

This file was deleted.

9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Bug report
about: Report a bug
---

### Bug report

- Part of code where error occurred
- What error occurred
23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Changes

<!-- A clear and detailed description of the changes that you have done -->

<details>
<summary>Screenshots</summary>
<!--
Screenshots of the code running (if applicable)
Including these screenshots will assist the reviewing and speeding up the process
-->

</details>

<details>
<summary>Checkboxes</summary>

- [x] I've added new features.
- [ ] I've fixed bug. (_optional_ you can mention a issue if there is one)
- [ ] I've corrected the spelling in README, documentation, etc.
- [ ] I've check for issues. (`npm run lint`)
- [ ] I've fixed my formatting. (`npm run prettier`)

</details>
11 changes: 11 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Security Policy
## Reporting a Vulnerability

If a vulnerability is found within this project, as long as you follow the steps for responsible disclosure, there will
be no issue and the team will be greatful for your actions.

To report a vulnerability you can do so in the [Discord Server](https://discord.gg/NSEBNMM) by openeing a support ticket
or you can contact the primary contributor of this repository using the following contact methods:

- @kathund. on Discord
- @kathundd on Telegram
24 changes: 24 additions & 0 deletions .github/labels.yml
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: 10
color: 5D9801
M:
name: size/M
lines: 50
color: 7F7203
L:
name: size/L
lines: 200
color: A14C05
XL:
name: size/XL
lines: 1000
color: C32607
XXL:
name: size/XXL
lines: 5000
color: E50009
100 changes: 100 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: 'CI/CD'
on:
push:
workflow_dispatch:
pull_request:

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 i

prettier:
name: check linting (prettier)
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 i

- name: Check prettier
run: pnpm prettier:check

eslint:
name: check linting (eslint)
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 i

- name: Check eslint
run: pnpm lint:check

build:
name: build
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 i

- name:
run: cp config.example.json config.json

- name: Check eslint
run: pnpm build
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/config.json
node_modules/
package-lock.json
logs/
dist/
build/
12 changes: 8 additions & 4 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"bracketSameLine": true,
"trailingComma": "none",
"arrowParens": "always",
"trailingComma": "es5",
"bracketSpacing": true,
"proseWrap": "always",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 2
}
"printWidth": 120,
"endOfLine": "lf",
"useTabs": false,
"tabWidth": 2,
"semi": true
}
3 changes: 1 addition & 2 deletions config.example.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"token": "DISCORD_BOT_TOKEN",
"hypixelAPI": "HYPIXEL_API_KEY",
"mongoURL": "MONGO_DB_URL",
"teamRole": "TEAM_ROLE_ID",
"devRole": "DEV_ROLE_ID",
"contributorsRole": "CONTRIBUTORS_ROLE_ID"
"contributorsRole": "CONTRIBUTORS_ROLE_ID",
"supportCategory": "SUPPORT_CATEGORY_ID"
}
6 changes: 0 additions & 6 deletions docs-gen/.eslintrc

This file was deleted.

21 changes: 0 additions & 21 deletions docs-gen/LICENSE

This file was deleted.

5 changes: 0 additions & 5 deletions docs-gen/README.md

This file was deleted.

1 change: 0 additions & 1 deletion docs-gen/index.js

This file was deleted.

18 changes: 0 additions & 18 deletions docs-gen/package-lock.json

This file was deleted.

58 changes: 0 additions & 58 deletions docs-gen/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions docs-gen/sources.json

This file was deleted.

Loading

0 comments on commit d5ba65a

Please sign in to comment.