mooxphp / moox

The Moox Monorepo
https://moox.org
MIT License
25 stars 4 forks source link

Package Builder #15

Closed adrolli closed 1 year ago

adrolli commented 1 year ago

Package Builder Todo List:

Features

All

Iconset

Database (Full, Data, CRUD)

Components

Views

Themes

Others

Tests

Actions

Handled by Spatie Package Tools

         ->name('your-package-name')
            ->hasConfigFile()
            ->hasViews()
            ->hasViewComponent('spatie', Alert::class)
            ->hasViewComposer('*', MyViewComposer::class)
            ->sharesDataWithAllViews('downloads', 3)
            ->hasTranslations()
            ->hasAssets()
            ->publishesServiceProvider('MyProviderName')
            ->hasRoute('web')
            ->hasMigration('create_package_tables')
            ->hasCommand(YourCoolPackageCommand::class)
            ->hasInstallCommand(function(InstallCommand $command) {
                $command
                    ->publishConfigFile()
                    ->publishMigrations()
                    ->copyAndRegisterServiceProviderInApp()
                    ->askToStarRepoOnGitHub();
            });

These presets should be available:

adrolli commented 1 year ago

We skip this for now ... builder is ready, icons builder is near...