Skip to content

A fullstack template for a NextJs App: TypeScript, Tailwind, Prettier, Husky hooks, and more

Notifications You must be signed in to change notification settings

codeyam-ai/nextjs-starter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NextJS Starter Repo

This code was forked from nextjs-fullstack-app-template.

Development

Storybook

To show the components in Storybook, run:

yarn storybook

How to generate storybook components

Run the command:

yarn gen <ComponentName> --path=components/<subdirectory>

For example, if we were to make a new button component, we could run:

yarn gen MyNewButton --path=components/buttons

Don't forget to change the "CHANGE_ME" text in the ComponentName.stories.tsx file to the section you want it displayed under in Storybook.

Husky

Setup

Using Husky with with a Git GUI

Follow this article Make sure to use the command vi .huskyrc - the article has the incorrect command vi huskyrc which will not work.

Additionally, add these lines to make NVM work:

# this loads nvm.sh and sets the correct PATH before running hook
. ~/.nvm/nvm.sh
PATH="/usr/local/bin:$PATH"

Skipping husky

Just add the --no-verify flag. For example, skipping the pre-push hooks:

git commit --no-verify -m "commit message"

Or to skip the pre-push hooks:

git push --no-verify

It's important to note that this will skip all the pre-push hooks, not just the husky hooks.

About

A fullstack template for a NextJs App: TypeScript, Tailwind, Prettier, Husky hooks, and more

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 46.2%
  • JavaScript 40.6%
  • Shell 11.8%
  • CSS 1.4%