Skip to content

Commit

Permalink
Clean up Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
simeg committed Aug 16, 2018
1 parent 28b2ead commit 4d89fb4
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
.PHONY: all test
.PHONY: all test test-watch

all:
npm install
NPM=$(shell which npm)
NPM_BIN=$(shell npm bin)

all: deps

deps:
@$(NPM) install

test:
./node_modules/.bin/jest tests
@$(NPM_BIN)/jest tests

test-watch:
./node_modules/.bin/jest --watch tests
@$(NPM_BIN)/jest --watch tests

0 comments on commit 4d89fb4

Please sign in to comment.