Skip to content

Commit

Permalink
feat: add support for generating manifest app_hub_id from d2.config id (
Browse files Browse the repository at this point in the history
  • Loading branch information
amcgee authored Feb 23, 2021
1 parent 49b36f3 commit f0478b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cli/src/lib/generateManifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion examples/simple-app/d2.config.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit f0478b0

Please sign in to comment.