Rapid project scaffolding w/ degit
For projects that have a repeat setup step, I like to create an opinionated starter repo that contains all my go-to defaults.
For instance, I have this Eleventy starter kit I made. It needs a bit of fine-tuning, and I'd like to add a branch that includes Pagefind, but it's so much faster than doing everything by hand.
I simply run:
npx degit whitwaltman/11ty-starter my-new-project
And cd into the repo to get started.
You can also clone a specific subdirectory:
npx degit solidjs/templates/js my-solid-app
Or branch... (for when I finally create that Pagefind branch):
npx degit whitwaltman/11ty-starter#pagefind project-with-search