envup
Getting started
Install the tool from npm
$ npm i -g envup
Define the variables your application needs in an env.json
in the root of the directory:
Run the command in the project root:
$ envup
For more advanced use cases specify an env.js
that exports a function returning the env keypairs:
const googleFont = { return `'https://fonts.googleapis.com/css?family=:400,700'`;};module { return inquirer prompt type: "list" name: "REACT_APP_FONT" message: "Which theme do you want" default: currentEnvREACT_APP_FONT || "Roboto" choices: "Roboto" "Lato" "Montserrat" ;};