Skip to content

Commit

Permalink
Merge pull request #6 from BitGo/make
Browse files Browse the repository at this point in the history
feat: add `all` target and some clean up commands
  • Loading branch information
rushilbg authored Jul 16, 2024
2 parents a928903 + 927f2a5 commit fa83e8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/wasm-miniscript/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
.PHONY: build-image build-wasm enter-image clean-container clean-image
.PHONY: all build-image build-wasm enter-image clean-container clean-image

CONTAINER_ENGINE ?= docker

all: build-image build-wasm

build-image:
$(CONTAINER_ENGINE) build --tag wasm-builder .

build-wasm:
rm -rf dist/ js/wasm/
$(CONTAINER_ENGINE) rm -f wasm-builder-container || true
$(CONTAINER_ENGINE) run -v $(shell pwd)/src:/usr/src/app/src \
--name wasm-builder-container wasm-builder \
npm run build
Expand Down

0 comments on commit fa83e8d

Please sign in to comment.