src/indexOld.js
function setManifest(manifest, withCommit, message){
        jsonfile.writeFileSync(manifestPath, manifest, {spaces: 2});
        if(withCommit) {
            return _commit(null, ["manifest.json"],
               message || "Changed the manifest file");
        }
    }
function setManifest(manifest, withCommit, message){
        jsonfile.writeFileSync(manifestPath, manifest, {spaces: 2});
        if(withCommit) {
            return _commit(null, ["manifest.json"],
               message || "Changed the manifest file");
        }
    }
function setManifest ( manifest , withCommit , message ) { jsonfile . writeFileSync ( manifestPath , manifest , { spaces : 2 } ) ; if ( withCommit ) { return _commit ( null , [ "manifest.json" ] , message || "Changed the manifest file" ) ; } }
Update the repository manifest.json file using a JavasScript Object
@method setManifest
@param {Object} manifest The manifest Object to save
@param {boolean} withCommit If true commits the changes to the repository
@param {String} message If supplied it is used as the message for the commit
@returns {Promise} If withCommit is true, the function returns a Promise
Update the repository manifest . json file using a JavasScript Object