From 7b6ed48812adddd5f54c71b86339d01a1f262531 Mon Sep 17 00:00:00 2001 From: y9938 Date: Sat, 21 Mar 2026 03:38:22 +0300 Subject: [PATCH] chore(just): add flexible docs and lint commands - support args in docs recipe for force regeneration - add docs-fresh to combine db reset and doc generation - add lint recipe for code style checks --- justfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index d0529d1..8b5bf0a 100644 --- a/justfile +++ b/justfile @@ -24,8 +24,12 @@ shell: docker compose exec --user www php-fpm bash # Generate API documentation -docs: - docker compose exec --user www php-fpm php artisan scribe:generate +docs *args: + docker compose exec --user www php-fpm php artisan scribe:generate {{ args }} + +# Regenerate DB and docs +docs-fresh: + just db && just docs --force # Reset database with fresh migration and seeding db: @@ -34,3 +38,7 @@ db: # Run tests test: docker compose exec --user www php-fpm php artisan test + +# Run Pint +lint: + docker compose exec --user www php-fpm php ./vendor/bin/pint