text: var _ = require('lodash');
  var exec = require('child_process').execSync;
  var fs = require('fs');
  var path = require('path');
  
  var excludedDirectories = ['css', 'images', 'dist','node_modules','webdriver-java'];
  
  // set the following variable to resume building with a framework and skip all
  // other frameworks that would be buils before
  var restartWithFramework = '';
  var build = !restartWithFramework ? true : false;
  
  _.each(fs.readdirSync('.'), function(name) {
  	if(!name.startsWith(".") && fs.statSync(name).isDirectory() && excludedDirectories.indexOf(name)==-1 && fs.existsSync(path.join(name, "package.json"))) {
  		if (!build && name.startsWith(restartWithFramework)) build = true;
  		if (build) {
  			console.log("*** Executing npm install in "+name);
              exec('yarn', {
  				cwd: name,
  				stdio: 'inherit'
  			});
  			console.log("*** Executing npm run build-prod in "+name);
  			exec('npm run build-prod', {
  				cwd: name,
  				stdio: 'inherit'
  			});
  		} else {
  			console.log("*** Skipping "+name);
  		}
  	}
  });