Skip to content

Commit

Permalink
Tweak install command
Browse files Browse the repository at this point in the history
  • Loading branch information
dillingham committed Feb 22, 2021
1 parent d316c7a commit 97a5253
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function handle()
$this->comment('Publishing Laravel Stubs...');
$this->callSilent('stub:publish');
$this->comment('Publishing StubKit Stubs...');
$this->callSilent('vendor:publish', ['--tag' => 'stubkit-stubs']);
$this->callSilent('vendor:publish', ['--tag' => 'stubkit-stubs', '--force' => true]);
return 1;
}
}
16 changes: 8 additions & 8 deletions src/Providers/StubKitProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ public function boot()
], 'stubkit-config');

$this->publishes([
__DIR__.'/../../views/fields' => resource_path('views/vendor/stubkit/fields'),
__DIR__.'/../../config/fields.php' => config_path('stubkit-fields.php'),
], 'stubkit-fields');

$this->publishes([
__DIR__.'/../../views/mappings' => resource_path('views/vendor/stubkit/mappings'),
__DIR__.'/../../config/mappings.php' => config_path('stubkit-mappings.php'),
], 'stubkit-mappings');

$this->publishes([
__DIR__.'/../../stubs/routes.web.stub' => base_path('stubs'),
__DIR__.'/../../stubs/routes.api.stub' => base_path('stubs'),
__DIR__.'/../../stubs/view.create.stub' => base_path('stubs'),
__DIR__.'/../../stubs/view.edit.stub' => base_path('stubs'),
__DIR__.'/../../stubs/view.index.stub' => base_path('stubs'),
__DIR__.'/../../stubs/view.show.stub' => base_path('stubs'),
__DIR__.'/../../stubs/routes.web.stub' => base_path('stubs/routes.web.stub'),
__DIR__.'/../../stubs/routes.api.stub' => base_path('stubs/routes.api.stub'),
__DIR__.'/../../stubs/view.create.stub' => base_path('stubs/view.create.stub'),
__DIR__.'/../../stubs/view.edit.stub' => base_path('stubs/view.edit.stub'),
__DIR__.'/../../stubs/view.index.stub' => base_path('stubs/view.index.stub'),
__DIR__.'/../../stubs/view.show.stub' => base_path('stubs/view.show.stub'),
], 'stubkit-stubs');

Str::macro('reset', function ($value) {
Expand Down

0 comments on commit 97a5253

Please sign in to comment.