@@ -17,16 +17,21 @@ public static function install(UiCommand $command)
17
17
18
18
static ::installProductionPackages ($ command );
19
19
static ::installDevelopmentPackages ($ command );
20
+ static ::installTestingPackages ($ command );
20
21
static ::copyStub ();
21
22
}
22
23
23
- public static function installProductionPackages ()
24
+ public static function installProductionPackages (UiCommand $ command )
24
25
{
26
+ $ command ->info ('Installing the following "require" packages: ' );
27
+
25
28
$ packages = [
26
29
'spatie/laravel-log-dumper ' ,
27
30
'whitecube/laravel-sluggable '
28
31
];
29
32
33
+ $ command ->info (implode (', ' , $ packages ));
34
+
30
35
static ::$ composer ->run ([
31
36
'require ' ,
32
37
...$ packages ,
@@ -35,22 +40,30 @@ public static function installProductionPackages()
35
40
]);
36
41
}
37
42
38
- public static function installDevelopmentPackages ()
43
+ public static function installDevelopmentPackages (UiCommand $ command )
39
44
{
40
- // Install regular dev packages:
45
+ $ command ->info ('Installing the following "require-dev" packages: ' );
46
+
41
47
$ packages = [
42
48
'barryvdh/laravel-debugbar ' ,
43
49
'laravel/pint ' ,
44
50
'spatie/laravel-ray ' ,
45
51
];
46
52
53
+ $ command ->info (implode (', ' , $ packages ));
8000
code>
54
+
47
55
static ::$ composer ->run ([
48
56
'require ' ,
49
57
...$ packages ,
50
58
'--dev ' ,
51
59
'--sort-packages ' ,
52
60
'--no-interaction '
53
61
]);
62
+ }
63
+
64
+ public static function installTestingPackages (UiCommand $ command )
65
+ {
66
+ $ command ->info ('Installing Testing Framework "PestPHP" and its Laravel plugin... ' );
54
67
55
68
// Pest requires phpunit/phpunit to be removed.
56
69
// We'll removed both from the `require` and `require-dev` sections:
0 commit comments