commit bf20cbfeb441dfc4d9a109e6e4502ebc37a10b02
parent 808934fae5968ae0d967bdd3d1d5f5ba9322881e
Author: Sebastian <sebasjm@gmail.com>
Date: Tue, 23 Feb 2021 17:05:38 -0300
dist command
Diffstat:
3 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -7,4 +7,4 @@ node_modules/
/configure
/build-system/config.mk
/Makefile
-
+*.zip
diff --git a/README.md b/README.md
@@ -1,6 +1,6 @@
## Merchant Admin Frontend
-Merchant Admin Frontend is a Single Page Application that connect with a running Merchant Backend and lets you manage instances, order, products and tippings
+Merchant Admin Frontend is a Single Page Application (SPA) that connect with a running Merchant Backend and lets you manage instances, order, products and tippings
## System requirements
@@ -43,7 +43,17 @@ make dev PORT=9090
## Building for deploy
-To
+To build and deploy the SPA in your local server run the install script
+
+```shell
+make install
+```
+
+Aditionally `make dist` will create a zip file with the content to upload into a server
+
+```shell
+make dist
+```
## CLI Commands
@@ -66,7 +76,6 @@ To
* `make dev-views`: Run visual components explorer. Usefull for components design and development
without the need of setting up the whole system.
-
## Runtime dependencies
* Axios: Promise based HTTP client for the browser and node.js
diff --git a/build-system/Makefile b/build-system/Makefile
@@ -59,6 +59,10 @@ dev-view: compile
lint:
pnpm run lint
+.PHONY: dist
+dist: build
+ (cd packages/frontend/build && zip -r - .) > merchant-backoffice.zip
+
.PHONY: install
install: build
echo install -d ${prefix}