forked from mattermost/mattermost-redux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (30 loc) · 712 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
.PHONY: check-style clean pre-run test install
.npminstall: package.json
@if ! [ $(shell command -v npm) ]; then \
echo "npm is not installed"; \
exit 1; \
fi
@echo Getting dependencies using npm
npm install --ignore-scripts --no-package-lock
touch $@
check-style: | pre-run .npminstall
@echo Checking for style guide compliance
npm run check
clean:
@echo Cleaning app
npm cache clean --force
rm -rf node_modules
rm -f .npminstall
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
test: check-style
npm test
install: .npminstall