Update lint task to include the release script.

This commit is contained in:
Scott González 2012-10-03 21:23:20 -04:00
parent e8bdf46861
commit 3d9545ad27
3 changed files with 16 additions and 2 deletions

13
build/.jshintrc Normal file
View File

@ -0,0 +1,13 @@
{
"curly": true,
"eqnull": true,
"eqeqeq": true,
"expr": true,
"noarg": true,
"node": true,
"onevar": true,
"smarttabs": true,
"strict": false,
"trailing": true,
"undef": true
}

View File

@ -1,4 +1,5 @@
#!/usr/bin/env node
/*global cat:true echo:true exec:true exit:true cd:true*/
var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime,
fs = require( "fs" ),
@ -250,7 +251,7 @@ function gatherContributors() {
echo ( "Adding people thanked in commits..." );
contributors = contributors.concat(
gitLog( "%b%n%s" ).filter(function( line ) {
return /thank/i.test( line );
return (/thank/i).test( line );
}));
fs.writeFileSync( contributorsPath, contributors.join( "\n" ) );

View File

@ -287,7 +287,7 @@ grunt.initConfig({
// TODO remove items from this list once rewritten
return !( /(mouse|datepicker|draggable|droppable|resizable|selectable|sortable)\.js$/ ).test( file );
}),
grunt: [ "grunt.js", "build/tasks/*.js" ],
grunt: [ "grunt.js", "build/**/*.js" ],
tests: "tests/unit/**/*.js"
},
csslint: {