question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adopt a monorepo structure

See original GitHub issue

💡 Idea

Adopt a monorepo structure

Motivation

Today, the project is composed of multiple package.json files, both installing different versions of the dependencies (mostly devDependencies). It would be great, when possible and wanted, to adopt a monorepo structure as offered by yarn.

Example

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
waynevansoncommented, Jul 10, 2020

I haven’t used lerna, but I’ve used yarn and it’s delightful.

A few notes to consider if not already considered:

  • Each package should have it’s own label in issues.
  • Pull requests should be minimal as merge conflicts are a pain from my experience. There are 2 pulls at the time of writing this! (y)
  • Changes don’t have to be breaking, as along as no one is using GitHub as a CDN.
0reactions
dubzzzcommented, Jun 2, 2022

Plan is to adopt Yarn 2/3 as the package and workspace manager backing fast-check. As our initial attempt failed because of our nested structure of packages not being proper workspaces, we will:

  1. adopt a structure close to a monorepo by only moving files and updating scripts accordingly
  2. adopt yarn 2/3
  3. switch to monorepo philosophy (possibly included in 2)
  4. move ava-fast-check and jest-fast-check here (fix original repos first to support v3)

Concerning 1, the target structure is the following:

  • codemods/
    • unify-signatures/
      • src/
      • test/
  • examples/
  • e2e/
    • test-esm/
    • test-types/
  • packages/
    • fast-check/
      • src/
      • test/
    • ava/
    • jest/

The e2e/ is inspired by the test/ within babel.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is monorepo? (and should you use it?) - Semaphore CI
A monorepo is a version-controlled code repository that holds many projects. While these projects may be related, they are often logically ...
Read more >
Embrace the Mono-repo! - Dev Genius
So adopting a monorepo often enables more deployment flexibility, and more modularity in application structure. Teams that have adopted a service-oriented ...
Read more >
On Adoption of Monorepo - byby.dev
Monorepo is a software development strategy where code for many projects is stored in the same repository, the repository is large in content ......
Read more >
The Case for Monorepos: How to Develop with ... - Bitovi
Monorepo is a single version control repository such as git that contains multiple and distinct projects that can be deployed independently.
Read more >
You too can love the MonoRepo - Medium
In the end, you could make multi-repo do everything a monorepo does by forcing engineers to fetch all the repositories into a given...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found