src/indexOld.js
function _createConfig(){
        let file = repositoryPath + '/config.json';
        let config = {
            simulation: false
        };
        return new Promise(function(resolve, reject) {
            jsonfile.writeFile(file, config, function (err) {
                if(err){
                    reject(err);
                    return;
                }
                resolve();
            });

        });
    }
function _createConfig(){
        let file = repositoryPath + '/config.json';
        let config = {
            simulation: false
        };
        return new Promise(function(resolve, reject) {
            jsonfile.writeFile(file, config, function (err) {
                if(err){
                    reject(err);
                    return;
                }
                resolve();
            });

        });
    }
function _createConfig ( ) { let file = repositoryPath + '/config.json' ; let config = { simulation : false } ; return new Promise ( function ( resolve , reject ) { jsonfile . writeFile ( file , config , function ( err ) { if ( err ) { reject ( err ) ; return ; } resolve ( ) ; } ) ; } ) ; }
Create the config file inside the repository
@method _createManifest
@returns {Promise}
Create the config file inside the repository