AtlasOfLivingAustralia / extended-data-model

0 stars 0 forks source link

Support multi-configurations for UI #101

Open javier-molina opened 1 year ago

javier-molina commented 1 year ago

This is a pointer to https://github.com/gbif/gbif-web/issues/280

javier-molina commented 1 year ago

@djtfmartin to review approach please.

qifeng-bai commented 1 year ago

Add some changes in package.json to simplify building process with different env

Example:

"build:test": "path-exists .env.development.json && shx cp .env.development.json .env.json && echo \"Build with .env.development.json \"; npx webpack --mode=development",

When we run: npm run build:test, the process with check if .env.development.jsonexists, overwrite.env with this file and build, if .env.development.json exists.

Build with .env.jsonif env.development.json does not exist.

This script can run cross platforms

PR: https://github.com/gbif/gbif-web/pull/296

djtfmartin commented 1 year ago

This is now merged