Skip to content

Commit

Permalink
clean up files
Browse files Browse the repository at this point in the history
  • Loading branch information
199ocero committed Jan 2, 2024
1 parent 54b3526 commit 45e3b1b
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 105 deletions.
6 changes: 0 additions & 6 deletions config/activity-timeline.php

This file was deleted.

19 changes: 0 additions & 19 deletions database/factories/ModelFactory.php

This file was deleted.

19 changes: 0 additions & 19 deletions database/migrations/create_activity_timeline_table.php.stub

This file was deleted.

6 changes: 0 additions & 6 deletions resources/lang/en/activity-timeline.php

This file was deleted.

41 changes: 5 additions & 36 deletions src/ActivityTimelineServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,9 @@ public function configurePackage(Package $package): void
$package->name(static::$name)
->hasCommands($this->getCommands())
->hasInstallCommand(function (InstallCommand $command) {
$command
->publishConfigFile()
->publishMigrations()
->askToRunMigrations()
->askToStarRepoOnGitHub('jaocero/activity-timeline');
$command->askToStarRepoOnGitHub('jaocero/activity-timeline');
});

$configFileName = $package->shortName();

if (file_exists($package->basePath("/../config/{$configFileName}.php"))) {
$package->hasConfigFile();
}

if (file_exists($package->basePath('/../database/migrations'))) {
$package->hasMigrations($this->getMigrations());
}

if (file_exists($package->basePath('/../resources/lang'))) {
$package->hasTranslations();
}

if (file_exists($package->basePath('/../resources/views'))) {
$package->hasViews(static::$viewNamespace);
}
Expand All @@ -78,15 +60,6 @@ public function packageBooted(): void
// Icon Registration
FilamentIcon::register($this->getIcons());

// Handle Stubs
if (app()->runningInConsole()) {
foreach (app(Filesystem::class)->files(__DIR__.'/../stubs/') as $file) {
$this->publishes([
$file->getRealPath() => base_path("stubs/activity-timeline/{$file->getFilename()}"),
], 'activity-timeline-stubs');
}
}

// Testing
Testable::mixin(new TestsActivityTimeline());
}
Expand All @@ -103,8 +76,8 @@ protected function getAssets(): array
{
return [
// AlpineComponent::make('activity-timeline', __DIR__ . '/../resources/dist/components/activity-timeline.js'),
Css::make('activity-timeline-styles', __DIR__.'/../resources/dist/activity-timeline.css'),
Js::make('activity-timeline-scripts', __DIR__.'/../resources/dist/activity-timeline.js'),
// Css::make('activity-timeline-styles', __DIR__.'/../resources/dist/activity-timeline.css'),
// Js::make('activity-timeline-scripts', __DIR__.'/../resources/dist/activity-timeline.js'),
];
}

Expand All @@ -113,9 +86,7 @@ protected function getAssets(): array
*/
protected function getCommands(): array
{
return [
ActivityTimelineCommand::class,
];
return [];
}

/**
Expand Down Expand Up @@ -147,8 +118,6 @@ protected function getScriptData(): array
*/
protected function getMigrations(): array
{
return [
'create_activity-timeline_table',
];
return [];
}
}
19 changes: 0 additions & 19 deletions src/Commands/ActivityTimelineCommand.php

This file was deleted.

Empty file removed stubs/.gitkeep
Empty file.

0 comments on commit 45e3b1b

Please sign in to comment.