This is a Next.js project bootstrapped with create-next-app
.
Prerequisite
You'll need node v18+
installed globally (current LTS) and pnpm v8+
.
I recommend using Volta
to manage the version of node on your machine.
brew install volta
# install and set default version of node
volta install node@18.15.0
# install latest pnpm globally
volta install pnpm
By default this template is pinning the version of node in the package.json
Use this template
This is the command to run in order to create an empty project with this template. It's setup with:
- Typescript
- Tailwind
- Eslint
- Prettier
- tailwind-prettier rules
- VSCode plugins recommendations
- pnpm
npx create-next-app@latest \
--typescript \
--tailwind \
--eslint \
--use-pnpm \
--experimental-app \
--import-alias '@/*'
--example https://github.com/Maxwell2022/next-template
To simplify, you can create an alias in your ~/.zshrc
:
alias "new-project"="npx create-next-app@latest --typescript --tailwind --eslint --use-pnpm --experimental-app --import-alias '@/*' --example https://github.com/Maxwell2022/next-template"
Reload your config:
source ~/.zshrc
And then simply call :
new-project project-name
Todo
- Add renovate bot configuration