Replies: 1 comment 1 reply
-
I think that would be good, I agree some folders can be confusing. Also, some components needs to be refactored into smaller ones. So, the first thing we need to have in mind is that Electron has some peculiarities, and since we are using it with typescript, some arrangements are needed, so that's why we have the electron folder and a tsconfig for it. Maybe the Electron folder could be moved into src, or we could have folders for backend and frontend. The Assets needs to be inside a folder that React can see because REact cant access anything outside the src dir, this is a global React rule and, even though can be broken with some workarounds, is not recommended. Other than that I think the idea is good and we can start doing it little by little to avoid breaking stuff. :) |
Beta Was this translation helpful? Give feedback.
-
Initially I was a bit confused where was what and wasn't 100% sure why. But after looking at the directory structure, I found out that some files where in unexpected places, like:
public/
folder containsstart-react.js
that actually starts electron after react.src/
folder, take theelectron/
folder for example.public/
folder contains static and generated code. Which really confused me in the beginning when my edited code was overwritten.state/
folder threw me off.src/
folderThese are a few of the items that confused me initially when working on the project. So I'd decided to sit down and design a new directory structure as a suggestion for when we are moving to the new UI design. I have written a mockup structure over at my repository over here: directoryDesign
I'm not 100% sure if everything is possible, because I never works on a Electron + React + TS combo. But I'd think the project benefits if we organise the folder structure a bit where everything has its own folder to make it easier to navigate and understand.
Beta Was this translation helpful? Give feedback.
All reactions