Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Makefile 789 B
ESLINT=./node_modules/.bin/eslint
GH_PAGES=./node_modules/.bin/gh-pages
NODE=node
WEBPACK=./node_modules/.bin/webpack --progress --colors
WEBPACK_DEV_SERVER=./node_modules/.bin/webpack-dev-server

# ------------------------------------------------------------------------------

build:
	@make clean
	$(WEBPACK) --bail

clean:
	rm -rf ./build
	mkdir -p build

watch:
	$(WEBPACK) --watch

serve:
	$(WEBPACK_DEV_SERVER) --port 8601 --content-base=./build

# ------------------------------------------------------------------------------

lint:
	$(ESLINT) .

test:
	@make lint
	@make build

# ------------------------------------------------------------------------------

deploy:
	$(GH_PAGES) -r $(GH_PAGES_URL) -d build -m $(DEPLOY_MESSAGE)

.PHONY: build clean watch serve lint test deploy