jrollin / react-build-once

Build once and deploy to multiple environments

Home Page:https://jrollin.github.io/react-build-once/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React : Deploy with one build

How to manage multiple deployments with the same Build

Example

App deployed on Github pages with custom env : envName and apiUrl

Installation

yarn 

Usage

Start

yarn start

Test

yarn test

Build

yarn  build

Deploy

Use gh-pages node module to deploy to github pages

npm run deploy:gh

To customize application name and api URL, we replaced /dist/env.js by /deploy/github.env.js

About

Build once and deploy to multiple environments

https://jrollin.github.io/react-build-once/


Languages

Language:JavaScript 48.0%Language:HTML 34.5%Language:CSS 17.5%