1.2.1 • Published 4 years ago

react-environments v1.2.1

Weekly downloads
109
License
ISC
Repository
github
Last release
4 years ago

react-environments

this package really helps creating multiple environments in react js projects like we have in angular projects

Auther : Anuj Sharma Code git repo https://github.com/anujsharma-bbd/react-environments Implementation git repo https://github.com/anujsharma-bbd/using-react-environments-package

installing the package

npm install --save react-environments

setting up environment files under /src/environments/

naming convention is very strict to be like environment.prod.js, environment.dev.js , environment.qa.js, environment.pilot.js etc

content should be like this ->

Settings up package.json

just add prestart and prebuild command as below

using in component

running project inside of an environment

its mandatory to pass --env=qa | prod | dev etc whatever we need to use environment like for qa environment --> npm start --env=qa for prod environment --> npm start --env=prod for dev environment --> npm start --env=dev

creating build with an environment

its mandatory to pass --env=qa | prod | dev etc whatever we need to use environment like for qa environment --> npm run build --env=qa for prod environment --> npm run build --env=prod for dev environment --> npm run build --env=dev

1.2.1

4 years ago

1.2.0

4 years ago

1.1.13

4 years ago

1.1.12

4 years ago

1.1.11

4 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago