Files
ttl.sh/hooks/Makefile
Marc Campbell d84f0ad89d First commit
2019-05-15 23:58:50 +00:00

47 lines
883 B
Makefile

.PHONY: prebuild
prebuild:
rm -rf build
mkdir -p build
.PHONY: deps
deps:
npm install -g node-gyp
npm i
.PHONY: lint
lint:
`npm bin`/tslint --project ./tsconfig.json --fix
.PHONY: test
test: build
npm test
.PHONY: build
build: prebuild
`npm bin`/tsc
.PHONY: run
run:
node --no-deprecation ./build/server.js hooks
.PHONY: reap
reap:
node --no-deprecation ./build/server.js reap
.PHONY: publish
publish: publish-hooks publish-reap
.PHONY: publish-hooks
publish-hooks: test
docker build -f Dockerfile.hooks -t registry.heroku.com/replreg-hooks/web .
docker push registry.heroku.com/replreg-hooks/web
heroku container:release web -a replreg-hooks
.PHONY: publish-reap
publish-reap: test
docker build -f Dockerfile.reap -t registry.heroku.com/replreg-hooks/reap .
docker push registry.heroku.com/replreg-hooks/reap
heroku container:release reap -a replreg-hooks