From 8165d6ba414d02063bec25254c7e1006214774bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Thu, 19 Oct 2023 12:41:28 +0200 Subject: [PATCH] chore: move playground in website (#128) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- .gitignore | 2 +- Makefile | 6 +++--- .../playground}/assets/css/styles.css | 0 {playground => website/playground}/assets/data.json | 0 .../playground}/assets/img/Kyverno_320x320.png | Bin .../playground}/assets/img/favicon.ico | Bin .../playground}/assets/img/github.svg | 0 .../playground}/assets/js/editor.js | 0 .../playground}/assets/js/main.js | 0 .../playground}/dist/nice-select2.css | 0 .../playground}/dist/nice-select2.js | 0 .../playground}/dist/wasm_exec.js | 0 {playground => website/playground}/index.html | 0 {playground => website/playground}/sw.js | 0 14 files changed, 4 insertions(+), 4 deletions(-) rename {playground => website/playground}/assets/css/styles.css (100%) rename {playground => website/playground}/assets/data.json (100%) rename {playground => website/playground}/assets/img/Kyverno_320x320.png (100%) rename {playground => website/playground}/assets/img/favicon.ico (100%) rename {playground => website/playground}/assets/img/github.svg (100%) rename {playground => website/playground}/assets/js/editor.js (100%) rename {playground => website/playground}/assets/js/main.js (100%) rename {playground => website/playground}/dist/nice-select2.css (100%) rename {playground => website/playground}/dist/nice-select2.js (100%) rename {playground => website/playground}/dist/wasm_exec.js (100%) rename {playground => website/playground}/index.html (100%) rename {playground => website/playground}/sw.js (100%) diff --git a/.gitignore b/.gitignore index 86395a0b..274f3a25 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ .gopath /kyverno-json website/site -playground/assets/main.wasm +website/playground/assets/main.wasm diff --git a/Makefile b/Makefile index 4c556876..27cacdbd 100644 --- a/Makefile +++ b/Makefile @@ -120,7 +120,7 @@ vet: ## Run go vet @echo Go vet... >&2 @go vet ./... -$(CLI_BIN): fmt vet +$(CLI_BIN): fmt vet build-wasm codegen-crds codegen-deepcopy codegen-register codegen-client @echo Build cli binary... >&2 @CGO_ENABLED=$(CGO_ENABLED) GOOS=$(GOOS) go build -o ./$(CLI_BIN) -ldflags=$(LD_FLAGS) ./$(CLI_DIR) @@ -128,9 +128,9 @@ $(CLI_BIN): fmt vet build: $(CLI_BIN) ## Build .PHONY: build-wasm -build-wasm: fmt vet ## Build the wasm binary +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 ./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) ./cmd/wasm/main.go .PHONY: serve-playground serve-playground: $(CLI_BIN) ## Serve playground diff --git a/playground/assets/css/styles.css b/website/playground/assets/css/styles.css similarity index 100% rename from playground/assets/css/styles.css rename to website/playground/assets/css/styles.css diff --git a/playground/assets/data.json b/website/playground/assets/data.json similarity index 100% rename from playground/assets/data.json rename to website/playground/assets/data.json diff --git a/playground/assets/img/Kyverno_320x320.png b/website/playground/assets/img/Kyverno_320x320.png similarity index 100% rename from playground/assets/img/Kyverno_320x320.png rename to website/playground/assets/img/Kyverno_320x320.png diff --git a/playground/assets/img/favicon.ico b/website/playground/assets/img/favicon.ico similarity index 100% rename from playground/assets/img/favicon.ico rename to website/playground/assets/img/favicon.ico diff --git a/playground/assets/img/github.svg b/website/playground/assets/img/github.svg similarity index 100% rename from playground/assets/img/github.svg rename to website/playground/assets/img/github.svg diff --git a/playground/assets/js/editor.js b/website/playground/assets/js/editor.js similarity index 100% rename from playground/assets/js/editor.js rename to website/playground/assets/js/editor.js diff --git a/playground/assets/js/main.js b/website/playground/assets/js/main.js similarity index 100% rename from playground/assets/js/main.js rename to website/playground/assets/js/main.js diff --git a/playground/dist/nice-select2.css b/website/playground/dist/nice-select2.css similarity index 100% rename from playground/dist/nice-select2.css rename to website/playground/dist/nice-select2.css diff --git a/playground/dist/nice-select2.js b/website/playground/dist/nice-select2.js similarity index 100% rename from playground/dist/nice-select2.js rename to website/playground/dist/nice-select2.js diff --git a/playground/dist/wasm_exec.js b/website/playground/dist/wasm_exec.js similarity index 100% rename from playground/dist/wasm_exec.js rename to website/playground/dist/wasm_exec.js diff --git a/playground/index.html b/website/playground/index.html similarity index 100% rename from playground/index.html rename to website/playground/index.html diff --git a/playground/sw.js b/website/playground/sw.js similarity index 100% rename from playground/sw.js rename to website/playground/sw.js