Skip to content

Change to Next.js and pnpm#1

Open
JMR-dev wants to merge 7 commits into
mainfrom
readme_updates_and_repo_setup
Open

Change to Next.js and pnpm#1
JMR-dev wants to merge 7 commits into
mainfrom
readme_updates_and_repo_setup

Conversation

@JMR-dev

@JMR-dev JMR-dev commented Mar 5, 2025

Copy link
Copy Markdown

No description provided.

Comment thread .husky/pre-commit Outdated
@@ -0,0 +1,3 @@
pnpm lint
pnpm format
git add --all No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Developers should definitely be responsible / know what code they're committing... this absolves them of having to think about staging their changes and ultimately causes a lot of churn in CI/CD pipelines. Think like managers saying "the build servers down again? Who commited broken code?"

I see the lint/format but still... it's important to be able to know what all is being changed.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, just read this was a pre-commit hook... yeh no. pre-push is fine but really in general these things should be run by a build server.

But in lue of having a dedicated build server, I'll let this slide if we switch this lint / format over to a pre-push. But pre-commit is uber-aggressive and very anti-autonomy.

@erlandsona erlandsona left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switch pre-commit -> pre-push and otherwise THANK GOD!

Of course, this also means Front-End folk could dip their toes into a little bit of Back-End stuff too if say a team were to pull in a library like drizzle-orm 😏

Not that I plan on having anyone do that but if like the python folks drop off a team or whatever, having the template be a scaffolded NextJS project opens up a LOT of potential pivoting opportunities.

nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants