From 16246fae95ff4d84f0224505e812b3f756f3dc9e Mon Sep 17 00:00:00 2001 From: Mohammad Zahed Date: Mon, 16 Oct 2023 00:14:10 +0300 Subject: [PATCH] workbench --- composer.json | 16 ++++++++++++++-- .../app/Providers/WorkbenchServiceProvider.php | 16 ++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 workbench/app/Providers/WorkbenchServiceProvider.php 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 @@ +