All code from this tutorial as a complete package is available in this repository and a video version of this tutorial is available below:
Do ...
For further actions, you may consider blocking this person and/or reporting abuse
Really great intro to lerna thank you for having converted me to using it on an upcoming project. Getting so tired of copy pasting from old repositories and am finally creating my giga repo storing all my knowledge in one place to reuse.
Thanks for reading everyone. If anyone has any tips or suggestions themselves, I'm extremely interested in hearing them.
I feel like this is the kind of thing that can be configured so many different ways, I'd love to hear of any success stories, particularly from large long-lived projects with many contributors.
Cheers.
Hi thank you, just what I was looking for. Instead of lerna I've been using nx and it's great. I am gonna try this submodules to all my projects, thanks again and hope you keep posting! Keep up the good work
Good stuff! I've never used nx, glad to head it works well for you.
Hi, thank you. Great article!
Just I think some text is missing in the end of chapter 'Sharing Code and Adding Dependencies':
' ...That is fairly harmless, but what if we...'
I am curious what is there :)
That's a great question, nice catch! I'll have to update that
The intention was to say "what if we are not deploying our backend and frontend to the same server". By creating a "shared" repository we can include the shared data in both back & front, but deploy each one separately when setting up our production environments.
hi
tanks a lot for your your code has some trial bugs..
fetch("localhost:3001/", {}) must change to fetch("localhost:3001/data", {})
and you must use var cors = require('cors'); for prevent cors error ,..
thanks for sharing!
I made a little experiment that didn't go well:
in simple-shared-data/index.ts
I added:
Then I imported it in App.tsx, like this:
But as soon as I try to use it, like this:
Then it goes crazy😵
are we doomed to export just types? 🤢
any help?😭
Thanks for the good content! Is it possible to have optionals submodules! In my use case I would like to share a submodule between two projects without giving access to the submodule code. I will share the submodule just in the build process.
I tried to do conditional import and require but it doesn't work with metro bundler in react-native.
So, how to switch branch inside the git submodule ?
Without it, this article seems useless ;)
Same syntax as within the main module, just:
git branch branch-name
while within a directory of the submodule and the branch will be updated for the submodule and not the main module.
Impressive blog with lovely information. Really very useful article for us thanks for sharing such a wonderful blog.
espirittech.com/react-js-services/
Good Post, great intro to the monorepo structure and also good introduction to Lerna.
I suggest using ViTE instead of CRA, for future examples!