Skip to content

Commit 9e07525

Browse files
authored
Merge pull request #40 from omiba/master
Fix PresetCommand
2 parents 5d0d73f + 8fbca20 commit 9e07525

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"keywords": ["laravel", "preset", "bulma"],
55
"license": "MIT",
66
"require": {
7-
"laravel/framework": "^7.0"
7+
"laravel/framework": "^7.0",
8+
"laravel/ui": "^2.0"
89
},
910
"autoload": {
1011
"psr-4": {

src/BulmaPreset.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
use Artisan;
55
use Illuminate\Support\Arr;
66
use Illuminate\Filesystem\Filesystem;
7-
use Illuminate\Foundation\Console\Presets\Preset;
7+
use Laravel\Ui\UiCommand;
88

9-
class BulmaPreset extends Preset
9+
10+
class BulmaPreset extends UICommand
1011
{
1112
/**
1213
* Install the preset.
@@ -15,7 +16,6 @@ class BulmaPreset extends Preset
1516
*/
1617
public static function install($withAuth = false)
1718
{
18-
static::updatePackages();
1919
static::updateSass();
2020
static::updateBootstrapping();
2121

@@ -28,7 +28,6 @@ public static function install($withAuth = false)
2828
static::updateWelcomePage();
2929
}
3030

31-
static::removeNodeModules();
3231
}
3332

3433
/**

src/BulmaPresetServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace LaravelFrontendPresets\BulmaPreset;
33

44
use Illuminate\Support\ServiceProvider;
5-
use Illuminate\Foundation\Console\PresetCommand;
5+
use Laravel\Ui\UiCommand;
66

77
class BulmaPresetServiceProvider extends ServiceProvider
88
{
@@ -13,13 +13,13 @@ class BulmaPresetServiceProvider extends ServiceProvider
1313
*/
1414
public function boot()
1515
{
16-
PresetCommand::macro('bulma', function ($command) {
16+
UiCommand::macro('bulma', function ($command) {
1717
BulmaPreset::install(false);
1818
$command->info('Bulma scaffolding installed successfully.');
1919
$command->comment('Please run "npm install && npm run dev" to compile your fresh scaffolding.');
2020
});
2121

22-
PresetCommand::macro('bulma-auth', function ($command) {
22+
UiCommand::macro('bulma-auth', function ($command) {
2323
BulmaPreset::install(true);
2424
$command->info('Bulma scaffolding with Auth views installed successfully.');
2525
$command->comment('Please run "npm install && npm run dev" to compile your fresh scaffolding.');

0 commit comments

Comments
 (0)