29 lines
611 B
Makefile
29 lines
611 B
Makefile
JSPKGMAN = "yarn"
|
|
ROOTDIR = $(dir $(CURDIR))
|
|
|
|
dev:
|
|
$(JSPKGMAN) run vite dev
|
|
|
|
test:
|
|
$(JSPKGMAN) run vite check
|
|
|
|
build:
|
|
$(JSPKGMAN) run vite build
|
|
|
|
wasm-pack:
|
|
wasm-pack build $(CURDIR)/wasm --target web
|
|
cp $(CURDIR)/wasm/pkg/crypttool_wasm_bg.wasm $(CURDIR)/src/lib/crypttool.wasm
|
|
|
|
docker:
|
|
podman build -t docker.io/jmbitci/crypttool .
|
|
podman push docker.io/jmbitci/crypttool
|
|
|
|
|
|
#TODO get rid of -f and check whether files exist instead
|
|
clean:
|
|
rm -f $(CURDIR)/src/lib/crypttool.wasm
|
|
rm -rf $(CURDIR)/wasm/pkg/*
|
|
rm -rf $(CURDIR)/wasm/target/*
|
|
rm -rf $(CURDIR)/node_modules/*
|
|
rm -rf $(CURDIR)/dist
|