-
Notifications
You must be signed in to change notification settings - Fork 116
Expand file tree
/
Copy pathInstallCommand.php
More file actions
468 lines (381 loc) · 27 KB
/
Copy pathInstallCommand.php
File metadata and controls
468 lines (381 loc) · 27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
<?php
namespace NascentAfrica\Jetstrap\Console;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
use NascentAfrica\Jetstrap\Helpers;
use NascentAfrica\Jetstrap\JetstrapFacade;
use NascentAfrica\Jetstrap\Presets;
class InstallCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'jetstrap:swap {stack : The development stack that should be installed}
{--teams : Indicates if team support should be installed}';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Swap TailwindCss for Bootstrap 4.';
/**
* Execute the console command.
*
* @return void
*/
public function handle()
{
$this->info('Performing swap...');
// Remove Tailwind Configuration...
if ((new Filesystem)->exists(base_path('tailwind.config.js'))) {
(new Filesystem)->delete(base_path('tailwind.config.js'));
}
// Bootstrap Configuration...
copy(__DIR__.'/../../../../stubs/webpack.mix.js', base_path('webpack.mix.js'));
copy(__DIR__.'/../../../../stubs/webpack.config.js', base_path('webpack.config.js'));
// Fix Errors Vite...
if ((new Filesystem)->exists(base_path('postcss.config.js'))) {
(new Filesystem)->delete(base_path('postcss.config.js'));
}
if ((new Filesystem)->exists(base_path('vite.config.js'))) {
(new Filesystem)->delete(base_path('vite.config.js'));
}
copy(__DIR__.'/../../../../postcss.config.js', base_path('postcss.config.js'));
copy(__DIR__.'/../../../../vite.config.js', base_path('vite.config.js'));
// Assets...
(new Filesystem)->deleteDirectory(resource_path('css'));
(new Filesystem)->ensureDirectoryExists(resource_path('sass'));
(new Filesystem)->ensureDirectoryExists(resource_path('js'));
(new Filesystem)->ensureDirectoryExists(resource_path('views'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/resources/js', resource_path('js'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/resources/sass', resource_path('sass'));
copy(__DIR__.'/../../../../stubs/resources/views/welcome.blade.php', resource_path('views/welcome.blade.php'));
Helpers::updateNodePackages(function ($packages) {
return [
'alpinejs' => '^3.2.6',
] + $packages;
});
// Install Stack...
if ($this->argument('stack') === 'livewire') {
$this->swapJetstreamLivewireStack();
} elseif ($this->argument('stack') === 'inertia') {
$this->swapJetstreamInertiaStack();
} elseif ($this->argument('stack') === 'breeze') {
$this->swapBreezeStack();
} elseif ($this->argument('stack') === 'breeze-inertia') {
$this->swapBreezeInertiaStack();
}
}
/**
* Swap the Livewire stack into the application.
*
* @return void
*/
protected function swapJetstreamLivewireStack()
{
$this->line('');
$this->info('Installing livewire stack...');
// Directories...
(new Filesystem)->ensureDirectoryExists(resource_path('views/api'));
(new Filesystem)->ensureDirectoryExists(resource_path('views/auth'));
(new Filesystem)->ensureDirectoryExists(resource_path('views/layouts'));
(new Filesystem)->ensureDirectoryExists(resource_path('views/profile'));
// Layouts
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/livewire/resources/views/layouts', resource_path('views/layouts'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/livewire/resources/views/api', resource_path('views/api'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/livewire/resources/views/profile', resource_path('views/profile'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/livewire/resources/views/auth', resource_path('views/auth'));
// Single Blade Views...
copy(__DIR__.'/../../../../stubs/livewire/resources/views/dashboard.blade.php', resource_path('views/dashboard.blade.php'));
copy(__DIR__.'/../../../../stubs/livewire/resources/views/navigation-menu.blade.php', resource_path('views/navigation-menu.blade.php'));
copy(__DIR__.'/../../../../stubs/livewire/resources/views/terms.blade.php', resource_path('views/terms.blade.php'));
copy(__DIR__.'/../../../../stubs/livewire/resources/views/policy.blade.php', resource_path('views/policy.blade.php'));
// Assets...
(new Filesystem)->copy(__DIR__.'/../../../../stubs/resources/js/app.js', resource_path('js/app.js'));
// Publish...
$this->callSilent('vendor:publish', ['--tag' => 'jetstrap-views', '--force' => true]);
// Teams...
if ($this->option('teams')) {
$this->swapJetstreamLivewireTeamStack();
}
$this->line('');
$this->info('Rounding up...');
$this->installPreset();
$this->line('');
$this->info('Bootstrap scaffolding swapped for livewire successfully.');
$this->comment('Please execute the "npm install && npm run dev" command to build your assets.');
}
/**
* Swap the Livewire team stack into the application.
*
* @return void
*/
protected function swapJetstreamLivewireTeamStack()
{
// Directories...
(new Filesystem)->ensureDirectoryExists(resource_path('views/teams'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/livewire/resources/views/teams', resource_path('views/teams'));
}
/**
* Swap the Inertia stack into the application.
*
* @return void
*/
protected function swapJetstreamInertiaStack()
{
$this->line('');
$this->info('Installing inertia stack...');
// Install NPM packages...
Helpers::updateNodePackages(function ($packages) {
return [
'@inertiajs/inertia' => '^0.10.0',
'@inertiajs/inertia-vue3' => '^0.5.1',
'@inertiajs/progress' => '^0.2.6',
'vue' => '^3.0.5',
'@vue/compiler-sfc' => '^3.0.5',
'vue-loader' => '^16.1.2',
] + $packages;
});
// Necessary for vue compilation
copy(__DIR__.'/../../../../stubs/inertia/webpack.mix.js', base_path('webpack.mix.js'));
// Blade Views...
copy(__DIR__.'/../../../../stubs/inertia/resources/views/app.blade.php', resource_path('views/app.blade.php'));
// Assets...
copy(__DIR__.'/../../../../stubs/inertia/resources/js/app.js', resource_path('js/app.js'));
(new Filesystem)->ensureDirectoryExists(resource_path('js/Jetstream'));
(new Filesystem)->ensureDirectoryExists(resource_path('js/Layouts'));
(new Filesystem)->ensureDirectoryExists(resource_path('js/Pages'));
(new Filesystem)->ensureDirectoryExists(resource_path('js/Pages/API'));
(new Filesystem)->ensureDirectoryExists(resource_path('js/Pages/Auth'));
(new Filesystem)->ensureDirectoryExists(resource_path('js/Pages/Profile'));
(new Filesystem)->ensureDirectoryExists(resource_path('views'));
if (file_exists(resource_path('views/welcome.blade.php'))) {
unlink(resource_path('views/welcome.blade.php'));
}
// Inertia Pages...
copy(__DIR__.'/../../../../stubs/inertia/resources/js/Pages/Dashboard.vue', resource_path('js/Pages/Dashboard.vue'));
copy(__DIR__.'/../../../../stubs/inertia/resources/js/Pages/PrivacyPolicy.vue', resource_path('js/Pages/PrivacyPolicy.vue'));
copy(__DIR__.'/../../../../stubs/inertia/resources/js/Pages/TermsOfService.vue', resource_path('js/Pages/TermsOfService.vue'));
copy(__DIR__.'/../../../../stubs/inertia/resources/js/Pages/Welcome.vue', resource_path('js/Pages/Welcome.vue'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/inertia/resources/js/Jetstream', resource_path('js/Jetstream'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/inertia/resources/js/Layouts', resource_path('js/Layouts'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/inertia/resources/js/Pages/API', resource_path('js/Pages/API'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/inertia/resources/js/Pages/Auth', resource_path('js/Pages/Auth'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/inertia/resources/js/Pages/Profile', resource_path('js/Pages/Profile'));
// Teams...
if ($this->option('teams')) {
$this->swapJetstreamInertiaTeamStack();
}
$this->line('');
$this->info('Rounding up...');
$this->installPreset();
$this->line('');
$this->info('Bootstrap scaffolding swapped for inertia successfully.');
$this->comment('Please execute the "npm install && npm run dev" command to build your assets.');
}
/**
* Swap the Inertia team stack into the application.
*
* @return void
*/
protected function swapJetstreamInertiaTeamStack()
{
// Directories...
(new Filesystem)->ensureDirectoryExists(resource_path('js/Pages/Profile'));
// Pages...
(new Filesystem)->copyDirectory(__DIR__.'/../../../../stubs/inertia/resources/js/Pages/Teams', resource_path('js/Pages/Teams'));
}
/**
* Swap TailwindCss resources in Laravel Breeze.
*
* @return void
*/
protected function swapBreezeStack()
{
// Views...
(new Filesystem)->ensureDirectoryExists(resource_path('views/auth'));
(new Filesystem)->ensureDirectoryExists(resource_path('views/layouts'));
(new Filesystem)->ensureDirectoryExists(resource_path('views/components'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../breeze/resources/views/auth', resource_path('views/auth'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../breeze/resources/views/layouts', resource_path('views/layouts'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../breeze/resources/views/components', resource_path('views/components'));
copy(__DIR__.'/../../../../breeze/resources/views/dashboard.blade.php', resource_path('views/dashboard.blade.php'));
copy(__DIR__.'/../../../../stubs/resources/views/welcome.blade.php', resource_path('views/welcome.blade.php'));
$this->line('');
$this->info('Rounding up...');
$this->installPreset();
$this->info('Breeze scaffolding swapped successfully.');
$this->comment('Please execute the "npm install && npm run dev" command to build your assets.');
}
/**
* Install the Inertia Breeze stack.
*
* @return void
*/
protected function swapBreezeInertiaStack()
{
// NPM Packages...
Helpers::updateNodePackages(function ($packages) {
return [
'@inertiajs/inertia' => '^0.10.0',
'@inertiajs/inertia-vue3' => '^0.5.1',
'@inertiajs/progress' => '^0.2.6',
'vue' => '^3.0.5',
'@vue/compiler-sfc' => '^3.0.5',
'vue-loader' => '^16.1.2',
] + $packages;
});
// Views...
copy(__DIR__.'/../../../../stubs/inertia/resources/views/app.blade.php', resource_path('views/app.blade.php'));
copy(__DIR__.'/../../../../stubs/inertia/webpack.mix.js', base_path('webpack.mix.js'));
// Assets...
copy(__DIR__.'/../../../../stubs/inertia/resources/js/app.js', resource_path('js/app.js'));
// Components + Pages...
(new Filesystem)->ensureDirectoryExists(resource_path('js/Components'));
(new Filesystem)->ensureDirectoryExists(resource_path('js/Layouts'));
(new Filesystem)->ensureDirectoryExists(resource_path('js/Pages'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../breeze/inertia/resources/js/Components', resource_path('js/Components'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../breeze/inertia/resources/js/Layouts', resource_path('js/Layouts'));
(new Filesystem)->copyDirectory(__DIR__.'/../../../../breeze/inertia/resources/js/Pages', resource_path('js/Pages'));
if ((new Filesystem)->exists(resource_path('js/Components/ResponsiveNavLink.vue'))) {
(new Filesystem)->delete(resource_path('js/Components/ResponsiveNavLink.vue'));
}
copy(__DIR__.'/../../../../stubs/inertia/resources/js/Jetstream/Button.vue', resource_path('js/Components/Button.vue'));
copy(__DIR__.'/../../../../stubs/inertia/resources/js/Jetstream/Checkbox.vue', resource_path('js/Components/Checkbox.vue'));
copy(__DIR__.'/../../../../stubs/inertia/resources/js/Jetstream/Dropdown.vue', resource_path('js/Components/Dropdown.vue'));
copy(__DIR__.'/../../../../stubs/inertia/resources/js/Jetstream/DropdownLink.vue', resource_path('js/Components/DropdownLink.vue'));
copy(__DIR__.'/../../../../stubs/inertia/resources/js/Jetstream/Input.vue', resource_path('js/Components/Input.vue'));
copy(__DIR__.'/../../../../stubs/inertia/resources/js/Jetstream/InputError.vue', resource_path('js/Components/InputError.vue'));
copy(__DIR__.'/../../../../stubs/inertia/resources/js/Jetstream/Label.vue', resource_path('js/Components/Label.vue'));
copy(__DIR__.'/../../../../stubs/inertia/resources/js/Jetstream/NavLink.vue', resource_path('js/Components/NavLink.vue'));
copy(__DIR__.'/../../../../stubs/inertia/resources/js/Jetstream/ValidationErrors.vue', resource_path('js/Components/ValidationErrors.vue'));
$this->line('');
$this->info('Rounding up...');
$this->installPreset();
$this->info('Breeze scaffolding swapped successfully.');
$this->comment('Please execute the "npm install && npm run dev" command to build your assets.');
}
/**
* Install third party presets.
*
* @return void
*/
protected function installPreset()
{
$preset = JetstrapFacade::getPreset();
if (!$preset) {
Helpers::updateNodePackages(function ($packages) {
return [
'bootstrap' => '^5.1.0',
"@popperjs/core" => "^2.5.3",
] + $packages;
});
return;
}
$this->bootstrap4JetstreamPresetResources();
// Check for preset usage...
if ($preset) {
switch ($preset) {
case Presets::CORE_UI_3:
$this->line('');
$this->info('Setting up Core Ui 3.');
Presets::setupCoreUi3($this->argument('stack'));
break;
case Presets::ADMIN_LTE_3:
$this->line('');
$this->info('Setting up AdminLte 3.');
Presets::setupAdminLte3($this->argument('stack'));
break;
}
}
}
/**
* Revert to bootstrap 4 compatible resources when using presets.
*
* @return void
*/
protected function bootstrap4JetstreamPresetResources()
{
$stack = $this->argument('stack');
copy(__DIR__ . '/../../../../presets/Common/stubs/resources/js/bootstrap.js', resource_path('js/bootstrap.js'));
copy(__DIR__ . '/../../../../presets/Common/stubs/resources/sass/app.scss', resource_path('sass/app.scss'));
if ($stack === 'livewire') {
// Remove bootstrap 5 resources related to livewire.
copy(__DIR__ . '/../../../../presets/Common/components/checkbox.blade.php', resource_path('views/vendor/jetstream/components/checkbox.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/components/confirmation-modal.blade.php', resource_path('views/vendor/jetstream/components/confirmation-modal.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/components/confirms-password.blade.php', resource_path('views/vendor/jetstream/components/confirms-password.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/components/dialog-modal.blade.php', resource_path('views/vendor/jetstream/components/dialog-modal.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/components/dropdown.blade.php', resource_path('views/vendor/jetstream/components/dropdown.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/components/modal.blade.php', resource_path('views/vendor/jetstream/components/modal.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/components/switchable-team.blade.php', resource_path('views/vendor/jetstream/components/switchable-team.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/components/welcome.blade.php', resource_path('views/vendor/jetstream/components/welcome.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/resources/views/welcome.blade.php', resource_path('views/welcome.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/api/api-token-manager.blade.php', resource_path('views/api/api-token-manager.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/auth/confirm-password.blade.php', resource_path('views/auth/confirm-password.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/auth/forgot-password.blade.php', resource_path('views/auth/forgot-password.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/auth/login.blade.php', resource_path('views/auth/login.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/auth/register.blade.php', resource_path('views/auth/register.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/auth/reset-password.blade.php', resource_path('views/auth/reset-password.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/auth/two-factor-challenge.blade.php', resource_path('views/auth/two-factor-challenge.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/profile/delete-user-form.blade.php', resource_path('views/profile/delete-user-form.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/profile/logout-other-browser-sessions-form.blade.php', resource_path('views/profile/logout-other-browser-sessions-form.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/profile/two-factor-authentication-form.blade.php', resource_path('views/profile/two-factor-authentication-form.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/profile/update-password-form.blade.php', resource_path('views/profile/update-password-form.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/profile/update-profile-information-form.blade.php', resource_path('views/profile/update-profile-information-form.blade.php'));
if ($this->option('teams')) {
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/teams/delete-team-form.blade.php', resource_path('views/teams/delete-team-form.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/teams/team-member-manager.blade.php', resource_path('views/teams/team-member-manager.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/teams/create-team-form.blade.php', resource_path('views/teams/create-team-form.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/teams/update-team-name-form.blade.php', resource_path('views/teams/update-team-name-form.blade.php'));
}
copy(__DIR__ . '/../../../../presets/Common/stubs/livewire/resources/views/navigation-menu.blade.php', resource_path('views/navigation-menu.blade.php'));
} elseif ($stack === 'inertia') {
// Remove bootstrap 5 resources related to inertia.
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Jetstream/Checkbox.vue', resource_path('js/Jetstream/Checkbox.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Jetstream/ConfirmationModal.vue', resource_path('js/Jetstream/ConfirmationModal.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Jetstream/ConfirmsPassword.vue', resource_path('js/Jetstream/ConfirmsPassword.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Jetstream/DialogModal.vue', resource_path('js/Jetstream/DialogModal.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Jetstream/Dropdown.vue', resource_path('js/Jetstream/Dropdown.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Jetstream/Welcome.vue', resource_path('js/Jetstream/Welcome.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Welcome.vue', resource_path('js/Pages/Welcome.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/API/Partials/ApiTokenManager.vue', resource_path('js/Pages/API/Partials/ApiTokenManager.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Auth/ConfirmPassword.vue', resource_path('js/Pages/Auth/ConfirmPassword.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Auth/ForgotPassword.vue', resource_path('js/Pages/Auth/ForgotPassword.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Auth/Login.vue', resource_path('js/Pages/Auth/Login.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Auth/Register.vue', resource_path('js/Pages/Auth/Register.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Auth/ResetPassword.vue', resource_path('js/Pages/Auth/ResetPassword.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Auth/TwoFactorChallenge.vue', resource_path('js/Pages/Auth/TwoFactorChallenge.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Profile/Partials/DeleteUserForm.vue', resource_path('js/Pages/Profile/Partials/DeleteUserForm.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Profile/Partials/LogoutOtherBrowserSessionsForm.vue', resource_path('js/Pages/Profile/Partials/LogoutOtherBrowserSessionsForm.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue', resource_path('js/Pages/Profile/Partials/TwoFactorAuthenticationForm.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Profile/Partials/UpdatePasswordForm.vue', resource_path('js/Pages/Profile/Partials/UpdatePasswordForm.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue', resource_path('js/Pages/Profile/Partials/UpdateProfileInformationForm.vue'));
if ($this->option('teams')) {
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Teams/Partials/CreateTeamForm.vue', resource_path('js/Pages/Teams/Partials/CreateTeamForm.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Teams/Partials/DeleteTeamForm.vue', resource_path('js/Pages/Teams/Partials/DeleteTeamForm.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Teams/Partials/TeamMemberManager.vue', resource_path('js/Pages/Teams/Partials/TeamMemberManager.vue'));
copy(__DIR__ . '/../../../../presets/Common/stubs/inertia/resources/js/Pages/Teams/Partials/UpdateTeamNameForm.vue', resource_path('js/Pages/Teams/Partials/UpdateTeamNameForm.vue'));
}
} elseif ($stack === 'breeze') {
copy(__DIR__ . '/../../../../presets/Common/components/dropdown.blade.php', resource_path('views/components/dropdown.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/components/checkbox.blade.php', resource_path('views/components/checkbox.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/breeze/resources/views/auth/confirm-password.blade.php', resource_path('views/auth/confirm-password.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/breeze/resources/views/auth/forgot-password.blade.php', resource_path('views/auth/forgot-password.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/breeze/resources/views/auth/login.blade.php', resource_path('views/auth/login.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/breeze/resources/views/auth/register.blade.php', resource_path('views/auth/register.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/breeze/resources/views/auth/reset-password.blade.php', resource_path('views/auth/reset-password.blade.php'));
copy(__DIR__ . '/../../../../presets/Common/breeze/resources/views/layouts/navigation.blade.php', resource_path('views/layouts/navigation.blade.php'));
} elseif ($stack === 'breeze-inertia') {
copy(__DIR__ . '/../../../../presets/Common/breeze/inertia/resources/js/Layouts/Authenticated.vue', resource_path('js/Layouts/Authenticated.vue'));
copy(__DIR__ . '/../../../../presets/Common/breeze/inertia/resources/js/Pages/Auth/ConfirmPassword.vue', resource_path('js/Pages/Auth/ConfirmPassword.vue'));
copy(__DIR__ . '/../../../../presets/Common/breeze/inertia/resources/js/Pages/Auth/ForgotPassword.vue', resource_path('js/Pages/Auth/ForgotPassword.vue'));
copy(__DIR__ . '/../../../../presets/Common/breeze/inertia/resources/js/Pages/Auth/Login.vue', resource_path('js/Pages/Auth/Login.vue'));
copy(__DIR__ . '/../../../../presets/Common/breeze/inertia/resources/js/Pages/Auth/Register.vue', resource_path('js/Pages/Auth/Register.vue'));
copy(__DIR__ . '/../../../../presets/Common/breeze/inertia/resources/js/Pages/Auth/ResetPassword.vue', resource_path('js/Pages/Auth/ResetPassword.vue'));
copy(__DIR__ . '/../../../../presets/Common/breeze/inertia/resources/js/Pages/Auth/VerifyEmail.vue', resource_path('js/Pages/Auth/VerifyEmail.vue'));
copy(__DIR__ . '/../../../../presets/Common/breeze/inertia/resources/js/Pages/Welcome.vue', resource_path('js/Pages/Welcome.vue'));
}
}
}