Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Add recipes for cleaning up (#4399)
Dhruv Bhanushali70d57a91318a
diff --git a/justfile b/justfileindex fd61faf7e..abb327c07 100644--- a/justfile+++ b/justfile@@ -238,6 +238,27 @@ run +args:_pgcli container db_user_pass db_name db_host db_port="5432":just exec {{ container }} pgcli postgresql://{{ db_user_pass }}:{{ db_user_pass }}@{{ db_host }}:{{ db_port }}/{{ db_name }}+###########+# Cleanup #+###########++# Recursively list, and delete, all specified dirs from the repo+_prune pattern delete="false":+ find . -name '{{ pattern }}' -type d -prune {{ if delete == "true" { "-exec rm -rf '{}' +" } else { "" } }}++# Recursively list, and delete, all `node_modules/` from the repo+prune_node delete="false":+ @just _prune node_modules {{ delete }}++# Recursively list, and delete, all `.venv/` from the repo+prune_venv delete="false":+ @just _prune .venv {{ delete }}++# Recursively list, and delete, all `node_modules/` and `.venv/` from the repo+prune delete="false":+ @just prune_node {{ delete }}+ @just prune_venv {{ delete }}+######### Misc #########