From f582e3088740bc69ab9f2c7069ad48278ce74ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Sun, 29 Oct 2023 00:12:53 +0200 Subject: [PATCH] refactor: move wasm folder out of cmd (#147) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- Makefile | 2 +- {cmd/wasm => wasm}/main.go | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename {cmd/wasm => wasm}/main.go (100%) diff --git a/Makefile b/Makefile index 5a49bcc2..89184bd0 100644 --- a/Makefile +++ b/Makefile @@ -129,7 +129,7 @@ build: $(CLI_BIN) ## Build .PHONY: build-wasm build-wasm: fmt vet codegen-crds codegen-deepcopy codegen-register codegen-client ## Build the wasm binary @echo Build wasm module... >&2 - @GOOS=js GOARCH=wasm go build -o ./website/playground/assets/main.wasm -ldflags=$(LD_FLAGS) ./cmd/wasm/main.go + @GOOS=js GOARCH=wasm go build -o ./website/playground/assets/main.wasm -ldflags=$(LD_FLAGS) ./wasm/main.go .PHONY: serve-playground serve-playground: $(CLI_BIN) ## Serve playground diff --git a/cmd/wasm/main.go b/wasm/main.go similarity index 100% rename from cmd/wasm/main.go rename to wasm/main.go