lib/install.js
function doInstall(settings, destination) {
  // Create application directories if they don't exist.
  var folders = [
    destination,
    path.join(destination, '/public'),
    path.join(destination, '/extensions')
  ];
  folders.forEach(function(folder) {
    if (!fs.existsSync(folder)) {
      fs.mkdirSync(folder);
    }
  });

  // Create settings.json.
  fs.writeFileSync(path.join(destination, 'settings.json'), JSON.stringify(settings, null, '  '), {flag: 'w'});
}
function doInstall(settings, destination) {
  // Create application directories if they don't exist.
  var folders = [
    destination,
    path.join(destination, '/public'),
    path.join(destination, '/extensions')
  ];
  folders.forEach(function(folder) {
    if (!fs.existsSync(folder)) {
      fs.mkdirSync(folder);
    }
  });

  // Create settings.json.
  fs.writeFileSync(path.join(destination, 'settings.json'), JSON.stringify(settings, null, '  '), {flag: 'w'});
}
function doInstall ( settings , destination ) { // Create application directories if they don't exist. var folders = [ destination , path . join ( destination , '/public' ) , path . join ( destination , '/extensions' ) ] ; folders . forEach ( function ( folder ) { if ( ! fs . existsSync ( folder ) ) { fs . mkdirSync ( folder ) ; } } ) ; // Create settings.json. fs . writeFileSync ( path . join ( destination , 'settings.json' ) , JSON . stringify ( settings , null , '  ' ) , { flag : 'w' } ) ; }
Create application folder structure and initial settings.
Create application folder structure and initial settings .