blob: 9b1052e8d09a0db84f56626d9edc325952582a0d [file] [log] [blame]
PATH := node_modules/.bin:$(PATH)
PATH := $(PATH):$(V23_ROOT)/third_party/cout/node/bin
SHELL := /bin/bash -euo pipefail
node_modules: package.json
@npm prune
@npm install
@touch $@
.PHONY: clean
clean:
@$(RM) -rf node_modules
@$(RM) -rf npm-debug.log
.PHONY: dependency-check
dependency-check: package.json node_modules
dependency-check $<
.PHONY: lint
lint: dependency-check
jshint .