howyoucanhelp.us/Makefile

30 lines
463 B
Makefile

#
# Root Makefile to make the building and testing of this project easier
# regardless of *nix based platform
PATH:=./node_modules/.bin:./tools:$(PATH)
all: build check
depends: package.json package-lock.json
if [ ! -d node_modules ]; then \
npm install; \
fi;
build: depends
webpack-cli
check: depends
jest
run: depends
webpack-dev-server --mode=development
clean:
rm -rf dist
rm -f src/*.js
.PHONY: all depends build clean check
# vim: set et