Skip to content

Commit 0c393fb

Browse files
committed
Makefile: don't run 'npm install' unless needed
Check for the node_modules/.bin directory before running 'npm install' to save time when repeatedly running 'make {css|js}'.
1 parent 26a6649 commit 0c393fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ npm-check:
424424

425425
.PHONY: npm
426426
npm: npm-check
427-
npm install --no-save
427+
test -d node_modules/.bin || npm install --no-save
428428

429429
.PHONY: npm-update
430430
npm-update: npm-check

0 commit comments

Comments
 (0)