This is a Next.js TypeScript Starter bootstrapped with create-next-app
.
It contains:
- Next.js 14.2.15
- React 18.3.1
- TypeScript 5.4.5
- Next.js Fast Refresh
- Sass/SCSS support
- ES6 linting
- Stylelint
- Prettier
- Commitizen
- Linting files and commit messages on commit
- Clone the repository
gh repo clone piotrlewandowski/nextjs-typescript-starter
(or if you're not using GitHub CLI:git clone [email protected]:piotrlewandowski/nextjs-typescript-starter.git
) - If you're using NVM run
nvm use
inside project directory to use node version set in.nvmrc
file - Run
npm install
ornpm i
to install all the dependencies - To begin development task, run
npm run dev
- Open http://localhost:3000
-
npm run dev
- starts Next.js in development mode and watch for changes -
npm start
- starts a Next.js production serverThe page will reload if you make edits.
-
npm run build
- builds the application for production usageIt bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes. -
npm run eslint:check
- execute eslint check -
npm run eslint:fix
- execute eslint check and automatically fix problems -
npm run stylelint:check
- execute stylelint check -
npm run stylelint:fix
- execute stylelint check and automatically fix problems -
npm run analyze
- generate interactive treemap visualization of the contents of the bundles (both server and client bundles) -
npm run analyze:server
- generate visualization of the server bundles -
npm run analyze:browser
- generate visualization of the client bundles