core/utils/lib/cmd/gina-add-bundle.js
function(callback) {
        var data = JSON.parse(JSON.stringify(self.projectData, null, 4));
        data.bundles[self.bundle] = {
            "comment" : "Your comment goes here.",
            "tag" : "001",
            "src" : "src/" + bundle,
            "release" : {
                "version" : "0.0.1",
                "link" : "bundles/"+ bundle
            }
        };
        try {
            fs.writeFileSync(self.project, JSON.stringify(data, null, 4));
            callback(false, data)
        } catch (err) {
            callback(err, undefined)
        }
    }
function(callback) {
        var data = JSON.parse(JSON.stringify(self.projectData, null, 4));
        data.bundles[self.bundle] = {
            "comment" : "Your comment goes here.",
            "tag" : "001",
            "src" : "src/" + bundle,
            "release" : {
                "version" : "0.0.1",
                "link" : "bundles/"+ bundle
            }
        };
        try {
            fs.writeFileSync(self.project, JSON.stringify(data, null, 4));
            callback(false, data)
        } catch (err) {
            callback(err, undefined)
        }
    }
function ( callback ) { var data = JSON . parse ( JSON . stringify ( self . projectData , null , 4 ) ) ; data . bundles [ self . bundle ] = { "comment" : "Your comment goes here." , "tag" : "001" , "src" : "src/" + bundle , "release" : { "version" : "0.0.1" , "link" : "bundles/" + bundle } } ; try { fs . writeFileSync ( self . project , JSON . stringify ( data , null , 4 ) ) ; callback ( false , data ) } catch ( err ) { callback ( err , undefined ) } }
Save project.json

@param {string} projectPath
@param {object} content - Project file content to save
Save project . json