You are reading a single comment by @chrsbvr and its replies. Click here to read the full conversation.
  • I'm looking at building an application for my ESP32 with Espruino, and I'd like to organize my code in different javascript modules. I see that if I want to use a require() on a local file, it looks in whatever folder is assigned to my projects in the IDE. Then there is a modules subfolder there for including local js modules.

    My problem is I want to maintain code in different files, and also host it in a git repository. How can I do this without having to include the Espruino IDE project folder and all of the contents with it?

    Ultimately I'd like to have a folder anywhere on my local drive and that the require() statement would search inside the local folder holding my code rather than putting modules for all of my projects in the same folder. Can I do this?

About

Avatar for chrsbvr @chrsbvr started