docstrap/Gruntfile.js
function jsdocCommand( jsdoc ) {
	var cmd = [];
	cmd.unshift( jsdoc.options );
	if ( jsdoc.tutorials.length > 0 ) {
		cmd.push( "-u " + path.resolve( jsdoc.tutorials ) );
	}
	cmd.push( "-d " + path.resolve( jsdoc.dest ) );
	cmd.push( "-t " + path.resolve( jsdoc.template ) );
	cmd.push( "-c " + path.resolve( jsdoc.config ) );
	sys.each( jsdoc.src, function ( src ) {
		cmd.push( path.resolve( src ) );
	} );
	cmd.unshift( path.resolve( "./node_modules/jsdoc/jsdoc" ) );
	cmd.unshift( "node" );

	return cmd.join( " " );
}
function jsdocCommand( jsdoc ) {
	var cmd = [];
	cmd.unshift( jsdoc.options );
	if ( jsdoc.tutorials.length > 0 ) {
		cmd.push( "-u " + path.resolve( jsdoc.tutorials ) );
	}
	cmd.push( "-d " + path.resolve( jsdoc.dest ) );
	cmd.push( "-t " + path.resolve( jsdoc.template ) );
	cmd.push( "-c " + path.resolve( jsdoc.config ) );
	sys.each( jsdoc.src, function ( src ) {
		cmd.push( path.resolve( src ) );
	} );
	cmd.unshift( path.resolve( "./node_modules/jsdoc/jsdoc" ) );
	cmd.unshift( "node" );

	return cmd.join( " " );
}
function jsdocCommand ( jsdoc ) { var cmd = [ ] ; cmd . unshift ( jsdoc . options ) ; if ( jsdoc . tutorials . length > 0 ) { cmd . push ( "-u " + path . resolve ( jsdoc . tutorials ) ) ; } cmd . push ( "-d " + path . resolve ( jsdoc . dest ) ) ; cmd . push ( "-t " + path . resolve ( jsdoc . template ) ) ; cmd . push ( "-c " + path . resolve ( jsdoc . config ) ) ; sys . each ( jsdoc . src , function ( src ) { cmd . push ( path . resolve ( src ) ) ; } ) ; cmd . unshift ( path . resolve ( "./node_modules/jsdoc/jsdoc" ) ) ; cmd . unshift ( "node" ) ; return cmd . join ( " " ) ; }
Normalizes all paths from a JSDoc task definition and and returns an executable string that can be passed to the shell.
@param {object} jsdoc A JSDoc definition
@returns {string}
Normalizes all paths from a JSDoc task definition and and returns an executable string that can be passed to the shell .