Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 23 days 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 (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-05T21:21:33.000Z (over 4 years ago)
- Last Synced: 2024-12-05T03:03:50.012Z (about 1 month ago)
- Topics: bash, build, env, environment, environment-variables, react-environnement
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- 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
[![NPM Version](https://img.shields.io/npm/v/changenv?logo=npm)]()
[![NPM Downloads](https://img.shields.io/npm/dw/changenv?logo=npm)]()
## :dart: Motivation: *Dead Components*Sometimes in project, with so specific architecture on build the env vars aren't change.
## :computer: TechJust 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
```