]> source.dussan.org Git - jquery-ui.git/commitdiff
Update lint task to include the release script.
authorScott González <scott.gonzalez@gmail.com>
Thu, 4 Oct 2012 01:23:20 +0000 (21:23 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 4 Oct 2012 01:23:20 +0000 (21:23 -0400)
build/.jshintrc [new file with mode: 0644]
build/release/release.js
grunt.js

diff --git a/build/.jshintrc b/build/.jshintrc
new file mode 100644 (file)
index 0000000..9e6abf3
--- /dev/null
@@ -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
+}
index 9a0f9a9e7d500831198bed39ff31ff2f07c2d063..0acd3325678e33ace0cdbdb416247a726ef37271 100644 (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" ) );
index 548393b59941d003c976078bdc3fe9c82f1f0adf..08647a7a121fececd01ad7960be7eb023eb83623 100644 (file)
--- a/grunt.js
+++ b/grunt.js
@@ -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: {