-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (49 loc) · 948 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
ESLINT = node_modules/.bin/eslint
WEBPACK = node_modules/webpack/bin/webpack.js
.PHONY: clean build install dev lint lint-quiet test
build:
make clean
$(WEBPACK) --optimize-minimize \
--content-base dist/ \
--colors \
--progress \
--optimize-occurence-order \
--devtool source-map \
--verbose \
--display-chunks \
--bail
install:
./.install.sh
clean:
rm -rf ./dist
start-docker:
fig up -d postgres
migrate:
./.migrate.sh
setup-hooks:
./.hooks-setup.sh
init:
make install
make start-docker
make migrate
fig stop postgres
make setup-hooks
dev:
make install
make start-docker
make clean
NODE_ENV=development $(WEBPACK) --content-base dist/ \
--debug \
--watch \
--devtool eval \
--progress \
--colors \
--verbose \
--display-chunks \
--output-pathinfo
server:
nf start
lint:
$(ESLINT) -c .eslintrc --ext .js --ext .jsx .
lint-quiet:
$(ESLINT) -c .eslintrc --ext .js --ext .jsx --quiet .