-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
17 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,36 @@ | ||
# VERSION=1.2.0 | ||
# VERSION=1.3.0 | ||
|
||
# CHANGES: | ||
# 1.3.0 - restore eslint | ||
# 1.2.0 - restore jshint/jscs | ||
|
||
# expect JS_FILES to be set from the main Makefile, but default | ||
# to everything in media/js otherwise. | ||
# | ||
# When setting a custom value for this variable in your own Makefile, | ||
# the line should look like this: | ||
# JS_FILES=media/js/src media/js/tests | ||
# | ||
# and not: | ||
# JS_FILES="media/js/src media/js/tests" | ||
# | ||
# Using quotes here will cause eslint to ignore this argument. | ||
# | ||
JS_FILES ?= media/js | ||
|
||
NODE_MODULES ?= ./node_modules | ||
JS_SENTINAL ?= $(NODE_MODULES)/sentinal | ||
JSHINT ?= $(NODE_MODULES)/jshint/bin/jshint | ||
JSCS ?= $(NODE_MODULES)/jscs/bin/jscs | ||
ESLINT ?= $(NODE_MODULES)/.bin/eslint | ||
|
||
$(JS_SENTINAL): package.json | ||
rm -rf $(NODE_MODULES) | ||
npm install | ||
touch $(JS_SENTINAL) | ||
|
||
jshint: $(JS_SENTINAL) | ||
$(JSHINT) $(JS_FILES) | ||
|
||
jscs: $(JS_SENTINAL) | ||
$(JSCS) $(JS_FILES) | ||
|
||
eslint: $(JS_SENTINAL) | ||
$(ESLINT) $(JS_FILES) | ||
|
||
jstest: $(JS_SENTINAL) | ||
npm test | ||
|
||
.PHONY: jshint jscs eslint jstest | ||
.PHONY: eslint jstest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters