From f0478b0d9a124fbaed4ca932af6aa0d988343d66 Mon Sep 17 00:00:00 2001 From: Austin McGee <947888+amcgee@users.noreply.github.com> Date: Tue, 23 Feb 2021 11:15:43 +0100 Subject: [PATCH] feat: add support for generating manifest app_hub_id from d2.config id (#515) --- cli/src/lib/generateManifest.js | 1 + examples/simple-app/d2.config.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/src/lib/generateManifest.js b/cli/src/lib/generateManifest.js index 4cd2593c9..bd4337b91 100644 --- a/cli/src/lib/generateManifest.js +++ b/cli/src/lib/generateManifest.js @@ -3,6 +3,7 @@ const fs = require('fs-extra') module.exports = (paths, config, publicUrl) => { const manifest = { + app_hub_id: config.id, appType: 'APP', short_name: config.name, name: config.title, diff --git a/examples/simple-app/d2.config.js b/examples/simple-app/d2.config.js index 0bf536ec9..39c435b55 100644 --- a/examples/simple-app/d2.config.js +++ b/examples/simple-app/d2.config.js @@ -1,9 +1,10 @@ const config = { + id: 'ASDF1234', // This must match the AppHub ID to successfully publish name: 'simple-app', title: 'Simple Example App', description: 'This is a simple example application', - standalone: true, // Don't bake-in a DHIS2 base URL, allow the user to choose + // standalone: true, // Don't bake-in a DHIS2 base URL, allow the user to choose entryPoints: { app: './src/App',