From e7f0d1a879531c09d9b931415740035fa3555711 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Tue, 2 Nov 2021 10:16:25 +0100 Subject: [PATCH] Update makefile --- Makefile | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index 647d6b2..e893782 100644 --- a/Makefile +++ b/Makefile @@ -1,24 +1,10 @@ run: - ${MAKE} -j2 backgroundrun backgroundts + ${MAKE} -j2 backgroundrun backgroundsvelte build: - tsc res/static/typescript/lib/*.ts --outFile res/static/script/pixellib.js \ - res/static/typescript/home/*.ts \ - res/static/typescript/lib/*.ts --outFile res/static/script/home.js - go build main.go -o pixeldrain-web - -deps: - npm install -g typescript + cd svelte && npm run build + go build main.go -o web backgroundrun: go run main.go -backgroundts: - tsc --watch --project res/static/typescript/home - --project res/static/typescript/textupload - -docker: - go build -o docker/pixeldrain-web docker/main.go - chmod +x docker/pixeldrain-web - docker build --tag pixeldrain-web -f docker/Dockerfile . - rm docker/pixeldrain-web - -.PHONY: docker +backgroundsvelte: + cd svelte && npm run dev