Update makefile
This commit is contained in:
24
Makefile
24
Makefile
@@ -1,24 +1,10 @@
|
|||||||
run:
|
run:
|
||||||
${MAKE} -j2 backgroundrun backgroundts
|
${MAKE} -j2 backgroundrun backgroundsvelte
|
||||||
build:
|
build:
|
||||||
tsc res/static/typescript/lib/*.ts --outFile res/static/script/pixellib.js \
|
cd svelte && npm run build
|
||||||
res/static/typescript/home/*.ts \
|
go build main.go -o web
|
||||||
res/static/typescript/lib/*.ts --outFile res/static/script/home.js
|
|
||||||
go build main.go -o pixeldrain-web
|
|
||||||
|
|
||||||
deps:
|
|
||||||
npm install -g typescript
|
|
||||||
|
|
||||||
backgroundrun:
|
backgroundrun:
|
||||||
go run main.go
|
go run main.go
|
||||||
backgroundts:
|
backgroundsvelte:
|
||||||
tsc --watch --project res/static/typescript/home
|
cd svelte && npm run dev
|
||||||
--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
|
|
||||||
|
Reference in New Issue
Block a user