From ae25ed56af8d4d1d9695226d6bfc5e27e430a77a Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Wed, 24 Jun 2020 12:07:29 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20add=20convenience=20bui?= =?UTF-8?q?ld=20command=20at=20monorepo=20level?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 +++++++++++- package.json | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2bfd048f8..4c200c5e6 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,17 @@ of README. ### Building Core UI for Production See ui/core/README.md Building for Production for more information on how to -build the Core UI. +build the Core UI. Be sure to set build-related environment variables as +necessary for your target environment, as described in the Core UI readme. + +To quickly produce a production build of Core UI, run from this folder: + +```bash +yarn install +yarn build:production:core +``` + +Assets are saved to `ui/core/dist/`. ### Committing diff --git a/package.json b/package.json index f121c3503..17d23d120 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "ui/*" ], "scripts": { + "build:production:core": "cd ui/core && yarn build:production", "lint": "yarn lint:addons:api && yarn lint:addons:auth && yarn lint:addons:rose && yarn lint:ui:core", "lint:addons:api": "echo \"\n\nlint: addons/api\n\" && cd addons/api && yarn lint", "lint:addons:auth": "echo \"\n\nlint: addons/auth\n\" && cd addons/auth && yarn lint",