From 9096fcd1109a4a8562cbad8cc0ad1b829966badb Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Wed, 16 Aug 2023 17:23:24 -0300 Subject: [PATCH] chore(Makefile): modify install_frontend target to conditionally run npm ci or npm install based on the value of the clean variable --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f8603f552..9e9f876d9 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,11 @@ lint: poetry run ruff . --fix install_frontend: - cd src/frontend && npm ci + @if [ "$(clean)" = "true" ]; then \ + cd src/frontend && npm ci; \ + else \ + cd src/frontend && npm install; \ + fi run_frontend: cd src/frontend && npm start