diff src/Console/InstallsBladeStack.php @ 1:a2a3059de103

Updates to some styles and general automation of creation
author luka
date Thu, 14 Aug 2025 21:09:25 -0400
parents 90e38de8f2ba
children
line wrap: on
line diff
--- a/src/Console/InstallsBladeStack.php	Wed Aug 13 22:17:20 2025 -0400
+++ b/src/Console/InstallsBladeStack.php	Thu Aug 14 21:09:25 2025 -0400
@@ -34,15 +34,6 @@
         (new Filesystem)->ensureDirectoryExists(resource_path('views'));
         (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/resources/views', resource_path('views'));
 
-        if (! $this->option('dark')) {
-            $this->removeDarkClasses((new Finder)
-                ->in(resource_path('views'))
-                ->name('*.blade.php')
-                ->notPath('livewire/welcome/navigation.blade.php')
-                ->notName('welcome.blade.php')
-            );
-        }
-
         // Components...
         (new Filesystem)->ensureDirectoryExists(app_path('View/Components'));
         (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/app/View/Components', app_path('View/Components'));
@@ -60,26 +51,7 @@
         $this->replaceInFile('/home', '/dashboard', resource_path('views/welcome.blade.php'));
         $this->replaceInFile('Home', 'Dashboard', resource_path('views/welcome.blade.php'));
 
-        // Tailwind / Vite...
-        copy(__DIR__.'/../../stubs/default/tailwind.config.js', base_path('tailwind.config.js'));
-        copy(__DIR__.'/../../stubs/default/postcss.config.js', base_path('postcss.config.js'));
-        copy(__DIR__.'/../../stubs/default/vite.config.js', base_path('vite.config.js'));
-        copy(__DIR__.'/../../stubs/default/resources/css/app.css', resource_path('css/app.css'));
-        copy(__DIR__.'/../../stubs/default/resources/js/app.js', resource_path('js/app.js'));
-
-        $this->components->info('Installing and building Node dependencies.');
-
-        if (file_exists(base_path('pnpm-lock.yaml'))) {
-            $this->runCommands(['pnpm install', 'pnpm run build']);
-        } elseif (file_exists(base_path('yarn.lock'))) {
-            $this->runCommands(['yarn install', 'yarn run build']);
-        } elseif (file_exists(base_path('bun.lock')) || file_exists(base_path('bun.lockb'))) {
-            $this->runCommands(['bun install', 'bun run build']);
-        } elseif (file_exists(base_path('deno.lock'))) {
-            $this->runCommands(['deno install', 'deno task build']);
-        } else {
-            $this->runCommands(['npm install', 'npm run build']);
-        }
+        $this->runCommands(['npm install', 'npm run build']);
 
         $this->line('');
         $this->components->info('Breeze scaffolding installed successfully.');