Skip to content

Commit e17e16b

Browse files
xbilirxaviers
authored andcommitted
Gruntfile: Skip "Building API documentation" if !jqueryUi.docs
Ref #262 Ref #264
1 parent c3249e3 commit e17e16b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: Gruntfile.js

+3
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ function prepare( jqueryUi ) {
308308
return function( callback ) {
309309
async.series([
310310
function() {
311+
if ( !jqueryUi.docs ) {
312+
return callback();
313+
}
311314
grunt.log.writeln( "Building API documentation for jQuery UI" );
312315
if ( !fs.existsSync( "tmp/api.jqueryui.com/config.json" ) ) {
313316
grunt.file.copy( "tmp/api.jqueryui.com/config-sample.json", "tmp/api.jqueryui.com/config.json" );

0 commit comments

Comments
 (0)