Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Added a recreate recipe for frontend (#2042)

Aditya062003707668a0ce7c
diff --git a/justfile b/justfile
index c516ed5b6..205845dd6 100644
--- a/justfile
+++ b/justfile
@@ -190,6 +190,12 @@ recreate:
just up "--force-recreate --build"
just init
+# Bust pnpm cache and reinstall Node.js dependencies
+node-recreate:
+ find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
+ rm -rf $(pnpm store path)
+ pnpm install
+
# Show logs of all, or named, Docker services
logs services="" args=(if IS_CI != "" { "" } else { "-f" }):
just dc logs {{ args }} {{ services }}