forked from mattermost/mattermost-redux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (29 loc) · 1016 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
.PHONY: check-style clean pre-run test install update-dependencies
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: pre-run
@echo Cleaning app
rm -rf node_modules
pre-run:
@echo Make sure no previous build are in the folder
@rm -rf build/* action_types actions client constants reducers selectors store utils types mattermost.client4* index.* mattermost.websocket_client*
test: check-style
npm test
check-types: | pre-run node_modules
npm run tsc
install: node_modules
bundle: | pre-run node_modules
npm run build
update-dependencies: # Updates the dependencies
npm update --depth 9999
npm audit fix
@echo Automatic dependency update complete.
@echo You should manually inspect changes to package.json and pin exact versions of packages where appropriate.