forked from mattermost/mattermost-redux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (38 loc) · 859 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
.PHONY: check-style clean pre-run test install flow
node_modules: package.json
@if ! [ $(shell which npm) ]; then \
echo "npm is not installed"; \
exit 1; \
fi
@echo Getting dependencies using npm
npm install --ignore-scripts
check-style: | pre-run node_modules
@echo Checking for style guide compliance
npm run check
clean:
@echo Cleaning app
rm -rf node_modules
pre-run:
@echo Make sure no previous build are in the folder
@rm -rf actions
@rm -rf action_types
@rm -rf client
@rm -rf constants
@rm -rf reducers
@rm -rf selectors
@rm -rf store
@rm -rf utils
@rm -rf lib
test: check-style flow
npm test
flow: .flowinstall
@echo Checking types
npm run flow
.flowinstall: node_modules
@echo Getting flow-typed packages
npm run flow-typed install
touch $@
install: node_modules
bundle:
npm run build
npm run webpack