blob: 10712deffcf3aa85433f105cfde50443b93951b4 (
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
|
.PHONY: build test run clean stop check-style run-unit
BUILD_SERVER_DIR = ..
check-style: .npminstall
@echo Checking for style guide compliance
npm run check
test: .npminstall
cd $(BUILD_SERVER_DIR) && $(MAKE) internal-test-web-client
.npminstall: package.json
@echo Getting dependencies using npm
npm install
touch $@
build: .npminstall
@echo Building mattermost Webapp
rm -rf dist
npm run build
run: .npminstall
@echo Running mattermost Webapp for development
npm run run &
run-fullmap: .npminstall
@echo FULL SOURCE MAP Running mattermost Webapp for development FULL SOURCE MAP
npm run run-fullmap &
stop:
@echo Stopping changes watching
@for PROCID in $$(ps -ef | grep "[n]ode.*[w]ebpack" | awk '{ print $$2 }'); do \
echo stopping webpack watch $$PROCID; \
kill $$PROCID; \
done
clean:
@echo Cleaning Webapp
rm -rf dist
rm -rf node_modules
rm -f .npminstall
|