Update makefile and add dev guide

This commit is contained in:
Igor Katson 2023-12-05 13:16:16 +00:00
parent 67ee4b439b
commit 88d9c70f0a
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
3 changed files with 43 additions and 4 deletions

View file

@ -3,16 +3,25 @@ OPENSSL_VERSION=3.1.1
# I'm lazy to type "webui-build" so made it default
all: webui-build
@PHONY: webui-deps
webui-deps:
cd desktop && npm install
cd crates/librqbit/webui && npm install
@PHONY: webui-dev
webui-dev:
webui-dev: webui-deps
cd crates/librqbit/webui && \
npm run dev
@PHONY: webui-build
webui-build:
webui-build: webui-deps
cd crates/librqbit/webui && \
npm run build
@PHONY: devserver
devserver:
CORS_DEBUG=1 cargo run --release -- server start /tmp/scratch/
@PHONY: clean
clean:
rm -rf target