0.0.2 • Published 5 years ago
changenv v0.0.2
:dizzy: changenv
Change environment vars after build
:dart: Motivation: Dead Components
Sometimes in project, with so specific architecture on build the env vars aren't change.
:computer: Tech
Just bash :)
:inbox_tray: Install
- Npm
npm i -g changenv- Yarn
yarn add changenv:hammer: Usage
changenv <environment> <path_to_folder>Changenv will looking for .env.<environment> file, read it, and for each var, change every match with process.env.<env_var_name> on <path_to_folder> with their value.
:zap: Examples
changenv production ./buildchangenv staging ./libchangenv development ./dist