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