diff --git a/web/Makefile b/web/Makefile index 69435a31b..b9f76b767 100644 --- a/web/Makefile +++ b/web/Makefile @@ -9,6 +9,7 @@ ENV ?= dockerprod MOUNT_DIR ?= $(CURRENT_DIR) +.PHONY: build build: mkdir -p build docker run \ @@ -24,8 +25,11 @@ build: sh -c "npm install -g pnpm && \ chown -R 1000:1000 /root && cd /react-gosh && pnpm install && cd /workdir && pnpm run update-react-gosh && \ pnpm install && pnpm run wasm && pnpm run build:$(ENV)" + # need this to have general solution for both: docker extension and no-extension + sudo chown -R $$USER:$$USER ./build cp -r ./build/* $(TARGET_DIR) +.PHONY: run run: mkdir -p build docker run \ @@ -42,4 +46,17 @@ run: chown -R 1000:1000 /root && cd /react-gosh && pnpm install && cd /workdir && pnpm run update-react-gosh && \ pnpm install && pnpm run wasm && pnpm run start:$(ENV)" -.PHONY: build +.PHONY: clean +clean: + -rm -rf ../react-gosh/.pnpm-store + -rm -rf ../react-gosh/dist + -rm -rf ../react-gosh/node_modules + -rm -rf ../react-gosh/package-lock.json + -rm -rf ../react-gosh/pnpm-lock.yaml + -rm -rf ../react-gosh/react-gosh-1.0.0.tgz + -rm -rf .pnpm-store + -rm -rf build + -rm -rf node_modules + -rm -rf package-lock.json + -rm -rf pnpm-lock.yaml + -rm -rf rim.cache.json