From 341e584dd47c2d3ece9c495d0def09f827fc5c8f Mon Sep 17 00:00:00 2001 From: "Andrew E. Rhyne" Date: Thu, 27 Oct 2016 10:29:12 -0700 Subject: [PATCH] added Yarn integration to Makefile --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5cf4a596..db71cafc 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,8 @@ BIN := $(THIS_DIR)/node_modules/.bin # applications NODE ?= $(shell which node) -NPM ?= $(NODE) $(shell which npm) +YARN ?= $(shell which yarn) +PKG ?= $(if $(YARN),$(YARN),$(NODE) $(shell which npm)) BROWSERIFY ?= $(NODE) $(BIN)/browserify all: dist/debug.js @@ -30,7 +31,7 @@ distclean: clean @rm -rf node_modules node_modules: package.json - @NODE_ENV= $(NPM) install + @NODE_ENV= $(PKG) install @touch node_modules .PHONY: all install clean distclean