GitHub Repo Template for V14 Package Setup
# news
r
📣 New post: Automate Umbraco Project Setup Using GitHub Template Repositories and Actions https://blog.hackmakedo.com/2024/06/10/automate-umbraco-project-setup-using-github-template-repositories-and-actions/
w
Don't like reading & wanna watch a video instead 👀

https://www.youtube.com/watch?v=kTlXzy0uiucâ–¾

TL:DR version one click setup of a GitHub repo based on the same Powershell script I wrote last week
@Niels Lyngsø or @Jacob Overgaard curious if you have any feedback or other steps you might consider as a good getting starting point for scaffolding a new V14 project for package dev ?
j
Looks great, Warren. Good with a default Vite setup. Wonder if you should add more Github templates to get started with other extension types, e.g. types that also require backend. I stumbled on these two lines, which I think you should be careful with:
Copy code
git config --global user.email "warren@hackmakedo.com"
          git config --global user.name "Warren Buckley"
as you would overwrite the user's global Git configuration... I think you can add that directly to the commit message instead like so:
Copy code
git commit --author="Warren Buckley <warren@hackmakedo.com>" -m "Umbraco Project Scaffolded & Vite setup added"
d
I tried the Powershell script version and had a dashboard set up in one evening. Tbf with some code samples from @Warren Buckley. It would indeed be great to have some templates for specific use cases.
w
It is only doing it for the one commit and is the GitHub Actions environment only (as this does not run locally)
Yeh I didn't know how far to take it, as will it become annyoing to remove the C# Controller or any other code I scaffold that is not needed @Jacob Overgaard
j
Ahh I see, cool 🙂
5 Views