function(projPath) {
    // handle calling create outside of project and inside
    var rootPath = (projPath) ? projPath : './';

    // create both folder if it doesn't already exisit
    fs.mkdirsSync(rootPath);

    // bail if router already exists
    if (fs.existsSync(rootPath + 'both/routes.js')) return;

    // copy router.js from templates/ to project/both/controllers
    fs.copySync(this.routeSrc, rootPath + 'both/routes.js');
    console.log('    Created: both/routes.js');
  }
function(projPath) {
    
    var rootPath = (projPath) ? projPath : './';

    
    fs.mkdirsSync(rootPath);

    
    if (fs.existsSync(rootPath + 'both/routes.js')) return;

    
    fs.copySync(this.routeSrc, rootPath + 'both/routes.js');
    console.log('    Created: both/routes.js');
  }
function ( projPath ) { // handle calling create outside of project and inside var rootPath = ( projPath ) ? projPath : './' ; // create both folder if it doesn't already exisit fs . mkdirsSync ( rootPath ) ; // bail if router already exists if ( fs . existsSync ( rootPath + 'both/routes.js' ) ) return ; // copy router.js from templates/ to project/both/controllers fs . copySync ( this . routeSrc , rootPath + 'both/routes.js' ) ; console . log ( '    Created: both/routes.js' ) ; }
Public: Copy routes.js from templates folder into users `both/` folder. If file already exists it will not be overwritten.
Public : Copy routes . js from templates folder into users both / folder . If file already exists it will not be overwritten .