This template was scaffolded from nextjs-with-typescript-example-template. And this template adds tailwindcss so that you can start a new project using Nextjs 13 and tailwindcss.
This template includes pre-installed plugins suchas prettier, eslint, stylelint, lint-staged, commitlint and standard version which helps to maintain project code quality.
Make sure you have installed Node.js 16.8 or higher on your machine. You can use nvm to manage multiple node version on your machine.
You can setup this project using npm, yarn or pnpm package managers.
git clone https://github.com/binodnepali/nextjs-with-tailwindcss-example-template.git
#or
git clone git@github.com:binodnepali/nextjs-with-tailwindcss-example-template.gitcd nextjs-with-tailwindcss-example-templatepnpm i
#or
yarn install
#or
npm installpnpm dev
#or
yarn dev
#or
npm run devOpen http://localhost:3000 with your browser to see the result.
pnpm build
#or
yarn build
#or
npm run buildpnpm start
#or
yarn start
#or
npm run startOpen http://localhost:3000 with your browser to see the result.
pnpm lint
#or
yarn lint
#or
npm run lintpnpm lint:fix
#or
yarn lint:fix
#or
npm run lint:fixpnpm lint:style
#or
yarn lint:style
#or
npm run lint:stylepnpm lint:style:fix
#or
yarn lint:style:fix
#or
npm run lint:style:fixOpen interactive terminal to write conventional commit message
pnpm commit
#or
yarn commit
#or
npm run commitThis will create initial release.
pnpm release:first
#or
yarn release:first
#or
npm run release:firstFollow the Conventional Commits Specification in your repository. And when you're ready to release, run below scripts.
pnpm release
#or
yarn release
#or
npm run releaseTo learn more about Next.js, ESLint, Prettier, StyleLint and lint-staged, take a look at the following resources:
- Next.js Documentation - Learn about Next.js features and API
- Next.js ESLint - Learn about how to Next.js ESLint setup
- Prettier Setup - Learn about how to setup prettier
- Prettier Integrations - Learn about how to setup prettier with other tools
- ESLint Setup - Learn about how to ESLint
- StyleLint Setup - Learn about how to setup StyleLint
- Lint Staged Setup - Learn about how to setup lint-staged
- commitlint - Learn about how to use commit lint
- Standard Version - Learn about how to setup standar version