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:
parent
a7ed611a15
commit
9096fcd110
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
|
@ -32,7 +32,11 @@ lint:
|
||||||
poetry run ruff . --fix
|
poetry run ruff . --fix
|
||||||
|
|
||||||
install_frontend:
|
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:
|
run_frontend:
|
||||||
cd src/frontend && npm start
|
cd src/frontend && npm start
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue