Skip to content

Commit 3b55811

Browse files
authored
Merge pull request #1204 from livewire/josh/fix-publish-command-since-free-split
Fix publish command to include free components
2 parents 1c19bfb + 755f6b3 commit 3b55811

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

src/Console/PublishCommand.php

+18-20
Original file line numberDiff line numberDiff line change
@@ -23,39 +23,43 @@ class PublishCommand extends Command
2323

2424
protected array $fluxComponents = [
2525
'free' => [
26+
'Accent' => ['accent'],
27+
'Badge' => ['badge'],
28+
'Breadcrumbs' => ['breadcrumbs'],
2629
'Button' => ['button'],
30+
'Checkbox' => ['checkbox'],
2731
'Dropdown' => ['dropdown', 'menu', 'navmenu'],
32+
'Field' => ['fieldset', 'legend', 'field', 'label', 'description', 'error'],
33+
'Heading' => ['heading', 'subheading', 'text', 'link'],
2834
'Icon' => ['icon'],
35+
'Input' => ['input'],
36+
'Layout' => ['header', 'sidebar', 'aside', 'main', 'footer', 'container', 'brand', 'profile', 'spacer'],
37+
'Modal' => ['modal'],
38+
'Navbar' => ['navbar', 'navlist'],
39+
'Radio' => ['radio'],
2940
'Separator' => ['separator'],
41+
'Select' => ['select'],
42+
'Switch' => ['switch'],
43+
'Textarea' => ['textarea'],
3044
'Tooltip' => ['tooltip'],
45+
'Typography' => ['heading', 'subheading', 'text', 'link'],
3146
],
3247
'pro' => [
3348
'Accordion' => ['accordion'],
3449
'Autocomplete' => ['autocomplete'],
35-
'Badge' => ['badge'],
36-
'Breadcrumbs' => ['breadcrumbs'],
50+
'Calendar' => ['calendar'],
3751
'Card' => ['card'],
3852
'Chart' => ['chart'],
3953
'Checkbox' => ['checkbox'],
4054
'Command' => ['command'],
4155
'Context' => ['context'],
42-
'Calendar' => ['calendar'],
4356
'Date picker' => ['date-picker'],
44-
'Field' => ['fieldset', 'legend', 'field', 'label', 'description', 'error'],
4557
'Editor' => ['editor'],
46-
'Heading' => ['heading', 'subheading', 'text', 'link'],
47-
'Input' => ['input'],
48-
'Layout' => ['header', 'sidebar', 'aside', 'main', 'footer', 'container', 'brand', 'profile', 'spacer'],
49-
'Modal' => ['modal'],
50-
'Navbar' => ['navbar', 'navlist'],
5158
'Radio' => ['radio'],
52-
'Select' => ['select', 'option', 'options'],
53-
'Switch' => ['switch'],
54-
'Table' => ['table', 'columns', 'column', 'rows', 'row', 'cell', 'pagination'],
59+
'Select' => ['select'],
5560
'Tabs' => ['tabs','tab'],
56-
'Textarea' => ['textarea'],
61+
'Table' => ['table', 'pagination', 'avatar'],
5762
'Toast' => ['toast'],
58-
'Typography' => ['heading', 'subheading', 'text', 'link'],
5963
],
6064
];
6165

@@ -159,12 +163,6 @@ protected function publishDirectory($component, $source, $destination): ?string
159163
{
160164
$filesystem = (new Filesystem);
161165

162-
if ($filesystem->exists($destination) && !$this->option('force')) {
163-
warning("Skipping [{$component}]. Directory already exists: {$destination}");
164-
165-
return null;
166-
}
167-
168166
$filesystem->copyDirectory($source, $destination);
169167

170168
return $destination;

0 commit comments

Comments
 (0)