A Discord bot that automatically organizes draft tournaments on Magic The Gathering Discord servers.
To use this repository, you need to have the following tools installed:
- Node.js (v18.15.0)
- pnpm (v7.30.1)
- Docker
- Docker Compose
We use pnpm built-in support to manage our monorepository.
- Adminer :
localhost:7000
- Server :
localhost:6000
To install all dependencies, run:
pnpm install
If you want to clean all dependencies, you can run:
pnpm clean
Then reinstalls dependencies.
pnpm dev:bot
Now you are ready !
We follow the Conventional Commits specs for our commit message and this is check on commit-msg
.
Here is the list of commit types and branch prefixes you can chose from :
Commit Type | Title | Description |
---|---|---|
feat |
✨ Features | A new feature |
fix |
🐛 Bug Fixes | A bug Fix |
docs |
📚 Documentation | Documentation only changes |
style |
💎 Styles | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) |
refactor |
📦 Code Refactoring | A code change that neither fixes a bug nor adds a feature |
perf |
🚀 Performance Improvements | A code change that improves performance |
test |
🚨 Tests | Adding missing tests or correcting existing tests |
build |
🛠 Builds | Changes that affect the build system or external dependencies (example scopes: next, webpack, pnpm) |
ci |
⚙️ Continuous Integrations | Changes to our CI configuration files and scripts |
chore |
♻️ Chores | Other changes that don't modify src or test files |
revert |
🗑 Reverts | Reverts a previous commit |
Structure :
<user>/<type>/<short-description>
Examples :
rv/feat/signup-page
jk/ci/github-actions-setup
nc/fix/calendar-input-focus-not-working
Structure :
<type>(optional scope): <description>
Examples :
ci(front): setup storybook tests
fix: send cors headers
feat(groups): add comment section
To maintain some minimal standards within our codebase, we rely on prettier that is configured through .prettierrc
. We use .prettierignore
to avoid conflicts with some configuration files that would otherwise be broken by using prettier. Make sure prettier is correctly used in VSCode by installing the VSCode extension.
We did set up a .nvmrc
file to allow developers to quickly change and use the right node version. See nvm package and deeper shell integration.