chore(Makefile): modify install_frontend target to conditionally run npm ci or npm install based on the value of the clean variable

This commit is contained in:
anovazzi1 2023-08-16 17:23:24 -03:00
commit 9096fcd110

View file

@ -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