12345678910111213141516171819202122232425262728293031323334353637 |
- all: backend frontend
- docker:
- docker build --rm -t hexasoftware.com:5000/myapp .
- deploy: docker
- docker push hexasoftware.com:5000/myapp
- backend: distpath
- @echo "Building backend... "
- make -C backend
- frontend: distpath
- @echo "Building frontend..."
- @cd frontend/web;node build/build.js
- test: backend #Front end has dev server
- make -C backend test
- cd frontend/web; npm run dev
- distpath:
- @mkdir -p DIST/bin
- @mkdir -p DIST/public
- deps:
- make -C backend deps
- @cd frontend/web;npm i
- clean:
- @rm -rf DIST
- .PHONY: all test clean backend frontend docker clean
|