2023-02-19 01:32:35 +03:00
|
|
|
SRCDIR = web_ui
|
|
|
|
YDL_API_HOST ?=
|
|
|
|
|
|
|
|
css:
|
|
|
|
npx tailwindcss -i input.css -o $(SRCDIR)/static/style.css --watch
|
|
|
|
|
|
|
|
run:
|
2023-02-19 02:36:04 +03:00
|
|
|
cd $(SRCDIR) && DEBUG=1 YDL_API_HOST=$(YDL_API_HOST) pipenv run python router.py
|
2023-02-19 01:32:35 +03:00
|
|
|
|
|
|
|
lint:
|
|
|
|
pipenv run black $(SRCDIR)
|
|
|
|
pipenv run pylint $(SRCDIR)
|
2023-02-19 22:03:19 +03:00
|
|
|
|
|
|
|
image:
|
|
|
|
ver=$$(awk -F'= ' '/__version__/{gsub("\"", ""); print $$2}' web_ui/router.py) && \
|
|
|
|
sudo docker build . -t ydl-web-ui:$$ver -t ydl-web-ui:latest
|