Build: Adding missing require in build.js and add buid/tasks/*.js to lint.

This commit is contained in:
Scott González 2012-06-11 10:56:56 -04:00
parent 4866182dee
commit a59c896b54
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
module.exports = function( grunt ) {
var path = require( "path" );
grunt.registerMultiTask( "copy", "Copy files to destination folder and replace @VERSION with pkg.version", function() {
function replaceVersion( source ) {
return source.replace( /@VERSION/g, grunt.config( "pkg.version" ) );

View File

@ -293,7 +293,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",
grunt: [ "grunt.js", "build/tasks/*.js" ],
tests: "tests/unit/**/*.js"
},
csslint: {