diff --git a/composer.json b/composer.json index 0f8af44..c707c72 100644 --- a/composer.json +++ b/composer.json @@ -42,11 +42,23 @@ }, "autoload-dev": { "psr-4": { - "Mozex\\ScoutBulkActions\\Tests\\": "tests/" + "Mozex\\ScoutBulkActions\\Tests\\": "tests/", + "Workbench\\App\\": "workbench/app/" } }, "scripts": { - "post-autoload-dump": "@php ./vendor/bin/testbench package:discover --ansi", + "post-autoload-dump": "@composer run prepare", + "clear": "@php vendor/bin/testbench package:purge-laravel-modules --ansi", + "prepare": "@php vendor/bin/testbench package:discover --ansi", + "build": [ + "@composer run prepare", + "@php vendor/bin/testbench workbench:build --ansi" + ], + "start": [ + "Composer\\Config::disableProcessTimeout", + "@composer run build", + "@php vendor/bin/testbench serve" + ], "analyse": "vendor/bin/phpstan analyse", "test": "vendor/bin/pest", "test-coverage": "vendor/bin/pest --coverage", diff --git a/workbench/app/Providers/WorkbenchServiceProvider.php b/workbench/app/Providers/WorkbenchServiceProvider.php new file mode 100644 index 0000000..421fae2 --- /dev/null +++ b/workbench/app/Providers/WorkbenchServiceProvider.php @@ -0,0 +1,16 @@ +