add option to customize the logo, favicon and add images.

This commit is contained in:
dennis.ludwig
2021-06-14 13:44:17 +02:00
parent 144d5f621c
commit 897bd5a084
11 changed files with 39 additions and 35 deletions

View File

@@ -50,6 +50,7 @@ const buildTemplate = () => {
if (fs.existsSync(paths.appRdJson)) {
buildTemplate().then(() => {
fs.copySync(paths.templateBuild, paths.appBuild);
fs.copySync(paths.appPublic, paths.appBuild);
console.log(`${paths.appBuild} was created and can be deployed.`);
});
} else {

View File

@@ -6,10 +6,11 @@ const appDirectory = realpathSync(process.cwd());
const resolveApp = (relativePath = "") => resolve(appDirectory, relativePath);
const templateDirectory = realpathSync(__dirname);
const resolveTemplate = (relativePath = "") =>
resolve(templateDirectory, "..", relativePath);
resolve(templateDirectory, "../..", relativePath);
export const template = resolveTemplate();
export const templateBuild = resolveTemplate("build");
export const appRdJson = resolveApp(`build/${radarJson}`);
export const appBuild = resolveApp("build");
export const appPublic = resolveApp("public");
export const appYarnLock = resolveApp("yarn.lock");