forked from trifacta/triflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (34 loc) · 974 Bytes
/
Makefile
File metadata and controls
46 lines (34 loc) · 974 Bytes
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
43
44
45
46
# See the README for installation instructions.
NODE_MODULES_PATH ?= ./node_modules
JS_COMPILER = $(NODE_MODULES_PATH)/uglify-js/bin/uglifyjs
JS_TESTER = $(NODE_MODULES_PATH)/vows/bin/vows
SOURCEDIR = ./src
BIN_PATH = ./bin
COMPILE_PATH = ./bin/compile
COVERAGE_PATH ?= ./coverage
SOURCES := $(shell find $(SOURCEDIR) -name '*.js')
all: \
# Modify this rule to build your own custom release.
.INTERMEDIATE triflow.js: \
triflow.core.js \
triflow.core.js: \
$(SOURCES)
.PHONY: test
test: Makefile
@$(JS_TESTER)
test-cover: coverage
@NODE_COVERAGE='coverage' $(JS_TESTER) --cover-html
@echo "code coverage run, see coverage.html"
style: Makefile
gjslint --jslint_error=all --nojsdoc -r src/
gjslint --jslint_error=all --nojsdoc -r test/
jshint --config=.jshintrc src
jshint --config=.jshintrc test
coverage: $(SOURCES)
@rm -r -f $(COVERAGE_PATH)
jscoverage src coverage
install:
mkdir -p node_modules
npm install
clean:
rm -rf coverage coverage.html