A cheatsheet is a condensed reference guide that provides quick and easy access to key information on a specific subject or task. Cheat sheets can be particularly useful for learners or professionals who need to quickly refresh their knowledge or learn new skills, as they provide a quick and easy way to access key information in a condensed format.1
To contribute to this project, just follow these simple steps:
# Clone repository
git clone https://github.com/PatrickMaul/cheatsheet
# Change directory & install dependencies
cd cheatsheet
npm install
# Add `./src/config.json` manually
# `development` => No impact at all
# `branch` => Current feature branch
# or
# Generate `config.json`
git checkout -b <NEW_BRANCHNAME>
npm run set_dev_config
# Start development server
npm run dev
To ensure that this repository is always neat and tidy, a few simple but important rules have been established.
Changes made without following these rules will not be merged.
- Always work on a feature branch, preferably related to an issue on GitHub.
- Relating to an issue on GitHub
- [ISSUE_ID]-[LOWERCASED_ISSUE_NAME_SPLIT_BY_HYPHENS]
e.g.:36-update-locale-readme-for-developers
- Or use "Create a branch" function from GitHub
- [ISSUE_ID]-[LOWERCASED_ISSUE_NAME_SPLIT_BY_HYPHENS]
- Otherwise
- Write an issue on GitHub and follow 1.
- Branch patterns
- IDEA-[LOWERCASED_SHORT_DESCRIPTION_SPLIT_BY_HYPHENS]
- HOTFIX-[LOWERCASED_SHORT_DESCRIPTION_SPLIT_BY_HYPHENS]
- DOC-[LOWERCASED_SHORT_DESCRIPTION_SPLIT_BY_HYPHENS]
- Relating to an issue on GitHub
Both have to look exactly like this:
[description]: <> (YOUR DESCRIPTION GOES HERE)
[preservedKeywords]: <> (YOUR PRESERVED COMMA SEPARATED KEYWORDS)
You write your values between the brackets.
Do not change these order!
Place this always on top of the .md
file!
Here you can find some how-to's you may need during develop.
Use [Link name](?path=path/to/document.md)
to link another file inside ./src/docs/
.
The resulting file indexed_docs_directory.json
should not be pushed.
Open terminal from project directory and use node ./src/assets/scripts/indexing_docs_directory.js
to generate a new index from src/docs/
.
Only the repo owner and selected collaborators are authorized to deploy new versions. A new feature can only be built into a new version via a feature branch that was previously merged into the main
!
New versions are built by merging main
into production
. If necessary, a last commit is pushed to main
, which at most updates the changelog in ./src/docs/index.md
.
Steps to deploy new versions:
- Check changelog, update if necessary.
- Commit message =>
update: changelog for version [
SEMANTIC_VERSIONING]
- Commit message =>
- Request from
main
toproduction
- Merge title => SEMANTIC_VERSIONING
- Merge
- Wait for GitHub actions
- Automatically triggered when push to
production
- Automatically triggered when push to
Run Unit Tests with Vitest
npm run test:unit
Lint with ESLint
npm run lint