I've been looking at nodejs and how to create and require modules. Makes sense and works great.
I am interested though in using a concat function gulp-concat at the moment to concat all the js files into one js file.
This got me thinking that it is not possible when setting up a modular environment as when using the require function requires the modules to be in other files.
Is there a standard way of dealing with this? Are the files supposed to be in separate files?