Tool for preparing config.js file. It consumes process.env. and produces .js file with values.
Call:
npm install -D @vroskus/config-web
yarn add -D @vroskus/config-web
Just run config-web <input file path> <output file path>
Input file format:
const params: Array<keyof $Config> = [
'PARAM',
...
];
Output file ormat:
var config = {
PARAM: "VALUE",
...
};