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.

Make it a proper multipackage monorepo

See original GitHub issue

I think we should change the directory structure to make it easier to add more packages to the project in the future. I’m thinking something like this:

packages
  - create-react-app (this is global-cli in current layout)
    - index.js
    - package.json
  - react-scripts (this is project root in current layout)
    - bin
    - config
    - scripts
    - package.json
tasks
template

A PR doing this is welcome. (You’ll probably want to adjust config/paths.js to account for this change.)

If you plan to work on this please leave a comment here so multiple people don’t work on the same thing. Please respect it if somebody has taken the task, and let them finish it.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gaearoncommented, Sep 24, 2016

Done thanks to @ryanyogan and @fson. This unlocked many opportunities for us so thank you for moving this project forward.

1reaction
hzoocommented, Aug 8, 2016

I agree Lerna isn’t necessary atm but it’s relatively simple to setup with independent mode (you don’t need crazy options)

# or global?
npm install lerna --save-dev
./node_modules/.bin/lerna init (add lerna.json)
./node_modules/.bin/lerna bootstrap (npm installs packages, links)
# when publish is necessary
./node_modules/.bin/lerna publish --independent

Should write up that usage guide sometime…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Create a Monorepo for Multiple Node Packages
1. Github Repository Creation · 2. Install Lerna & Setup the Project Locally: · 3. Create Lerna managed packages · 4. Generating a...
Read more >
A Guide to Monorepos for Front-end Code - Toptal
A monorepo or monorepository is a code management and architectural concept whereby you keep all your isolated bits of code inside one super...
Read more >
Cross-repository Component Sharing using Mono-repo Multi ...
A tool for managing JavaScript projects with multiple packages. · Setting up a dev environment for every single package it now just 3...
Read more >
Managing a full-stack, multipackage monorepo using pnpm
With a monorepo, we can make code changes to both and commit to a single code repository, updating both components at the same....
Read more >
Setting up a TypeScript multi-package mono-repo for ...
Step 1: Setting up the top-level NPM project · Step 2: Create scoped packages in workspaces · Step 3: Configuring out TypeScript setup...
Read more >

github_iconTop Related Medium Post

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