Skip to content

Commit 5365f09

Browse files
committed
fix: patch up api installs
1 parent b5d784f commit 5365f09

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/CreateCommand.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ protected function handle(): int
172172
[
173173
'type' => $this->projectType !== 'basic' ? 'confirm' : null,
174174
'name' => 'auth',
175-
'message' => 'Scaffold auth flow?',
175+
'message' => $this->projectType === 'api' ? 'Setup auth flow?' : 'Install application starter?',
176176
'default' => true,
177177
],
178178
[
@@ -182,10 +182,10 @@ protected function handle(): int
182182
'default' => 0,
183183
'choices' => [
184184
['title' => 'Default', 'value' => 'blade only'],
185-
['title' => 'Blade + Alpine', 'value' => '--tailwind'],
186-
['title' => 'React JS', 'value' => '--react --tailwind'],
187-
['title' => 'Vue JS', 'value' => '--vue --tailwind'],
188-
['title' => 'Svelte', 'value' => '--svelte --tailwind'],
185+
['title' => 'Blade + Alpine', 'value' => 'tailwind'],
186+
['title' => 'React JS', 'value' => 'react'],
187+
['title' => 'Vue JS', 'value' => 'vue'],
188+
['title' => 'Svelte', 'value' => 'svelte'],
189189
],
190190
],
191191
[
@@ -198,18 +198,18 @@ protected function handle(): int
198198
'type' => 'confirm',
199199
'name' => 'docker',
200200
'message' => 'Set up docker?',
201-
'default' => true,
201+
'default' => false,
202202
],
203203
]);
204204

205205
$extraCommands = ["cd '$directory'"];
206206

207207
if ($extraOptions['view'] ?? false) {
208-
$extraCommands[] = 'php leaf view:install ' . $extraOptions['view'];
208+
$extraCommands[] = 'php leaf view:install --' . $extraOptions['view'];
209209
}
210210

211211
if ($extraOptions['auth'] ?? false) {
212-
$extraCommands[] = 'php leaf scaffold:auth' . ($this->projectType === 'api' ? ' --api' : '');
212+
$extraCommands[] = "php leaf scaffold:auth" . ($this->projectType === 'api' ? ' --api' : '');
213213
}
214214

215215
if ($extraOptions['tests'] ?? false) {

0 commit comments

Comments
 (0)