next-app-template
next-app-template copied to clipboard
Mantine + Next.js app router template (7.0+)
Mantine Next.js template
This is a template for Next.js app router + Mantine. If you want to use pages router instead, see next-pages-template.
Features
This template comes with the following features:
- PostCSS with mantine-postcss-preset
- TypeScript
- Storybook
- Jest setup with React Testing Library
- ESLint setup with eslint-config-mantine
npm scripts
Build and dev scripts
-
dev
– start dev server -
build
– bundle application for production -
analyze
– analyzes application bundle with @next/bundle-analyzer
Testing scripts
-
typecheck
– checks TypeScript types -
lint
– runs ESLint -
prettier:check
– checks files with Prettier -
jest
– runs jest tests -
jest:watch
– starts jest watch -
test
– runsjest
,prettier:check
,lint
andtypecheck
scripts
Other scripts
-
storybook
– starts storybook dev server -
storybook:build
– build production storybook bundle tostorybook-static
-
prettier:write
– formats all files with Prettier