-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
47 lines (36 loc) · 914 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: setup clean release start stop server test coverage dialyzer plt
export MIX_ENV ?= dev
export SECRET_KEY_BASE ?= $(shell mix phx.gen.secret)
setup:
@mix deps.get && mix compile && npm install
clean:
@mix deps.clean --all --unlock
@rm -rf deps _build node_modules priv/static/*
@rm repos-cache.dump
@${MAKE} setup
release: MIX_ENV=prod
release: PORT=4000
release:
@NODE_ENV=prod npm run deploy
@mix phx.digest && mix release --force --overwrite
@${MAKE} start
start:
@_build/prod/rel/coophub/bin/coophub start_iex
stop:
@_build/prod/rel/coophub/bin/coophub stop
server:
@iex --name [email protected] -S mix phx.server
test: MIX_ENV=test
test:
@mix format --check-formatted
@mix test
@${MAKE} dialyzer
coverage: MIX_ENV=test
coverage:
@mix coverage
dialyzer: MIX_ENV=dev
dialyzer:
@mix dialyzer --format dialyxir
plt: MIX_ENV=dev
plt:
@mix dialyzer --force-check --format dialyxir