Pārlūkot izejas kodu

made boiler files

luis 6 gadi atpakaļ
vecāks
revīzija
375b229d9a
2 mainītis faili ar 7 papildinājumiem un 7 dzēšanām
  1. 5 5
      Makefile
  2. 2 2
      go/Makefile

+ 5 - 5
Makefile

@@ -1,5 +1,5 @@
 
-all: DIST/goreact 
+all: DIST/{{.projName}} 
 
 clean:
 	rm -rf DIST
@@ -7,7 +7,7 @@ clean:
 DIST:
 	mkdir -p DIST
 
-DIST/goreact: DIST
+DIST/{{.projName}}: DIST
 	cd go;make
 	cp go/DIST/* DIST/
 
@@ -19,11 +19,11 @@ frontend/dist: frontend/node_modules
 	cd frontend; yarn build
 
 
-backend: DIST/goreact
+backend: DIST/{{.projName}}
 frontend: frontend/dist
 
 dev: clean backend frontend
-	tmux split "DEBUG=1 DIST/goreact;$$SHELL"
+	tmux split "DEBUG=1 DIST/{{.projName}};$$SHELL"
 	cd frontend; yarn start
 
 test: 
@@ -34,5 +34,5 @@ generate:
 
 
 
-.PHONY: all clean backend builder generate DIST/goreact 
+.PHONY: all clean backend builder generate DIST/{{.projName}} 
 

+ 2 - 2
go/Makefile

@@ -11,8 +11,8 @@ GETENV=
 # What packages to build
 
 # CLI Packages
-CLI=goreact/cmd/goreact
-BIN=$(addprefix $(DIST)/, goreact)
+CLI={{.projName}}/cmd/{{.projName}}
+BIN=$(addprefix $(DIST)/, {{.projName}})
 
 # Windows build
 ifeq ($(GOOS),windows)