Skip to content

Commit

Permalink
Merge branch 'branch-267cb986'
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed Nov 30, 2024
2 parents 1f9659b + 922cb07 commit 1b25fae
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Console/PublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class PublishCommand extends Command
'Command' => ['command'],
'Context' => ['context'],
'Field' => ['fieldset', 'legend', 'field', 'label', 'description', 'error'],
'Editor' => ['editor'],
'Heading' => ['heading', 'subheading', 'text', 'link'],
'Input' => ['input'],
'Layout' => ['header', 'sidebar', 'aside', 'main', 'footer', 'container', 'brand', 'profile', 'spacer'],
Expand Down Expand Up @@ -126,25 +127,25 @@ protected function publishComponent(string $component): void
$destinationAsFile = resource_path('views/flux/'.$component.'.blade.php');

$destination = $filesystem->isDirectory($sourceAsDirectory) ? $this->publishDirectory($component, $sourceAsDirectory, $destinationAsDirectory) : null;

if ($destination) {
info('Published: ' . $destination);
}

$destination = $filesystem->isFile($sourceAsFile) ? $this->publishFile($component, $sourceAsFile, $destinationAsFile) : null;

if ($destination) {
info('Published: ' . $destination);
}

$destination = $filesystem->isDirectory($sourceAsProDirectory) ? $this->publishDirectory($component, $sourceAsProDirectory, $destinationAsDirectory) : null;

if ($destination) {
info('Published: ' . $destination);
}

$destination = $filesystem->isFile($sourceAsProFile) ? $this->publishFile($component, $sourceAsProFile, $destinationAsFile) : null;

if ($destination) {
info('Published: ' . $destination);
}
Expand Down

0 comments on commit 1b25fae

Please sign in to comment.