Skip to content

Commit 42ed825

Browse files
authored
Add the ability to use a git repo as custom kit (#432)
* support using a custom git repo * use git instead of degit * use tiged Tiged is a community driven fork of degit that supports any type of git remote * styleci
1 parent db5db7c commit 42ed825

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/NewCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
243243
if ($this->usingLaravelStarterKit($input) && $input->getOption('workos')) {
244244
$createProjectCommand = str_replace(" {$starterKit} ", " {$starterKit}:dev-workos ", $createProjectCommand);
245245
}
246+
247+
if (! $this->usingLaravelStarterKit($input) && str_contains($starterKit, '://')) {
248+
$createProjectCommand = 'npx tiged@latest '.$starterKit.' "'.$directory.'" && cd "'.$directory.'" && composer install';
249+
}
246250
}
247251

248252
$commands = [

0 commit comments

Comments
 (0)