Monorepo Lerna Typescript Starter screenshot

Monorepo Lerna Typescript Starter

Author Avatar Theme by Liinkiing
Updated: 15 Sep 2020
5 Stars

A starter to bootstrap your next monorepo with Lerna, TypeScript, a frontend powered by Next, a backend powered by Node + TypeScript and a shared package to reuse code across those packages.

Categories

Overview

The Lerna Monorepo TypeScript Starter is an impressive solution for anyone looking to set up a monorepo with both a frontend and backend using TypeScript. This starter kit facilitates the development process by providing a well-structured architecture incorporating Lerna for efficient package management, Next.js for a dynamic frontend, and a Node.js backend. With a shared package for code reuse, it streamlines workflows and enhances productivity in building robust applications.

This starter is particularly appealing because it offers a comprehensive setup out of the box, allowing developers to focus more on implementing features rather than spending time on initial configurations. The combination of modern tools and frameworks makes it an excellent choice for teams looking to leverage the power of TypeScript across their projects effectively.

Features

  • Multi-Package Structure: Includes a backend, frontend, and shared package, allowing for a seamless development experience and code reuse across applications.

  • TypeScript Integration: Utilizes TypeScript for both the frontend and backend, ensuring type safety and enhancing code quality from the start.

  • Next.js Frontend: Comes with a fully featured Next TypeScript setup, including capabilities for end-to-end testing, Jest, and styled-components for modern UI design.

  • Node Backend: Features a pre-configured Node backend that supports aliases and bundling, simplifying server-side code management.

  • Watch Mode & Hot Reloading: The development script launches in watch mode, with auto-reloading for the frontend when changes are made, which speeds up the development process.

  • Shared Package: The included shared package is designed to be reusable, emitting both ES modules and CommonJS formats, facilitating consumption across the different parts of the monorepo.

  • Comprehensive Tooling: Includes essential tools such as Prettier for code formatting, ESLint for linting, and Husky for managing Git hooks, all pre-configured for immediate use.

  • TypeScript Typings: Exports TypeScript typings in the shared package, enhancing the developer experience and ensuring compatibility across different packages.