Skip to content

Commit

Permalink
Fix #36 Add Makefile to build the project and more
Browse files Browse the repository at this point in the history
  • Loading branch information
rach committed Jan 12, 2016
1 parent 57262cc commit 0da92a9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
default: install build

frontend-install:
@echo "** Installing Frontend dependencies via 'npm' **"
@cd static && npm install

frontend-build:
@echo "** Building Frontend **"
@cd static && webpack

frontend-test:
@echo "** Running tests for Frontend **"
@echo "no test available yet for the Frontend"

backend-build:
@echo "** Building Frontend **"
go generate
go build

backend-install:
@echo "** Installing Backend dependencies via 'go get' **"
@go get github.com/tools/godep
@go get -u github.com/jteeuwen/go-bindata/...

backend-test:
@echo "** Running tests for Backend **"
go test

install: frontend-install backend-install

build: frontend-build backend-build

test: frontend-test backend-test

0 comments on commit 0da92a9

Please sign in to comment.