Make it clear that the copy-keycloak-resources-to-public command is for CRA

This commit is contained in:
Joseph Garrone
2024-05-18 04:17:45 +02:00
parent c780e9b9f5
commit 9fa1460400

View File

@ -111,22 +111,6 @@ program
} }
}); });
program
.command({
"name": "copy-keycloak-resources-to-public",
"description": [
"Copy Keycloak default theme resources to the public directory.",
"This command is meant to be explicitly used in Webpack projects only."
].join(" ")
})
.task({
skip,
"handler": async cliCommandOptions => {
const { command } = await import("./copy-keycloak-resources-to-public");
await runAndLogErrors(() => command({ cliCommandOptions }));
}
});
program program
.command({ .command({
"name": "start-keycloak-container", "name": "start-keycloak-container",
@ -140,6 +124,19 @@ program
} }
}); });
program
.command({
"name": "copy-keycloak-resources-to-public",
"description": "(Webpack/Create-React-App only) Copy Keycloak default theme resources to the public directory."
})
.task({
skip,
"handler": async cliCommandOptions => {
const { command } = await import("./copy-keycloak-resources-to-public");
await runAndLogErrors(() => command({ cliCommandOptions }));
}
});
// Fallback to build command if no command is provided // Fallback to build command if no command is provided
{ {
const [, , ...rest] = process.argv; const [, , ...rest] = process.argv;