Git Product home page Git Product logo

lerna-template's Introduction

Lerna template

This project contains a working, example monorepo, whose options and configurations can be references when creating new projects.

Features

  • A Lerna monorepo, with projects for client, backend and common code under the packages directory.
  • client is a base React project, handled by vite.
  • backend is a very simple Express server.
  • common, for common code, is already imported by both the client and the backend.
  • Everything written in Typescript.
  • Eslint - with a config tailored for projects with Typescript, React and express.
  • Prettier - hooked to to eslint.
  • The project is configured for optimal developer experience.

Notes

  • Some of the configs and options here are applicable for many projects, not necessarily ones using a monorepo; in particular, the eslint config is very useful.
  • As is the convention, Lerna (and yarn workspaces) treat any directory under packages as a package.
  • In most cases, cloning this template and writing a project on top of it directly is discouraged. Most projects, specifically monorepos, require particular configuration and thought when initialized, and simply cloning this template (or any other template, for that matter) can introduce bugs or unwanted results that create problems for the developer, immediate or silent. Instead, it is encouraged that this template be used as a reference, and developers go file-by-file (there are not many), reviewing the configurations and copying over only what is needed, modifying paths and other options for the new project.
    As a side bonus, going file by file is a good exercise for the developer, for gaining proficiency and an understanding in the tools that eventually make up their project.

lerna-template's People

Contributors

nitzanhen avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.