diff options
author | Sam Light <sam@lightscale.co.uk> | 2025-03-30 20:39:33 +0100 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2025-03-30 20:39:33 +0100 |
commit | e5d5fec5f782e6abf8628f3e1d11a8cbbe70a677 (patch) | |
tree | 8784cd8891b309624db0f28595394fc66f508104 /composer.json | |
parent | c9d238d8b8b19ed6e772348da1b91001cae3004a (diff) |
Setup workbench
Diffstat (limited to 'composer.json')
-rw-r--r-- | composer.json | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/composer.json b/composer.json index f558c0d..65b9f84 100644 --- a/composer.json +++ b/composer.json @@ -14,5 +14,28 @@ "email": "sam@lightscale.co.uk" } ], - "require": {} -} + "require-dev": { + "orchestra/testbench": "^10.1" + }, + "autoload-dev": { + "psr-4": { + "Workbench\\App\\": "workbench/app/", + "Workbench\\Database\\Factories\\": "workbench/database/factories/", + "Workbench\\Database\\Seeders\\": "workbench/database/seeders/" + } + }, + "scripts": { + "post-autoload-dump": [ + "@clear", + "@prepare" + ], + "clear": "@php vendor/bin/testbench package:purge-skeleton --ansi", + "prepare": "@php vendor/bin/testbench package:discover --ansi", + "build": "@php vendor/bin/testbench workbench:build --ansi", + "serve": [ + "Composer\\Config::disableProcessTimeout", + "@build", + "@php vendor/bin/testbench serve --ansi" + ] + } +}
\ No newline at end of file |