High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Inject version during build into the frontend
Kailash Nadh2ee2e6823042
diff --git a/Makefile b/Makefileindex 16ac525c..a140657d 100644--- a/Makefile+++ b/Makefile@@ -19,7 +19,7 @@ build:.PHONY: build-frontendbuild-frontend:- cd frontend && yarn build+ export REACT_APP_VERSION="${VERSION}" && cd frontend && yarn build.PHONY: runrun: build@@ -27,7 +27,7 @@ run: build.PHONY: run-frontendrun-frontend:- cd frontend && yarn start+ export REACT_APP_VERSION="${VERSION}" && cd frontend && yarn start.PHONY: testtest:diff --git a/frontend/package.json b/frontend/package.jsonindex 983cdafe..9bc40e0d 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.htmlindex c2f23fc4..12e2816a 100644--- a/frontend/public/index.html+++ b/frontend/public/index.html@@ -9,6 +9,7 @@<link rel="manifest" href="%PUBLIC_URL%/manifest.json"><link rel="shortcut icon" href="%PUBLIC_URL%/favicon.png"><title>listmonk</title>+ <script>VERSION = "%REACT_APP_VERSION%";</script></head><body><noscript>diff --git a/frontend/src/Layout.js b/frontend/src/Layout.jsindex 54b1b802..f84f867a 100644--- a/frontend/src/Layout.js+++ b/frontend/src/Layout.js@@ -230,7 +230,8 @@ class Base extends React.Component {>listmonk</a>{" "}- © 2019 {year !== 2019 ? " - " + year : ""} —{" "}+ © 2019 {year !== 2019 ? " - " + year : ""}.+ Version { process.env.REACT_APP_VERSION } —{" "}<ahref="https://listmonk.app/docs"target="_blank"