2 Revize 24bd28685e ... c065e6907c

Autor SHA1 Zpráva Datum
  luis c065e6907c more changes před 6 roky
  luis 375b229d9a made boiler files před 6 roky
4 změnil soubory, kde provedl 11 přidání a 10 odebrání
  1. 5 5
      Makefile
  2. 2 1
      env.sh
  3. 2 2
      frontend/package.json.boiler
  4. 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 - 1
env.sh

@@ -1,3 +1,4 @@
 export GOPATH="$(pwd)/go/deps:$(pwd)/go" 
-export PS1="[GO:$(basename $(pwd))]\\n$PS1" 
+
+echo "GOPATH is now: " $GOPATH
 

+ 2 - 2
frontend/package.json.boiler

@@ -1,6 +1,6 @@
 {
-  "name": "frontend",
-  "version": "0.1.0",
+  "name": "{{.projName}}",
+  "version": "{{.version}}",
   "private": true,
   "dependencies": {
     "react": "^16.2.0",

+ 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)