Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
The cure for headaches in development projects on Next.js with TypeScript and Storybook
Next Ts Storybook Boilerplate is a starter repository that combines Next.js 11, TypeScript, and Storybook 6 with a fully configured linting and CI/CD setup for web application development.
Next Ts Storybook Boilerplate is a project template that scaffolds a Next.js 11 application with TypeScript support and integrates Storybook 6 for isolated UI component development. It takes a newly initialized Next.js codebase and adds SCSS global variables and mixins, JSON-to-SCSS variable imports, ESLint, Stylelint, Prettier, Husky pre-commit hooks, Templateman component generation, and ready-to-use GitHub Actions and GitLab CI/CD configurations. It is maintained on GitHub by adlite, the same developer behind the Templateman tool.
http://localhost:3001 via npm run storybook:dev, while Next.js runs on port 3000 with npm run app:dev; npm run dev launches both in parallel.npm run linters:inspect checks all code and npm run linters:fix autofixes issues.npm ci to install dependencies from the lockfile, then npm run dev to start the app and Storybook at the same time.npm run storybook:dev to build UI components with hot reload, then integrate them into pages in the Next app.The boilerplate provides two parallel development servers. npm run app:dev starts Next.js at http://localhost:3000, npm run storybook:dev starts Storybook at http://localhost:3001, and npm run dev launches both concurrently. After cloning, run npm ci to install the exact dependencies from the package-lock; requires Node v14.x.x+ and npm v6.x.x+.
It is a public GitHub repository with no license or payment requirement mentioned in the README, so you can freely use and modify it as a starting point for your projects.
The environment specifies Node v14.x.x or newer and npm v6.x.x or newer. Older versions may not support the dependencies used by Next.js 11 and Storybook 6.
Run npm run dev from the root directory. This starts Next.js on port 3000 and Storybook on port 3001 in parallel, with hot reloading for both.
ESLint with predefined rules, Stylelint with SCSS and Prettier plugins, and Prettier. Use npm run linters:inspect to check all code and npm run linters:fix to automatically fix fixable issues.
Yes, it includes prepared configuration files for GitHub Actions and GitLab CI/CD, so you can set up automated linting, testing, and deployment pipelines quickly.
