Would a .net new template be a better option for a...
# package-development
d
Would a .net new template be a better option for a starter kit than a nuget package? //cc @Lotte
l
Hey Dean! Do you mean for an Umbraco starter kit that is going to want to add Umbraco schema (data/doc types) and content?
d
Yes
l
If you take the approach of a dotnet new template you would need to include the raw c# for the migrations to add the Umbraco content in the project that the template creates. Having the source code of that in the resulting project feels confusing to me. I think for a starter kit, it would be a nicer experience for someone to add an Umbraco package to their existing Umbraco site via the nuget command. So I think the short answer is 'no'! But I'll keep an eye on this thread in case anyone else has some different opinions 🙂
d
Thanks @Lotte - good point about the content.
j
I really dislike nuget packages creating content nodes, and think that templates conceptually fit what starter kits are supposed to do much better.
Also, a template can contain source, data and configuration files for your project. So you could have a dependency on uSync, include uSync definitions, and use ImportOnFirstBoot
l
🤔 interesting Jason, you see I knew someone else would have some useful thoughts!
I've been meaning to change my package's test site to use uSync and ImportOnFirstBoot. I imagine that after I've achieved that, this approach would seem feasible. As yes I agree that conceptually templates make more sense for a starter kit as you are just starting from that position then taking it in your own direction, and not expecting to ever update the starter kit package
d
Tbh most starter kits I have used make use of Usync to bring in the content anyway. So I guess .net templates are still on the table.
l
I've raised this issue: https://github.com/umbraco/Umbraco.Marketplace.Issues/issues/53 to see what Umbraco think re making templates discoverable on the marketplace... 🤔
l
uSync all the dotnet new templates 🤷‍♂️🙈
d
I think @AaronSadlerUK aron has set Import on boot as part of the Github actions for ci/cd for Umbootstrap