This script will setup a Next.js project with Prettier and shadcn/ui, and integrates Prettier with ESLint, TailwindCSS and Husky, for a better experience. It streamlines the process of configuring a new Next.js application with Prettier to save more time on starting new projects.
- pnpm: This script uses
pnpm
for package management. If you don't havepnpm
installed, you can install it by runningnpm install -g pnpm
. - jq: The script requires
jq
, a lightweight and flexible command-line JSON processor. If you do not havejq
installed, please install it using Homebrew.
-
Enter the directory of your Next.js project
-
Run the following command:
curl -s https://raw.githubusercontent.com/TakumiBC/nextjs-setup/main/setup.sh | zsh
- Configures Prettier to integrate with ESLint, TailwindCSS and Husky
- Cleans up and prepares the project structure for development.
This project is released to the public under the MIT license.