Files
mattermost/webapp/Makefile

58 lines
1.1 KiB
Makefile
Raw Normal View History

.PHONY: build test run clean stop check-style run-unit
2016-03-14 08:50:46 -04:00
BUILD_SERVER_DIR = ..
check-style: .yarninstall
2016-03-14 08:50:46 -04:00
@echo Checking for style guide compliance
yarn run check
2016-03-14 08:50:46 -04:00
test: .yarninstall
cd $(BUILD_SERVER_DIR) && $(MAKE) internal-test-web-client
.yarninstall: package.json
@echo Getting dependencies using yarn
2016-03-14 08:50:46 -04:00
yarn cache clean
yarn install --pure-lockfile
2016-03-14 08:50:46 -04:00
touch $@
build: .yarninstall
2016-03-16 23:00:33 -04:00
@echo Building mattermost Webapp
2016-03-14 08:50:46 -04:00
rm -rf dist
yarn run build
2016-03-16 23:00:33 -04:00
run: .yarninstall
2016-03-16 23:00:33 -04:00
@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
2016-03-16 23:00:33 -04:00
clean:
@echo Cleaning Webapp
rm -rf dist
rm -rf node_modules
rm -f .yarninstall
yarn cache clean