https://github.com/narcello/changenv
:toolbox: Change env vars after build
https://github.com/narcello/changenv
bash build env environment environment-variables react-environnement
Last synced: 2 months ago
JSON representation
:toolbox: Change env vars after build
- Host: GitHub
- URL: https://github.com/narcello/changenv
- Owner: narcello
- License: mit
- Created: 2020-08-27T17:30:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-05T21:21:33.000Z (almost 6 years ago)
- Last Synced: 2025-06-29T10:39:57.706Z (12 months ago)
- Topics: bash, build, env, environment, environment-variables, react-environnement
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changenv.sh
- License: LICENSE
Awesome Lists containing this project
README
# :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
```sh
npm i -g changenv
```
* Yarn
```sh
yarn add changenv
```
## :hammer: Usage
```bash
changenv
```
Changenv will looking for `.env.` file, read it, and for each var, change every match with `process.env.` on `` with their value.
## :zap: Examples
```bash
changenv production ./build
```
```bash
changenv staging ./lib
```
```bash
changenv development ./dist
```