function readOptionalJSON( filepath ) {
var data = {};
try {
- data = grunt.file.readJSON( filepath );
+ data = JSON.parse( stripJSONComments(
+ fs.readFileSync( filepath, { encoding: "utf8" } )
+ ) );
} catch ( e ) {}
return data;
}
- var gzip = require( "gzip-js" ),
+ var fs = require( "fs" ),
+ stripJSONComments = require( "strip-json-comments" ),
+ gzip = require( "gzip-js" ),
srcHintOptions = readOptionalJSON( "src/.jshintrc" );
// The concatenated file won't pass onevar
"sub": true,
+ // Support: IE < 10, Android < 4.1
+ // The above browsers are failing a lot of tests in the ES5
+ // test suite at http://test262.ecmascript.org.
"es3": true,
"globals": {