0.11.0 • Published 2 years ago

watch-env v0.11.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

watch-env

A utility to convert .env file into ./src/initEnv.js that can be included in your front end code so the back end and front end can share project wide constants.


How to use:

run once

npx watch-env

run in the background watching for changes in .env file and creating ./src/initEnv.js

npx watch-env --watch &

Examples of using in you project's package.json:

    "prep": "npx watch-env",
    "watch": "npx watch-env --watch &",
    
    "build": "run-s prep webpack"
    "front": "webpack serve",
    "back": "cd server && ./start.sh",

    "start": "run-s watch back front",
    "prod": "run-s build back"
0.11.0

2 years ago

0.10.2

2 years ago

0.10.1

2 years ago

0.10.0

2 years ago