main.js
// Require each JS file in the main-process dir
Require each JS file in the main-process dir
Require each JS file in the main - process dir
function loadDemos() {
  const files = glob.sync(path.join(__dirname, "main-process/**/*.js"));
  files.forEach(file => {
    require(file);
  });
}
function loadDemos ( ) { const files = glob . sync ( path . join ( __dirname , "main-process/**/*.js" ) ) ; files . forEach ( file => { require ( file ) ; } ) ; }
Require each JS file in the main-process dir
Require each JS file in the main - process dir