Skip to content

Commit

Permalink
Publish only by vendor:publish the command and the stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
pandigresik committed Aug 18, 2022
1 parent 52809a2 commit 7303a1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"nuxt.isNuxtApp": false
}
12 changes: 7 additions & 5 deletions src/LarapexChartsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ public function boot()

$this->publishes([
$this->packageBasePath('config/larapex-charts.php') => base_path('config/larapex-charts.php')
], 'larapex-charts-config');
], 'larapex-charts-config');

// Publishing commands
(new Filesystem)->copyDirectory(__DIR__.'/../stubs/Console/Commands', app_path('Console/Commands'));
$this->publishes([
$this->packageBasePath('stubs/Console/Commands') => app_path('Console/Commands')
], 'larapex-charts-commands');

// Publishing stubs
(new Filesystem)->copyDirectory(__DIR__.'/../stubs/stubs', base_path('stubs'));
$this->publishes([
$this->packageBasePath('stubs/stubs') => base_path('stubs')
], 'larapex-charts-stubs');

}

Expand Down

0 comments on commit 7303a1a

Please sign in to comment.