changed some defaults, fixed favicon generation and installed navbar component

This commit is contained in:
2025-08-06 21:46:19 +02:00
parent ecc1c7078e
commit 38b48453f0
27 changed files with 306 additions and 82 deletions

View File

@@ -117,6 +117,7 @@ async function main() {
.replace(/^-+|-+$/g, '');
const rootDir = path.resolve(process.cwd(), kebabName);
const pmx = project.packageManager === 'bun' ? 'bunx' : 'npx';
const pm = project.packageManager === 'bun' ? 'bun' : 'npm';
const studioDir = path.join(rootDir, 'apps', 'studio');
await p.tasks([
@@ -312,7 +313,7 @@ async function main() {
{
title: `${color.yellow('🌟 Generating favicon')}`,
task: async () => {
await runCommand(pmx, ['create', "favicon", project.faviconPath, 'packages/ui/favicon'], rootDir);
await runCommand(pm, ['create', "favicon", project.faviconPath, 'packages/ui/favicon'], rootDir);
await fs.copy(path.join(rootDir, 'packages/ui/favicon/'), path.join(rootDir, 'apps/client/public/'), { overwrite: true });
await fs.copy(path.join(rootDir, 'packages/ui/favicon/'), path.join(rootDir, 'apps/studio/static/'), { overwrite: true });
return 'Favicon generated and copied!';