Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !6599

Support Lerna monorepos

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/fazouane-marouane/lerna into master Mar 08, 2019
  • Overview 17
  • Commits 2
  • Pipelines 0
  • Changes 4

Created by: fazouane-marouane

Hello,

A quick search for "monorepo" in the issues will show an increasing demand for it, especially since the release of create-react-app v2 ( https://github.com/facebook/create-react-app/issues/1333 ). We've had the need to allow usage of JSX, ESnext and TypeScript in all our codebase (a lerna monorepo) and just import those packages without build step into our react apps. We have a few react apps in our monorepo and they need to share components and helpers, data layer etc.

What we did until now is having a build step for every single package but today we'd like to eliminate this step and just use raw sources without the build step.

This PullRequest will provide support for simple projects as well as monorepos using lerna v2 and v3 (I didn't check older versions). The idea is simple:

  1. Look at the current app as will Lerna do
  2. Get all local dependencies (dependencies of the current react app that is present in the monorepo)
  3. Treat code from there as code in /src

Do you have any questions or suggestions regarding this? Marouane

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/fazouane-marouane/lerna