YUIDoc options have a (undocumented?) option nocode . That is set internally when the --no-code flag is used on the CLI.
When the option is set, the html version of the code files is NOT copied into the output directory. This is useful if you only want to publish the documentation and not the code.
The gulp-yuidoc copies generator copies the files property of the Parser data regardless of the nocode flag being set.
By adding a simple check we can ensure that the files are only generated if nocode is false. Something like..
notthetup@5551564