keycloak-theme/README.md

44 lines
1.4 KiB
Markdown
Raw Normal View History

2022-09-06 19:22:23 +02:00
<p align="center">
2024-06-06 09:12:34 +02:00
<i>🚀 <a href="https://keycloakify.dev">Keycloakify</a> v10 starter 🚀</i>
2023-03-17 15:05:28 +01:00
<br/>
<br/>
2022-09-06 19:22:23 +02:00
</p>
2024-06-16 18:08:59 +02:00
This starter is based on Vite. There is also [a Webpack based starter](https://github.com/keycloakify/keycloakify-starter-webpack).
2022-09-06 19:22:23 +02:00
# Quick start
```bash
2023-04-20 02:22:43 +02:00
git clone https://github.com/keycloakify/keycloakify-starter
cd keycloakify-starter
2024-06-07 05:20:57 +02:00
yarn install
2022-09-06 19:22:23 +02:00
```
2024-06-16 18:08:59 +02:00
> NOTE: This setup uses yarn as the default but you can use any package manager you like.
2022-09-06 19:22:23 +02:00
2024-06-16 18:08:59 +02:00
# Testing the theme locally
2023-04-17 02:58:17 +02:00
2024-06-16 18:08:59 +02:00
[Documentation](https://docs.keycloakify.dev/v/v10/testing-your-theme)
2024-06-09 14:25:34 +02:00
2024-06-16 18:08:59 +02:00
# How to customize the theme
2023-04-17 02:58:17 +02:00
2024-06-16 18:08:59 +02:00
[Documentation](https://docs.keycloakify.dev/v/v10/customization-strategies)
2022-09-06 19:22:23 +02:00
2024-06-16 18:08:59 +02:00
# Building the theme
2022-09-06 19:22:23 +02:00
```bash
2024-06-16 18:08:59 +02:00
npm run build-keycloak-theme
2022-09-06 19:22:23 +02:00
```
2024-06-16 18:08:59 +02:00
Note that by default Keycloakify generates multiple .jar files for different versions of Keycloak.
You can customize this behavior, see documentation [here](https://docs.keycloakify.dev/v/v10/targetting-specific-keycloak-versions).
2024-06-06 09:42:01 +02:00
# GitHub Actions
2024-06-07 05:20:57 +02:00
The starter comes with a generic GitHub Actions workflow that builds the theme and publishes
2024-06-06 09:42:01 +02:00
the jars [as GitHub releases artifacts](https://github.com/keycloakify/keycloakify-starter/releases/tag/v7.1.0).
2024-06-08 03:34:31 +02:00
To release a new version **just update the `package.json` version and push**.
2024-06-07 05:20:57 +02:00
To enable the workflow go to your fork of this repository on GitHub then navigate to:
2024-06-08 03:34:31 +02:00
`Settings` > `Actions` > `Workflow permissions`, select `Read and write permissions`.
2024-06-06 09:42:01 +02:00