From 2ee2e6823042712d1ed15c521059faa5fcc02351 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sun, 9 Feb 2020 18:50:08 +0530 Subject: [PATCH] Inject version during build into the frontend --- Makefile | 4 ++-- frontend/package.json | 2 +- frontend/public/index.html | 1 + frontend/src/Layout.js | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 16ac525..a140657 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ build: .PHONY: build-frontend build-frontend: - cd frontend && yarn build + export REACT_APP_VERSION="${VERSION}" && cd frontend && yarn build .PHONY: run run: build @@ -27,7 +27,7 @@ run: build .PHONY: run-frontend run-frontend: - cd frontend && yarn start + export REACT_APP_VERSION="${VERSION}" && cd frontend && yarn start .PHONY: test test: diff --git a/frontend/package.json b/frontend/package.json index 983cdaf..9bc40e0 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,5 +1,5 @@ { - "name": "my", + "name": "listmonk", "version": "0.1.0", "private": true, "dependencies": { diff --git a/frontend/public/index.html b/frontend/public/index.html index c2f23fc..12e2816 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -9,6 +9,7 @@ listmonk +