UNPKG

keycloakify

Version:

Framework to create custom Keycloak UIs

27 lines (21 loc) 769 B
import type { BuildContext } from "./shared/buildContext"; import { maybeDelegateCommandToCustomHandler } from "./shared/customHandler_delegate"; import { initializeSpa } from "./shared/initializeSpa"; import { exitIfUncommittedChanges } from "./shared/exitIfUncommittedChanges"; export async function command(params: { buildContext: BuildContext }) { const { buildContext } = params; const { hasBeenHandled } = await maybeDelegateCommandToCustomHandler({ commandName: "initialize-admin-theme", buildContext }); if (hasBeenHandled) { return; } exitIfUncommittedChanges({ projectDirPath: buildContext.projectDirPath }); await initializeSpa({ themeType: "admin", buildContext }); }