Skip to content

Commit

Permalink
fixing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tnylea committed Jan 27, 2025
1 parent 6422b48 commit 4f43e8a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,8 @@ protected function configure()
->addOption('react', null, InputOption::VALUE_NONE, 'Installs the React Starter Kit')
->addOption('vue', null, InputOption::VALUE_NONE, 'Installs the Vue Starter Kit')
->addOption('livewire', null, InputOption::VALUE_NONE, 'Installs the Livewire Starter Kit')

->addOption('breeze', null, InputOption::VALUE_NONE, 'Installs the Laravel Breeze scaffolding')
->addOption('jet', null, InputOption::VALUE_NONE, 'Installs the Laravel Jetstream scaffolding')

->addOption('dark', null, InputOption::VALUE_NONE, 'Indicate whether Breeze or Jetstream should be scaffolded with dark mode support')
->addOption('typescript', null, InputOption::VALUE_NONE, 'Indicate whether Breeze should be scaffolded with TypeScript support')
->addOption('eslint', null, InputOption::VALUE_NONE, 'Indicate whether Breeze should be scaffolded with ESLint and Prettier support')
Expand Down Expand Up @@ -220,15 +218,15 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$phpBinary = $this->phpBinary();

$createProjectCommand = $composer." create-project laravel/laravel \"$directory\" $version --remove-vcs --prefer-dist --no-scripts";
$stackSlug = match(true) {

$stackSlug = match (true) {
$input->getOption('react') => 'react',
$input->getOption('vue') => 'vue',
$input->getOption('livewire') => 'livewire',
default => null
};

if($stackSlug) {
if ($stackSlug) {
$createProjectCommand = $composer." create-project --repository='{\"type\":\"vcs\", \"url\":\"https://github.com/laravel/$stackSlug-starter-kit\"}' laravel/$stackSlug-starter-kit \"$directory\" --stability=dev";
}

Expand Down

0 comments on commit 4f43e8a

Please sign in to comment.