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
This commit is contained in:
12
justfile
12
justfile
@@ -24,8 +24,12 @@ shell:
|
|||||||
docker compose exec --user www php-fpm bash
|
docker compose exec --user www php-fpm bash
|
||||||
|
|
||||||
# Generate API documentation
|
# Generate API documentation
|
||||||
docs:
|
docs *args:
|
||||||
docker compose exec --user www php-fpm php artisan scribe:generate
|
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
|
# Reset database with fresh migration and seeding
|
||||||
db:
|
db:
|
||||||
@@ -34,3 +38,7 @@ db:
|
|||||||
# Run tests
|
# Run tests
|
||||||
test:
|
test:
|
||||||
docker compose exec --user www php-fpm php artisan 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
|
||||||
|
|||||||
Reference in New Issue
Block a user