installDevConfig() {
        //https://stackoverflow.com/a/36974021/881111
        var inputfile = `${utils.RepositoryRootDir}/.dev.config.yaml`,
            outputfile = `${utils.RepositoryRootDir}/src/config/dev.config.json`,
            yaml = require('js-yaml'),
            fs = require('fs'),
            obj = yaml.load(fs.readFileSync(inputfile, {encoding: 'utf-8'}));
        console.log(`AndroidHelper: Copying ${inputfile} to ${outputfile}`);
        fs.writeFileSync(outputfile, JSON.stringify(obj, null, 2));
    }
// However, it only updates the config when this script is run.
However, it only updates the config when this script is run.
However it only updates the config when this script is run .
installDevConfig() {
        var inputfile = `${utils.RepositoryRootDir}/.dev.config.yaml`,
            outputfile = `${utils.RepositoryRootDir}/src/config/dev.config.json`,
            yaml = require('js-yaml'),
            fs = require('fs'),
            obj = yaml.load(fs.readFileSync(inputfile, {encoding: 'utf-8'}));
        console.log(`AndroidHelper: Copying ${inputfile} to ${outputfile}`);
        fs.writeFileSync(outputfile, JSON.stringify(obj, null, 2));
    }
installDevConfig ( ) { var inputfile = ` ${ utils . RepositoryRootDir } ` , outputfile = ` ${ utils . RepositoryRootDir } ` , yaml = require ( 'js-yaml' ) , fs = require ( 'fs' ) , obj = yaml . load ( fs . readFileSync ( inputfile , { encoding : 'utf-8' } ) ) ; console . log ( ` ${ inputfile } ${ outputfile } ` ) ; fs . writeFileSync ( outputfile , JSON . stringify ( obj , null , 2 ) ) ; }
However, it only updates the config when this script is run.
However it only updates the config when this script is run .
//https://stackoverflow.com/a/36974021/881111