Merging reagents and reagents in one?

We are currently developing a project with a Node.js backend, a web interface and a mobile web interface. Currently, the project is divided into 2 folders,

  • Main project (response project)

    • / dist (for distribution)
    • / dev (for development)
    • / src (for source code)
      • / api (backend)
      • / web (web interface / mobile web interface)
  • application design (reactive design)

    • / Android
    IOS
  • / application (user code)
  • index.ios.js
  • index.android.js

Since the shared folders in both projects are .git, node_modules and .vscode, I do not see any visible conflicts. Right now, between the two projects there is not much common code, and we can leave each of them, but I wonder if merging the two into one folder can be more productive. Anyone have any suggestions or opinions on this?

+5
source share
1 answer

I would recommend sharing material in a separate folder / npm project and installing it via npm (local or git remote if you don't want to publish it). This way, both platforms remain separated (you expect different behavior from the web application than the ios application), but you can easily exchange the code.

0
source

All Articles