blob: 983d078e9cf845fa402a3d7e088b9c6e59b0cef0 (
plain)
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
|
.PHONY: build test run clean stop check-style run-unit
BUILD_SERVER_DIR = ..
check-style: .yarninstall
@echo Checking for style guide compliance
yarn run check --mutex file:/tmp/.yarn-mutex
test: .yarninstall
cd $(BUILD_SERVER_DIR) && $(MAKE) internal-test-web-client
.yarninstall: package.json
@echo Getting dependencies using yarn
yarn install --pure-lockfile --mutex file:/tmp/.yarn-mutex
touch $@
build: .yarninstall
@echo Building mattermost Webapp
rm -rf dist
yarn run build --mutex file:/tmp/.yarn-mutex
run: .yarninstall
@echo Running mattermost Webapp for development
yarn run run &
run-fullmap: .yarninstall
@echo FULL SOURCE MAP Running mattermost Webapp for development FULL SOURCE MAP
yarn run run-fullmap &
stop:
@echo Stopping changes watching
ifeq ($(OS),Windows_NT)
wmic process where "Caption='node.exe' and CommandLine like '%webpack%'" call terminate
else
@for PROCID in $$(ps -ef | grep "[n]ode.*[w]ebpack" | awk '{ print $$2 }'); do \
echo stopping webpack watch $$PROCID; \
kill $$PROCID; \
done
endif
clean:
@echo Cleaning Webapp
yarn cache clean --mutex file:/tmp/.yarn-mutex
rm -rf dist
rm -rf node_modules
rm -f .yarninstall
rm -f /tmp/.yarn-mutex
|