From a59c896b5444984c02b340b5f74258fabc484824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 11 Jun 2012 10:56:56 -0400 Subject: [PATCH] Build: Adding missing require in build.js and add buid/tasks/*.js to lint. --- build/tasks/build.js | 2 ++ grunt.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build/tasks/build.js b/build/tasks/build.js index d2a5094ec..51c2fefdb 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -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" ) ); diff --git a/grunt.js b/grunt.js index 493d92b96..e58c9dff1 100644 --- a/grunt.js +++ b/grunt.js @@ -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: {