I'm trying to set up a gulp task for publishing, similar to the Habitat model and the Sitecore development book. One suggestion people have had is to exclude things like the Sitecore DLLs, Coveo DLLs, etc, that aren't needed to be included in a deployment. I've been able to set this up in a publish profile, where it looks like this:
<ExcludeFilesFromDeployment>bin\Sitecore.*.dll;bin\Coveo.*.dll;bin\Newtonsoft.*.dll;packages.config</ExcludeFilesFromDeployment>
In the gulp task properties, I was able to add the ExcludeFilesFromDeployment
property to the properties
node, but it doesn't seem to recognize/accept it. Also, if I use the semicolon-delimited list, it throws an error. I'd like to add this in at the task level, rather than have a publish profile in every project...using a property to tell the task to use a profile works, if the excluded files are specified there, but that's a lot of extra overhead.