Next App Boilerplate
This is a template repository used to simplify the above, as setting this up for every project adds up overtime.
Usage
yarn create next-app -e https://github.com/cyrus01337/next-app-boilerplate .
.
is the current directory, meaning the project will be generated in the directory this command is invoked under, whereas omitting the .
(path) creates a sub-directory and goes through the typical interactive installation.
Inclusions
Plugins
ESLint
eslint-config-prettier
- prevents ESLint conflictions with Prettieryarn create next-app
additionseslint-config-next
PostCSS
postcss-font-magician
- makes adding fonts much, much easieryarn create next-app
additionsautoprefixer
postcss-flexbugs-fixes
postcss-preset-env
TailwindCSS
@tailwindcss/typography
- implements theprose
class that makes text look good
Prettier
@trivago/prettier-plugin-sort-imports
- auto-sorts JS importsprettier-plugin-sort-json
- JSON file formatting, typically for configsprettier-plugin-tailwindcss
- auto-sorts Tailwind classes in JSX