Skip to content

Commit a59c896

Browse files
committed
Build: Adding missing require in build.js and add buid/tasks/*.js to lint.
1 parent 4866182 commit a59c896

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build/tasks/build.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module.exports = function( grunt ) {
22

3+
var path = require( "path" );
4+
35
grunt.registerMultiTask( "copy", "Copy files to destination folder and replace @VERSION with pkg.version", function() {
46
function replaceVersion( source ) {
57
return source.replace( /@VERSION/g, grunt.config( "pkg.version" ) );

grunt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ grunt.initConfig({
293293
// TODO remove items from this list once rewritten
294294
return !( /(mouse|datepicker|draggable|droppable|resizable|selectable|sortable)\.js$/ ).test( file );
295295
}),
296-
grunt: "grunt.js",
296+
grunt: [ "grunt.js", "build/tasks/*.js" ],
297297
tests: "tests/unit/**/*.js"
298298
},
299299
csslint: {

0 commit comments

Comments
 (0)