} catch(e) {}
return data;
},
- srcHintOptions = readOptionalJSON("src/.jshintrc");
+ fs = require( "fs" ),
+ srcHintOptions = readOptionalJSON( "src/.jshintrc" );
// The concatenated file won't pass onevar
// But our modules can
}
},
tests: {
- // TODO: Once .jshintignore is supported, use that instead.
- // issue located here: https://github.com/gruntjs/grunt-contrib-jshint/issues/1
- src: [ "test/data/{test,testinit,testrunner}.js", "test/unit/**/*.js" ],
+ src: [ "test/**/*.js" ],
options: {
jshintrc: "test/.jshintrc"
}
// Process files for distribution
grunt.registerTask( "dist", function() {
- var stored, flags, paths, fs, nonascii;
+ var stored, flags, paths, nonascii;
// Check for stored destination paths
// ( set in dist/.destination.json )
});
// Ensure the dist files are pure ASCII
- fs = require( "fs" );
nonascii = false;
distpaths.forEach(function( filename ) {
// The problem is caused by the pre-uglify task.
// Also, remove temporary files.
grunt.registerMultiTask( "post-uglify", function() {
- var fs = require( "fs" );
-
this.files.forEach(function( mapping ) {
var mapFileName = mapping.src[ 0 ];
],
"dependencies": {},
"devDependencies": {
- "grunt": "0.4.1",
+ "grunt": "~0.4.1",
"grunt-compare-size": "~0.4.0",
- "grunt-git-authors": "1.2.0",
+ "grunt-git-authors": "~1.2.0",
"grunt-contrib-watch": "~0.4.4",
"grunt-contrib-jshint": "~0.6.0",
"grunt-contrib-uglify": "~0.2.2",
- "gzip-js": "0.3.1",
+ "gzip-js": "0.3.2",
"testswarm": "~1.1.0",
- "archiver": "~0.4.2"
+ "archiver": "~0.4.6"
},
"keywords": []
}
"devel": true,
"wsh": true,
- "predef": [
- "DOMParser",
- "jQuery",
- "QUnit",
- "module",
- "ok",
- "equal",
- "test",
- "asyncTest",
- "notEqual",
- "deepEqual",
- "strictEqual",
- "notStrictEqual",
- "start",
- "stop",
- "expect",
- "raises",
- "ajaxTest",
- "testIframe",
- "testIframeWithCallback",
- "createDashboardXML",
- "createXMLFragment",
- "moduleTeardown",
- "testFoo",
- "url",
- "t",
- "q",
- "amdDefined",
- "fireNative",
- "Globals",
- "hasPHP",
- "isLocal",
- "originaljQuery",
- "$",
- "original$",
- "externalHost"
- ]
+ "globals": {
+ "DOMParser": false,
+ "QUnit": false,
+ "ok": false,
+ "equal": false,
+ "asyncTest": false,
+ "notEqual": false,
+ "deepEqual": false,
+ "strictEqual": false,
+ "notStrictEqual": false,
+ "start": false,
+ "stop": false,
+ "expect": false,
+ "raises": false,
+ "ajaxTest": false,
+ "testIframe": false,
+ "testIframeWithCallback": false,
+ "createDashboardXML": false,
+ "createXMLFragment": false,
+ "moduleTeardown": false,
+ "testFoo": false,
+ "url": false,
+ "t": false,
+ "q": false,
+
+ "jQuery": true,
+ "module": true,
+ "test": true,
+ "amdDefined": true,
+ "fireNative": true,
+ "Globals": true,
+ "hasPHP": true,
+ "isLocal": true,
+ "originaljQuery": true,
+ "$": true,
+ "original$": true,
+ "externalHost": true
+ }
}