TypeScript Style Guide. A concise set of conventions and best practices for creating consistent, maintainable code.
The Turborepo / Next.js / TypeScript boilerplate is an opinionated frontend monorepo that focuses on best practices and providing a painless developer experience. It includes a range of features such as a remote cache build system, support for TypeScript codebase, Next.js apps, UI component packages, testing with Jest, linting with ESLint, and more.
To set up the Turborepo / Next.js / TypeScript boilerplate, follow these steps:
npm install
in the project directory to install all dependencies.npm run dev
.localhost:3100
.To execute various commands, use the following scripts available at the monorepo level:
prepare
: Sets up git hooks with Husky (executes on npm install).build
: Builds all apps and packages.dev
: Starts all apps.lint
: Lints all apps and packages.lint-stage-husky
: Runs lint-staged on every commit.tsc
: Runs TypeScript compiler.test
: Runs tests on all apps and packages.storybook
: Starts storybooks on all apps and packages.format-lint
: Lints formatting with Prettier.format-fix
: Fixes formatting with Prettier.commit
: Runs Commitizen on staged file.clean
: Removes installed, generated, and cached folders (node_modules, coverage, .next, etc.).update-dependencies
: Updates dependencies to their latest versions.The Turborepo / Next.js / TypeScript boilerplate is a comprehensive frontend monorepo that provides a structured and efficient development environment. It includes essential features such as remote cache build system, TypeScript support, Next.js apps, UI component packages, testing, linting, and code formatting. With easy setup and convenient scripts, this boilerplate is designed to promote best practices and deliver a seamless developer experience.