Clean Next.js Boilerplate CLI
Generate a clean Next.js boilerplate with various base configurations. To get started, use the following command:
npx @tinotech/clean-next-boilerplate
To create a new app in a specific folder, you can send a name as an argument. For example, the following command will create a new Next.js app called blog-app
in a folder with the same name:
npx @tinotech/clean-next-boilerplate blog-app
Options
@tinotech/clean-next-boilerplate
comes with the following options:
- -V, --version output the version number
- -y, --yes answer yes to all the prompts
- -h, --help display help for command
Configurations
-
with-javascript The default and cleanest boilerplate with no extra dependencies or features.
-
with-javascript-mongodb A JavaScript Next.js boilerplate with the setup for integration with MongoDB.
-
with-javascript-sass A JavaScript Next.js boilerplate with the setup for using Sass. It includes the newer
use
andforward
syntax and has some base styles separated into components and abstracts directories which can be customised. -
with-javascript-sass-mongodb A JavaScript Next.js boilerplate which is an amalgamation of the
with-javascript-mongodb
andwith-javascript-sass
configurations. -
with-typescript The default Next.js boilerplate setup for using TypeScript instead of JavaScript.
-
with-typescript-mongodb A TypeScript Next.js boilerplate with the setup for integration with MongoDB.
-
with-typescript-sass A TypeScript Next.js boilerplate with the setup for using Sass. It includes the newer
use
andforward
syntax and has some base styles separated into components and abstracts directories which can be customised. -
with-typescript-sass-mongodb A TypeScript Next.js boilerplate which is an amalgamation of the
with-typescript-mongodb
andwith-typescript-sass
configurations. -
with-eslint There are
with eslint
versions of all the boilerplates above. These configurations just have a stock eslint configuration obtained by runningnpx next lint
and choosing thestrict
option. -
with-context There are
with-context
versions of all the boilerplates above which have a stock Context API config.