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.

RFC: Lerna Project

See original GitHub issue

Hey!

How about projen for bootstrapping and maintaining Lernyarn monorepos?

import { LernaProject, TypeScriptLibraryProject, NodeProject } from '../lib';

const lernaProject = new LernaProject({
  name: 'my-monorepo-project',
  packages: [
    {
      name: 'ddb-connector',
      location: 'packages/@services',
      project: new TypeScriptLibraryProject({ name: 'ddb-connector', description: 'DynamoDB API / Connector' })
    },
    {
      name: 'service-portal',
      location: 'packages/@services',
      project: new NodeProject({ name: 'service-portal-api', description: 'Service Portal' })
    }],
  workSpaces: {
    packages: [
      "packages/@web/*",
      "packages/@rn/*",
      "packages/@iac/*",
      "packages/@services/*",
    ],
    nohoist: [],
  }
});

lernaProject.addPackage({
  name: 'geo',
  location: 'packages/@services',
  project: new TypeScriptLibraryProject({ name: 'geocoding-service', description: 'Geocoding Service' })
});
lernaProject.addBootstrappedPackage({
  name: 'cloud-infra',
  location: 'packages/@iac',
  beforeCommand: 'mkdir cloud && cd cloud',
  npxCommand: 'npx cdk init --language typescript',
});
lernaProject.addBootstrappedPackage({
  name: 'core',
  location: 'packages/@web',
  npxCommand: 'npx create-react-app web-frontend',
});

lernaProject.synth();

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

3reactions
eladbcommented, Oct 11, 2020

@adamelmore There is definitely appetite for lerna support! I like the direction in #13 and would be happy to provide feedback if you’d like to pick this up from where you left off.

0reactions
github-actions[bot]commented, Jul 8, 2021

Closing this issue as it hasn’t seen activity for a while. Please add a comment @mentioning a maintainer to reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RFC: Improving `lerna publish` · Issue #1767 - GitHub
this enables a more reliable & retryable lerna publish and removes functionality that's duplicated between lerna version and lerna publish.
Read more >
RFC: Monorepo support - Development - ReScript Forum
This post is to specify the possible monorepo structures that ReScript should support. As a first step, let's discuss where the rescript ...
Read more >
Developers - RFC: Lerna Project - - Bountysource
RFC : Lerna Project ... Hey! How about projen for bootstrapping and maintaining Lernyarn monorepos? import { LernaProject, TypeScriptLibraryProject, NodeProject } ...
Read more >
Managing Monorepo using Lerna and Yarn workspaces
Lerna is "a tool for managing JavaScript projects with multiple packages", as the official website ... https://github.com/npm/rfcs/pull/103.
Read more >
@lerna-lite/run - npm
Start using @lerna-lite/run in your project by running `npm i ... this RFC, so perhaps someday this package would become irrelevant :)).
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