LottePitcher / opinionated-package-starter

Get a head start when creating Umbraco Packages
MIT License
33 stars 8 forks source link

Make the test site optional? #2

Open LottePitcher opened 1 year ago

LottePitcher commented 1 year ago

Feature summary

At the moment the template will add a test site to the solution with the correct dependency on the package project. Should it? The user still needs to go through the install process when first running the test site.

Additional details

Could remove the test site from the repo and add a bool parameter for the user to choose whether they want a test site or not. Then should test site (with reference to project, and add to solution file) it in a postAction script of the template depending on the parameter. Making sure it's the expected version of .net / umbraco, assuming you can do that in CLI

LottePitcher commented 1 year ago

Or... perhaps even better take the approach that Lee Kelleher does in Contentment - test site uses uSync and unattended installation to avoid needing to commit the DB to the repo (https://github.com/leekelleher/umbraco-contentment/tree/develop/src/Umbraco.Cms.10.x)