remove old references to jshint
This commit is contained in:
parent
c28415c38a
commit
1a716943bc
1
Makefile
1
Makefile
@ -3,7 +3,6 @@ BROWSERIFY_CMD = node_modules/browserify/bin/cmd.js
|
|||||||
ISTANBUL_CMD = node_modules/istanbul/lib/cli.js cover
|
ISTANBUL_CMD = node_modules/istanbul/lib/cli.js cover
|
||||||
UGLIFY_CMD = node_modules/uglify-js/bin/uglifyjs
|
UGLIFY_CMD = node_modules/uglify-js/bin/uglifyjs
|
||||||
#UGLIFY_CMD = node_modules/uglify-js/bin/uglifyjs --mangle sort
|
#UGLIFY_CMD = node_modules/uglify-js/bin/uglifyjs --mangle sort
|
||||||
JSHINT_CMD = node_modules/jshint/bin/jshint
|
|
||||||
MOCHA_CMD = node_modules/mocha/bin/_mocha
|
MOCHA_CMD = node_modules/mocha/bin/_mocha
|
||||||
BABEL_CMD = node_modules/babel/bin/babel
|
BABEL_CMD = node_modules/babel/bin/babel
|
||||||
|
|
||||||
|
|||||||
@ -87,7 +87,7 @@ var shouldIgnore = function (filename) {
|
|||||||
|
|
||||||
var istanbulMonkey = {};
|
var istanbulMonkey = {};
|
||||||
|
|
||||||
if (process.env.running_under_istanbul) { // jshint ignore:line
|
if (process.env.running_under_istanbul) {
|
||||||
// we need to monkey patch fs.readFileSync so we can hook into
|
// we need to monkey patch fs.readFileSync so we can hook into
|
||||||
// what istanbul gets, it's extremely dirty but it's the only way
|
// what istanbul gets, it's extremely dirty but it's the only way
|
||||||
var _readFileSync = fs.readFileSync;
|
var _readFileSync = fs.readFileSync;
|
||||||
@ -117,7 +117,7 @@ var registerExtension = function (ext) {
|
|||||||
var old = oldHandlers[ext] || oldHandlers[".js"];
|
var old = oldHandlers[ext] || oldHandlers[".js"];
|
||||||
|
|
||||||
var loader = normalLoader;
|
var loader = normalLoader;
|
||||||
if (process.env.running_under_istanbul) loader = istanbulLoader; // jshint ignore:line
|
if (process.env.running_under_istanbul) loader = istanbulLoader;
|
||||||
|
|
||||||
require.extensions[ext] = function (m, filename) {
|
require.extensions[ext] = function (m, filename) {
|
||||||
if (shouldIgnore(filename)) {
|
if (shouldIgnore(filename)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user