This repository containing various Angular webapps that power my portfolio website at https://alexstrutz.dev.
node v18.14.2
npm v9.5.0
To get started with this repository, follow the steps below:
npm install
husky install
Run ng start
for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you
change any of the source files.
This command will launch the local development server and make the apps accessible through the specified URLs.
As this page is available in German and English, i18n is used. Static strings need to have a localize
keyword
or an i18n
directive attached. To generate the default localization file (English) run:
ng extract-i18n --format=json --output-path src/locale
Copy/paste the new strings into the German locale and translate them.
In order to standardize commits (and pull request titles) and make the effects of code changes more visible, parts of the Conventional Commits combined with the Devmoji notation is used.
In general, a commit is structured as follows:
<type>[optional scope][optional!]: [optional π₯]<emoji> [optional issue number:] <description>
[optional] Additional information
[optional, if breaking change] BREAKING CHANGES: Reason why the change is declared as such
Type and emoji must be equivalent to each other, for example, β¨ can only be used with feat
. Breaking changes are
marked with a !
and should include the corresponding emoji π₯, for example: `bug!: π₯π ...
β Thanks to a corresponding Git hook, the
devmoji
package takes care of 'emojifying' the commits. You do not need to manually insert emojis into your commit messages. See: Lintingπ‘ Optionally, but recommended, you can run
git config commit.template .\.gitmessage
to use the project's commit template.π‘ For compatibility, only Uniblock emojis from the
ranges U+2600 to U+26FF, U+2700 to U+27BF, U+1F300 to U+1F5FF, and U+1F680 to U+1F6FF may be used.
docs: π Add codegen to readme
fix: π #34: Removed unsightly missing-image icon
add: β #45: Add pageFooter fragment
feat(eloglicko): β¨ #65: Additional markup and styling changes
test(eloglicko): π₯ #64: Remove an additional test
style: π¨ #24: Reformatted footer component spacing
config(eloglicko)!: π₯βοΈ #53: Adjust publication URL for new API endpoint
Name | Emoji | Description |
---|---|---|
feat | β¨ | A new feature. |
fix | π | A bug fix. |
docs | π | Documentation only changes. |
style | π¨ | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc). |
refactor | β»οΈ | A code change that neither fixes a bug nor adds a feature. |
perf | β‘ | A code change that improves performance. |
test | π¨ | Adding missing or correcting existing tests. |
chore | π§ | Changes to auxiliary tools and libraries such as documentation generation. |
deps | π | Add or delete dependencies. |
build | π¦ | Changes related to build processes. |
ci | π· | Updates to the continuous integration system. |
security | π | Fixing security issues. |
breaking | π₯ | Introducing breaking changes. |
config | βοΈ | Changing configuration files. |
Name | Emoji | Description |
---|---|---|
add | β | Changes with a focus on code addition |
remove | π₯ | Changes with a focus on code removal |
The scopes are mostly based on the applications and libraries in the project.
Name | Changes related to |
---|---|
eloglicko | Eloglicko application |
The commit-msg
hook performs commit linting according to the rules mentioned above. If the linter runs successfully,
the commit message is automatically annotated with the corresponding emojis using devmoji
. For the linting itself, we
use commitlint
with a corresponding config (.commitlintrc.js
). An example commit message is also provided
in .gitmessage
and can be adjusted as needed.
This repository is licensed under the MIT License.
If you have any questions or need further assistance, please reach out to us or open an issue in the GitHub repository.