-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
website repo setup #4
Comments
Great thinking @thescientist13. Does I had an issue on another project this morning where I was on Node 17, I didn't have a .nvmrc and the project didn't work with latest node, I had to use 16. Based on this experience, I'd suggest we use latest v16, which is 16.14.0. v17 is quite bleeding edge! In terms of minimum version, I'd suggest expecting all contributors to use the same version, and where people don't for whatever reason, any updates to package-lock.json that get committed to main branch are made by a Codeowner using the correct version - this should help prevent snafus. On .editorconfig, there is a .prettierrc in the project already. Setting up husky to run lint-staged as a pre-commit hook can be a bit of a faff. I have done it on my JAMStack Starter but there must be a better way... It's obviously important to have shared config... do we just have it as part of code review that things need to be formatted correctly, based on .editorconfig? How would you see it working with .editorconfig? Also indentation... two spaces instead of tabs!? That's my preference, but I know it can be a divisive issue! In terms of branch protection, I'd suggest all PRs are based off a branch called That is my ten pence! Thanks for taking the lead on this :) |
Thanks for the feedback @aliblackwell !
Agreed, will set it to latest LTS version at time of the PR.
Yeah, for that reason i suggest (to myself) to updating the README steps to favor
I'm somewhat leary of pre-commit hooks and don't really jam with Prettier much just from experience, but certainly happy to follow the conventions of the project. Editorconfig is a small set of formatting options and so prettier would certainly allow for a more robust set of opinions on the matter.
I have no strong feeling on the matter other than consistency.
Any reason to not just deploy straight from main? With the deploy previews and branch protections + codeowners, I think the second branch could probably be eliminated entirely. That said if someone wants to maintain that subset of git flow, then I certainly won't object, but for simplicity, I think deploying on merge into main is pretty nice. |
@capjamesg |
Wanted to leave some thoughts down on the last part(s) around hosting and CI / CD, etc. So (IMO) the most straightforward approach to start with here is using Netlify and GitHub as follows for a fully automated workflow
The general workflow would look something like this
Here are some examples of how I typically have Netlify and GitHub configured for all these various settings Branch Permissions (CI) |
Would also want to mention we can do all of the above without impacting the current production site so we can get all the workflow benefits (previews, "production" site) while operating under the radar, so to speak. Netlify will give us a custom subdomain like silly-something.netlify.app that we can use until we are ready to officially switch over DNS from the current site to the Netlify hosted one. This could be really helpful, especially deploy previews, for sharing / proposing site designs, information architecture ideas, etc just through PRs and the links to the deploy preview site, which is really a plus for collaboration IMO. |
Hi @thescientist13, The branching and workflow stuff for netlify sounds really cool. I'm wondering if, for now, to get things moving and to a live state, we should just throw the site up on GitHub pages on a |
Hey @ssddanbrown There is also the Open Source Plan I mentioned, which is a free version of the Pro plan. But yes, ultimately someone with admin permissions to this GitHub repo would have to set all this stuff up in Netlify and GitHub, but at least it is just a one time setup and pretty set it and forget it after that. A couple options I see are, have an admin setup the Netlify account
Assuming there is no way in the door to Netlify without a CC, then yeah, we can at least setup GitHub pages with some GitHub Actions automation on merge, but I think it's at least worth having someone taking a look at Netlify and just see how far we can get for free, if not for the deploy previews alone, which I think are worth it for a content and design heavy phase of this project we are in. Just my $.02. ✌️ |
Coming out of the discussions in Discord and piggybacking off of #1 , wanted to start a discussion for some repo setup and settings that I could help out with.
engines
field in package.json for Node / npm (what minimum version of Node should we support?)Let me know if there's anything else I missed and should add. Might need some help for some of the integrations re: GitHub repo access and hosting configurations, but I can call that out in the PR at that time.
The text was updated successfully, but these errors were encountered: