Create the .gitignore first
This commit is contained in:
parent
30e4112f79
commit
b6cc3ee022
@ -54,6 +54,10 @@ export async function copyKeycloakResourcesToPublic(params: { buildOptions: Buil
|
|||||||
|
|
||||||
rmSync(destDirPath, { "force": true, "recursive": true });
|
rmSync(destDirPath, { "force": true, "recursive": true });
|
||||||
|
|
||||||
|
fs.mkdirSync(destDirPath, { "recursive": true });
|
||||||
|
|
||||||
|
fs.writeFileSync(pathJoin(destDirPath, ".gitignore"), Buffer.from("*", "utf8"));
|
||||||
|
|
||||||
for (const themeType of themeTypes) {
|
for (const themeType of themeTypes) {
|
||||||
await downloadKeycloakStaticResources({
|
await downloadKeycloakStaticResources({
|
||||||
"keycloakVersion": (() => {
|
"keycloakVersion": (() => {
|
||||||
@ -76,12 +80,11 @@ export async function copyKeycloakResourcesToPublic(params: { buildOptions: Buil
|
|||||||
// prettier-ignore
|
// prettier-ignore
|
||||||
[
|
[
|
||||||
"This is just a test folder that helps develop",
|
"This is just a test folder that helps develop",
|
||||||
"the login and register page without having to run a Keycloak container"
|
"the login and register page without having to run a Keycloak container\n",
|
||||||
|
"This directory will be automatically excluded from the final build."
|
||||||
].join(" ")
|
].join(" ")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
fs.writeFileSync(pathJoin(buildOptions.publicDirPath, keycloak_resources, ".gitignore"), Buffer.from("*", "utf8"));
|
|
||||||
|
|
||||||
fs.writeFileSync(keycloakifyBuildinfoFilePath, Buffer.from(keycloakifyBuildinfoRaw, "utf8"));
|
fs.writeFileSync(keycloakifyBuildinfoFilePath, Buffer.from(keycloakifyBuildinfoRaw, "utf8"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user