add asset handling and colors to configure.php

This commit is contained in:
awcodes
2022-09-01 14:59:18 -04:00
parent 9c767f2e8e
commit 845fc39a73
13 changed files with 602 additions and 131 deletions

View File

@@ -3,8 +3,38 @@
namespace VendorName\Skeleton;
use Filament\PluginServiceProvider;
use Spatie\LaravelPackageTools\Package;
class SkeletonServiceProvider extends PluginServiceProvider
{
public static string $name = 'skeleton';
protected array $resources = [
// CustomResource::class,
];
protected array $pages = [
// CustomPage::class,
];
protected array $widgets = [
// CustomWidget::class,
];
protected array $styles = [
'plugin-skeleton' => __DIR__ . '/../dist/skeleton.css',
];
protected array $scripts = [
'plugin-skeleton' => __DIR__ . '/../dist/skeleton.js',
];
// protected array $beforeCoreScripts = [
// 'plugin-skeleton' => __DIR__ . '/../dist/skeleton.js',
// ];
public function configurePackage(Package $package): void
{
$package->name(static::$name);
}
}