SOURCES := string-lerp.js
UGLIFIED = $(SOURCES:.js=.min.js)
+JSHINTFLAGS += --config tests/jshint.config
+
TESTS = $(wildcard tests/*.js)
LINT_TARGETS = $(patsubst %.js,build/stamp/%.lint,$(SOURCES))
TEST_TARGETS = $(patsubst %.js,build/stamp/%.test,$(SOURCES)) \
build/stamp/%.lint: %.js | $(JSHINT)
@mkdir -p $(@D)
- $(JSHINT) $<
+ $(JSHINT) $(JSHINTFLAGS) $<
@touch $@
build/stamp/%.test: tests/%.js %.js | $(JSTEST)
+/*global require, it, assert, assertEqual, assertNot */
+/*jshint -W085 */ // "Don't use 'with'."
+
var JS = this.JS || require('jstest');
var stringLerp = require('../string-lerp');