10000 Updated installation process by removing interactions · whitecube/laravel-preset@7107dbc · GitHub
[go: up one dir, main page]

Skip to content

Commit 7107dbc

Browse files
committed
Updated installation process by removing interactions
1 parent c7492ea commit 7107dbc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Composer.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function installProductionPackages()
2727
'whitecube/laravel-sluggable'
2828
];
2929

30-
static::$composer->run(['require', ...$packages]);
30+
static::$composer->run(['require', ...$packages, '--no-interaction']);
3131
}
3232

3333
public static function installDevelopmentPackages()
@@ -39,15 +39,15 @@ public static function installDevelopmentPackages()
3939
'spatie/laravel-ray',
4040
];
4141

42-
static::$composer->run(['require', ...$packages, '--dev']);
42+
static::$composer->run(['require', ...$packages, '--dev', '--no-interaction']);
4343

4444
// Pest requires phpunit/phpunit to be removed
45-
static::$composer->run(['remove', 'phpunit/phpunit']);
46-
static::$composer->run(['remove', 'phpunit/phpunit', '--dev']);
45+
static::$composer->run(['remove', 'phpunit/phpunit', '--no-interaction']);
46+
static::$composer->run(['remove', 'phpunit/phpunit', '--dev', '--no-interaction']);
4747

4848
// Install Pest
49-
static::$composer->run(['require', 'pestphp/pest', '--dev', '--with-all-dependencies']);
50-
static::$composer->run(['require', 'pestphp/pest-plugin-laravel', '--dev']);
49+
static::$composer->run(['require', 'pestphp/pest', '--dev', '--with-all-dependencies', '--no-interaction']);
50+
static::$composer->run(['require', 'pestphp/pest-plugin-laravel', '--dev', '--no-interaction']);
5151
}
5252

5353
public static function copyStub()

src/Pest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ public static function install(UiCommand $command)
1010
{
1111
$command->info('Preparing Pest...');
1212

13-
shell_exec('./vendor/bin/pest --init');
13+
shell_exec('PEST_NO_SUPPORT=true ./vendor/bin/pest --init');
1414
}
1515
}

0 commit comments

Comments
 (0)
0