forked from TritonDataCenter/node_zuora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (35 loc) · 757 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Copyright (c) 2014, Joyent, Inc.
#
#
# Tools
#
NODE := node
NPM := npm
BUNYAN := ./node_modules/.bin/bunyan
TAPE := ./node_modules/.bin/tape
FAUCET := ./node_modules/.bin/faucet
ESLINT := ./node_modules/.bin/eslint
#
# Files
#
JS_FILES := $(shell ls *.js) $(shell find lib test -name '*.js' | grep -v sql.js)
JSL_CONF_NODE = tools/jsl.node.conf
JSL_FILES_NODE = $(JS_FILES)
JSSTYLE_FILES = $(JS_FILES)
JSSTYLE_FLAGS = -C -f ./tools/jsstyle.conf
CLEAN_FILES += node_modules $(SHRINKWRAP) cscope.files
#
# Repo-specific targets
#
.PHONY: all
all: deps
.PHONY: deps
deps: | $(REPO_DEPS) $(NPM_EXEC)
$(NPM_ENV) $(NPM) install
.PHONY: test
test: $(FAUCET)
$(TAPE) test/*/*.test.js | $(FAUCET)
.PHONY: lint
lint: $(ESLINT)
$(ESLINT) .