From 3c5faefe37bc151666a92489f1b8415d4b55508a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Dec 2025 11:12:36 +0000 Subject: [PATCH 1/2] Initial plan From 614d52fc79207a8434192ce4b843b7c21d8f8ebd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Dec 2025 11:17:53 +0000 Subject: [PATCH 2/2] Add verbose output to watcher task in all theme builders Co-authored-by: dermatz <6103201+dermatz@users.noreply.github.com> --- src/Service/ThemeBuilder/HyvaThemes/Builder.php | 12 +++++++++++- src/Service/ThemeBuilder/MagentoStandard/Builder.php | 12 +++++++++++- src/Service/ThemeBuilder/TailwindCSS/Builder.php | 12 +++++++++++- 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/Service/ThemeBuilder/HyvaThemes/Builder.php b/src/Service/ThemeBuilder/HyvaThemes/Builder.php index 7bc5f33..35fbd09 100644 --- a/src/Service/ThemeBuilder/HyvaThemes/Builder.php +++ b/src/Service/ThemeBuilder/HyvaThemes/Builder.php @@ -225,9 +225,19 @@ public function watch(string $themePath, SymfonyStyle $io, OutputInterface $outp return false; } + $io->info('Starting watch mode for Hyvä theme...'); + $io->text("Watching directory: $tailwindPath"); + $io->newLine(); + try { chdir($tailwindPath); - passthru('npm run watch'); + $returnCode = 0; + passthru('npm run watch', $returnCode); + + if ($returnCode !== 0) { + $io->error("Watch process exited with error code: $returnCode"); + return false; + } } catch (\Exception $e) { $io->error('Failed to start watch mode: ' . $e->getMessage()); return false; diff --git a/src/Service/ThemeBuilder/MagentoStandard/Builder.php b/src/Service/ThemeBuilder/MagentoStandard/Builder.php index 2b81156..0282e02 100644 --- a/src/Service/ThemeBuilder/MagentoStandard/Builder.php +++ b/src/Service/ThemeBuilder/MagentoStandard/Builder.php @@ -192,8 +192,18 @@ public function watch(string $themePath, SymfonyStyle $io, OutputInterface $outp return false; } + $io->info('Starting watch mode for Magento Standard theme...'); + $io->text("Theme path: $themePath"); + $io->newLine(); + try { - passthru('node_modules/.bin/grunt watch'); + $returnCode = 0; + passthru('node_modules/.bin/grunt watch', $returnCode); + + if ($returnCode !== 0) { + $io->error("Watch process exited with error code: $returnCode"); + return false; + } } catch (\Exception $e) { $io->error('Failed to start watch mode: ' . $e->getMessage()); return false; diff --git a/src/Service/ThemeBuilder/TailwindCSS/Builder.php b/src/Service/ThemeBuilder/TailwindCSS/Builder.php index 3e03a7e..827cc2f 100644 --- a/src/Service/ThemeBuilder/TailwindCSS/Builder.php +++ b/src/Service/ThemeBuilder/TailwindCSS/Builder.php @@ -197,9 +197,19 @@ public function watch(string $themePath, SymfonyStyle $io, OutputInterface $outp return false; } + $io->info('Starting watch mode for TailwindCSS theme...'); + $io->text("Watching directory: $tailwindPath"); + $io->newLine(); + try { chdir($tailwindPath); - passthru('npm run watch'); + $returnCode = 0; + passthru('npm run watch', $returnCode); + + if ($returnCode !== 0) { + $io->error("Watch process exited with error code: $returnCode"); + return false; + } } catch (\Exception $e) { $io->error('Failed to start watch mode: ' . $e->getMessage()); return false;