UISOURCES := $(shell find . -type f -not \( -path ./build/\* -o -path ./node_modules/\* -o -path ./.cache/\* -o -name Makefile -prune \) )

all: build

node_modules: package-lock.json
	npm i

build: node_modules $(UISOURCES)
	npm run build

lint: node_modules $(UISOURCES)
	npm run lint

test:
	npm test

clean:
	npm run clean

run:
	npm start

.PHONY: all clean test run lint