Files
mattermost/webapp/Makefile
Christopher Speller 2bbedd9def Updating client dependencies. Switching to yarn. (#6433)
* Updating client dependancies. Switching to using yarn.

* Updating React

* Moving pure components to using function syntax (performance gains with newer react version)

* Updating client dependancies.

* Ignore .yarninstall

* Enabling pre-lockfile because it's the entire point of using yarn.

* Removing old webpack config

* Moving to new prop-types

* Fixing ESLint Errors

* Updating jest snapshots.

* Cleaning up package.json
2017-05-18 09:28:18 -04:00

55 lines
1.0 KiB
Makefile

.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
test: .yarninstall
cd $(BUILD_SERVER_DIR) && $(MAKE) internal-test-web-client
.yarninstall: package.json
@echo Getting dependencies using yarn
yarn install --pure-lockfile
touch $@
build: .yarninstall
@echo Building mattermost Webapp
rm -rf dist
yarn run build
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
rm -rf dist
rm -rf node_modules
rm -f .yarninstall