Most recent activity
-
The idea is to make it simple for those who clone the GitHub repo. If
require
worked the way I want it they would just run the project without the need to clone the modules separately. (I also don't want to publish those modules separately because they are very custom and made for a particular project)The local server is, of course, too overcomplicated for this purpose.
-
I’m writing a project that uses WiFi and I’d like to publish it on github. However, I don’t want to publish my WiFi credentials. The way I’d usually solve this is by creating a settings file and putting it in
.gitignore
. In this case it would look something like this:var WiFiCredentials = require('./wifi-credentials.js');
I also wrote some modules and I’d prefer to publish them alongside with the main project file rather than separately.
Is there any way I can require a local module not from the
modules
folder?
Will look into it, thanks!