From f3fb360ce0bd922b3b2897bec8692d3a115aa0c8 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Fri, 5 Mar 2021 20:43:22 +0100 Subject: [PATCH] Rename keycloakify --- README.md | 14 +++++++------- package.json | 8 ++++---- src/bin/install-builtin-keycloak-themes.ts | 2 +- src/lib/components/Template.tsx | 2 +- src/test/setupSampleReactProject.ts | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 217cc91c..849744d2 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,10 @@ 🔏 Keycloak theme generator for Reacts app 🔏

- - - - + + + +

@@ -30,7 +30,7 @@ to reproduce the look and feel of a specific app. Not mentioning the maintenance Wouldn't it be great if we could just design the login and register pages as if they where part of our app while still letting Keycloak handle the heavy lifting of actually authenticating the users? -Here is `yarn add keycloak-react-theming` for you 🍸 +Here is `yarn add keycloakify` for you 🍸 TODO: Insert video after. @@ -38,7 +38,7 @@ TODO: Insert video after. ## Setting up the build tool -Add `keycloak-react-theming` to the dev dependencies of your project `npm install --save-dev keycloak-react-theming` or `yarn add --dev keycloak-react-theming` +Add `keycloakify` to the dev dependencies of your project `npm install --save-dev keycloakify` or `yarn add --dev keycloakify` then configure your `package.json` build's script to build the keycloak's theme by adding `&& build-keycloak-theme`. Typically you will get: @@ -46,7 +46,7 @@ Typically you will get: `package.json`: ```json "devDependencies": { - "keycloak-react-theming": "^0.0.10" + "keycloakify": "^0.0.10" }, "scripts": { "build": "react-scripts build && build-keycloak-theme" diff --git a/package.json b/package.json index 25492a0d..804d7be7 100755 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { - "name": "keycloak-react-theming", - "version": "0.0.33", + "name": "keycloakify", + "version": "0.1.0", "description": "Keycloak theme generator for Reacts app", "repository": { "type": "git", - "url": "git://github.com/garronej/keycloak-react-theming.git" + "url": "git://github.com/garronej/keycloakify.git" }, "main": "dist/lib/index.js", "types": "dist/lib/index.d.ts", @@ -40,7 +40,7 @@ "login", "register" ], - "homepage": "https://github.com/garronej/keycloak-react-theming", + "homepage": "https://github.com/garronej/keycloakify", "devDependencies": { "@types/node": "^10.0.0", "@types/react": "^17.0.0", diff --git a/src/bin/install-builtin-keycloak-themes.ts b/src/bin/install-builtin-keycloak-themes.ts index cdb63748..625a4cff 100644 --- a/src/bin/install-builtin-keycloak-themes.ts +++ b/src/bin/install-builtin-keycloak-themes.ts @@ -5,7 +5,7 @@ import { downloadAndUnzip } from "./tools/downloadAndUnzip"; import { join as pathJoin } from "path"; export const builtinThemesUrl = - "https://github.com/garronej/keycloak-react-theming/releases/download/v0.0.1/keycloak_11.0.3_builtin_themes.zip"; + "https://github.com/garronej/keycloakify/releases/download/v0.0.1/keycloak_11.0.3_builtin_themes.zip"; if (require.main === module) { diff --git a/src/lib/components/Template.tsx b/src/lib/components/Template.tsx index b199e997..b56e2ee4 100644 --- a/src/lib/components/Template.tsx +++ b/src/lib/components/Template.tsx @@ -44,7 +44,7 @@ export const Template = memo((props: TemplateProps) => { displayInfoNode = null } = props; - useEffect(()=> { console.log("Rendering this page with react using keycloak-react-theming") },[]); + useEffect(()=> { console.log("Rendering this page with react using keycloakify") },[]); const { t } = useKcTranslation(); diff --git a/src/test/setupSampleReactProject.ts b/src/test/setupSampleReactProject.ts index 736c40ac..4a5c71c4 100644 --- a/src/test/setupSampleReactProject.ts +++ b/src/test/setupSampleReactProject.ts @@ -8,7 +8,7 @@ export const sampleReactProjectDirPath = pathJoin(getProjectRoot(), "sample_reac export function setupSampleReactProject() { downloadAndUnzip({ - "url": "https://github.com/garronej/keycloak-react-theming/releases/download/v0.0.1/sample_build_dir_and_package_json.zip", + "url": "https://github.com/garronej/keycloakify/releases/download/v0.0.1/sample_build_dir_and_package_json.zip", "destDirPath": sampleReactProjectDirPath }); }