We have a
Sitecore 9.1.1 project following
Helix principles and wish to create
Nuget packages from some of the custom layer projects (e.g. Customer.Foundation.Dictionary, Customer.Foundation.Assets, Customer.Feature.Article, etc).
The idea is that these
NuGet packages can be used on new projects, such that we can re-use logic across projects.
We also utilize Unicorn for serialization in our project.
I found a lot of information about creating
NuGet packages and some documentation on how to create Sitecore
NuGet packages if I was using TDS, however, I have not found anything describing my use-case.
My suggested approach
The way I imagine it could work would be something along these lines:
1) NuGet package following convention-based structure (https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package) 2) Content folder contains the serialized items 3) Content/App_Config/.....Serialization.Config contains stand-alone Unicorn configuration (this configuration needs to work as-is and not rely on existing config). Serialization folder points to the same folder as the script in step 4) copies to 4) Tools folder could contain PowerShell script that copies Serialization items to a location that follows Helix principles (i.e. [Layer]/Feature/Serialization
Is there anyone who tried to build
NuGet packages of custom Sitecore components (with Unicorn), who can point me in a direction? Any advice regarding how to structure the NuGet package is much appreciated.