Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Yarn workspace help needed

$
0
0

So I am working on a react native project. And for the project my client after typing a lot of code asked me to add a late feature. Basically this was a very easy feature but because of all the code I wrote the feature became exceedingly hard to add. And because of this I decided to restart from scratch as my code could do an improvement and I also had a new design in mind the only problem is I need to install and setup all the packages all over again which is very painful as I need to go into the android folder and add some stuff too. Now after a few days of research I found yarn workspace and since I was already using yarn I thought let me use this as using this will help me install the packages for all my project in the root of the workspace, this also meant that I could setup ts-config and eslint for all the apps from the root so do it once happens every where.
now here comes the problem. Every video I looked at, every document I saw showed me either yarn workspace with react and react native, yarn workspace with react-native without typescript or just a blank node js server side template
And me being a beginner didn't know how to manipulate these docs and make the project work.
the final outcome I wanted was to have a yarn workspace with this kind of structure:

task-manager-workspace-> the workspace containing folder  workspaces-> Kind of like the packages folder     apps-> containing all the older and present versions of the app        app-> the latest react native app(bare bone not expo) with typescript included     common-> contains common stuff between the apps with not much changes        core-> contains some js logic like saving data or receiving data        views-> contains some common components like the header and navigation bar

now this whole application contains typescript should use eslint(preferably wcandillon configuring) and configured with prettier.
I am not asking you to do the work for but as a person who just started learning about workspace just yesterday please tell me how I am supposed to do this very intricut setup on the yarn workspace.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>