keycloak-theme-editor 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/cli.js
CHANGED
|
@@ -1201,14 +1201,7 @@ Created pages directory: ${pagesDir}
|
|
|
1201
1201
|
console.log(" npx keycloak-theme-editor \u2014 start the editor (auto-discovers ./pages)");
|
|
1202
1202
|
console.log("");
|
|
1203
1203
|
}
|
|
1204
|
-
async function
|
|
1205
|
-
program.name("keycloak-theme-editor").description("Visual theme editor for Keycloak login pages").option("--pages <dir>", "Path to custom FTL pages directory").option("--port <number>", "Port to run the editor on", String(DEFAULT_PORT)).option("--no-open", "Do not open browser automatically");
|
|
1206
|
-
program.command("init").description("Scaffold a pages directory with example custom FTL + mocks").action(() => {
|
|
1207
|
-
initProject();
|
|
1208
|
-
process3.exit(0);
|
|
1209
|
-
});
|
|
1210
|
-
program.parse();
|
|
1211
|
-
const opts = program.opts();
|
|
1204
|
+
async function startEditor(opts) {
|
|
1212
1205
|
const port = Number.parseInt(opts.port, 10);
|
|
1213
1206
|
const userPagesDir = resolveUserPagesDir(opts.pages);
|
|
1214
1207
|
const javaVersion = getJavaMajorVersion();
|
|
@@ -1264,6 +1257,16 @@ async function main() {
|
|
|
1264
1257
|
process3.exit(0);
|
|
1265
1258
|
});
|
|
1266
1259
|
}
|
|
1260
|
+
async function main() {
|
|
1261
|
+
program.name("keycloak-theme-editor").description("Visual theme editor for Keycloak login pages").option("--pages <dir>", "Path to custom FTL pages directory").option("--port <number>", "Port to run the editor on", String(DEFAULT_PORT)).option("--no-open", "Do not open browser automatically").action(async (opts) => {
|
|
1262
|
+
await startEditor(opts);
|
|
1263
|
+
});
|
|
1264
|
+
program.command("init").description("Scaffold a pages directory with example custom FTL + mocks").action(() => {
|
|
1265
|
+
initProject();
|
|
1266
|
+
process3.exit(0);
|
|
1267
|
+
});
|
|
1268
|
+
await program.parseAsync();
|
|
1269
|
+
}
|
|
1267
1270
|
main().catch((err) => {
|
|
1268
1271
|
console.error(err);
|
|
1269
1272
|
process3.exit(1);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keycloak-theme-editor",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"description": "Visual theme editor for Keycloak login pages. Style, preview, and export Keycloak themes without cloning or forking.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"bin": {
|
|
Binary file
|