js/highcharts-master/copy-release.js
/**
     * Add the current version to the Bower file
     */
Add the current version to the Bower file
Add the current version to the Bower file
function updateJSONFiles(product, version, name) {
        var i = 0;
        function proceed(err) {
            i = i + 1;
            if (err) {
                throw err;
            }
            if (push && i === 2) {
                runGit(product, version);
            }
        }
        console.log('Updating bower.json and package.json for ' + name + '...');
        ['bower', 'package'].forEach(function (file ) {
            fs.readFile('../' + releaseRepo(product) + '/' + file + '.json', function (err, json) {
                if (err) {
                    throw err;
                }
                json = JSON.parse(json);
                json.version = 'v' + version;
                json = JSON.stringify(json, null, '  ');
                fs.writeFile('../' + releaseRepo(product) + '/' + file + '.json', json, proceed);
            });
        });
    }
function updateJSONFiles ( product , version , name ) { var i = 0 ; function proceed ( err ) { i = i + 1 ; if ( err ) { throw err ; } if ( push && i === 2 ) { runGit ( product , version ) ; } } console . log ( 'Updating bower.json and package.json for ' + name + '...' ) ; [ 'bower' , 'package' ] . forEach ( function ( file ) { fs . readFile ( '../' + releaseRepo ( product ) + '/' + file + '.json' , function ( err , json ) { if ( err ) { throw err ; } json = JSON . parse ( json ) ; json . version = 'v' + version ; json = JSON . stringify ( json , null , '  ' ) ; fs . writeFile ( '../' + releaseRepo ( product ) + '/' + file + '.json' , json , proceed ) ; } ) ; } ) ; }
Add the current version to the Bower file
Add the current version to the Bower file
/**
         * Continue after writing files
         */