REPORTER = spec

build:
	docker build -t molinto/sosocial-live:v1.5 .

run-container:
	docker run -i -t --rm -p 3001:3001 -v `pwd`:/home/sosocial-website molinto/sosocial-live:v1.5 nodemon server.js

install:
	npm install

run:
	nodemon server.js

showpaths:
	nodemon showpaths.js

test:
	@NODE_ENV=test ./node_modules/.bin/mocha -R $(REPORTER) --recursive -t 5000 -G

test-w:
	@NODE_ENV=test ./node_modules/.bin/mocha -R $(REPORTER) --recursive -w -t 5000 -G

clean:
	rm -rf node_modules \
	npm cache clear

.PHONY: install build run run-container test test-w clean