-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
65 lines (46 loc) · 1.09 KB
/
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
62
63
64
65
install:
@yarn
@flow-typed install
cleanup:
@echo 'cleaning up'
@rm -rf .build node_modules coverage dist flow-typed/npm *.log
run:
@rm -rf .build
@npx webpack --config config/webpack.server.dev.js
lint:
@npx eslint client server config features
lint-fix:
@npx eslint client server config features --fix
lint-watch:
@npx nodemon -q --exec 'make lint-fix'
stylelint:
@npx stylelint client
stylelint-watch:
@npx nodemon -q --exec 'make stylelint'
typecheck:
@npx flow
typecheck-watch:
@npx nodemon -q -e js --exec 'make typecheck'
test:
@npx jest client server
test-watch:
@npx jest client server --watch
test-coverage:
@npx jest client server --coverage --forceExit
smoke:
@npx testcafe -c 3 nightmare features
smoke-staging:
@NODE_ENV=production npx testcafe nightmare features
build-client:
@npx webpack --config config/webpack.client.prod.js --bail
build-server:
@npx webpack --config config/webpack.server.prod.js --bail
build:
@rm -rf dist
@make build-server
@make build-client
serve:
@NODE_ENV=production node dist/server.js
build-serve:
@make build
@make serve