Skip to content

Commit 47f1f68

Browse files
Merge pull request #13 from HichemTab-tech/bring-installer-5.14.0
Update LaravelFS and improve custom starter handling
2 parents ff98f0d + 819d7c4 commit 47f1f68

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

bin/laravelfs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ if (file_exists(__DIR__.'/../../../autoload.php')) {
99
}
1010

1111
// Define our own version and the Laravel Installer version we aim to match.
12-
$laravelFSVersion = '1.2.1';
13-
$laravelInstallerVersion = '5.13.0';
12+
$laravelFSVersion = '1.2.2';
13+
$laravelInstallerVersion = '5.14.0';
1414

1515
// Compose the displayed version string.
1616
$displayVersion = sprintf('%s (advanced from Laravel Installer %s)', $laravelFSVersion, $laravelInstallerVersion);

src/NewCommand.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ protected function configure(): void
7777
->addOption('teams', null, InputOption::VALUE_NONE, 'Indicates whether Jetstream should be scaffolded with team support')
7878
->addOption('verification', null, InputOption::VALUE_NONE, 'Indicates whether Jetstream should be scaffolded with email verification support')
7979

80-
->addOption('custom-starter', null, InputOption::VALUE_REQUIRED, 'Custom Starter (Provide your own starter-kit)')
80+
->addOption('using', null, InputOption::VALUE_OPTIONAL, 'Install a custom starter kit from a community maintained package')
81+
->addOption('custom-starter', null, InputOption::VALUE_REQUIRED, 'Custom Starter (Provide your own starter-kit) same thing as --using', '')
8182

8283
// from new installer
8384
->addOption('react', null, InputOption::VALUE_NONE, 'Install the React Starter Kit')
@@ -118,6 +119,10 @@ protected function interact(InputInterface $input, OutputInterface $output): voi
118119

119120
$this->ensureExtensionsAreAvailable();
120121

122+
if ($input->getOption('using')) {
123+
$input->setOption('custom-starter', $input->getOption('using'));
124+
}
125+
121126
if ($this->isCreatingTemplate()) {
122127
if (!$input->getArgument('template-name')) {
123128
$input->setArgument('template-name', text(

0 commit comments

Comments
 (0)