@vroskus/config-web
v1.0.9
Published
Tool for preparing config.js file
Downloads
12
Readme
@vroskus/config-web
Tool for preparing config.js file. It consumes process.env. and produces .js file with values.
Installation
Call:
npm install -D @vroskus/config-web
yarn add -D @vroskus/config-web
Usage
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",
...
};