summaryrefslogtreecommitdiffstats
path: root/webapp/Makefile
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-03-18 10:47:08 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-03-18 10:47:08 -0400
commit5b824cb8552f5dd81d7c1d7800b808d4defc17ad (patch)
treec86c65999261591726826678d87073dd0d4b0a8a /webapp/Makefile
parent53d7718e57d4225eb5c020324d32cbe5b5eca7ad (diff)
parent77ffdc699032f9a669caa7a640cfe734da49cc5a (diff)
downloadchat-5b824cb8552f5dd81d7c1d7800b808d4defc17ad.tar.gz
chat-5b824cb8552f5dd81d7c1d7800b808d4defc17ad.tar.bz2
chat-5b824cb8552f5dd81d7c1d7800b808d4defc17ad.zip
Merge pull request #2470 from mattermost/plt-2380
PLT-2380 Improvements to webpack build system + watch mode
Diffstat (limited to 'webapp/Makefile')
-rw-r--r--webapp/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/webapp/Makefile b/webapp/Makefile
index cd6dfbbad..4cc9be1d3 100644
--- a/webapp/Makefile
+++ b/webapp/Makefile
@@ -1,4 +1,4 @@
-.PHONY: build test run clean
+.PHONY: build test run clean stop
test:
@echo Checking for style guide compliance
@@ -20,8 +20,15 @@ build: | .npminstall test
run: .npminstall
@echo Running mattermost Webapp for development
- npm run run
-
+ npm run run &
+
+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