From 10a9d15efc4187865f313823d5d1218824561fcd Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Fri, 19 Nov 2021 16:21:06 +0100 Subject: [PATCH] docs(d2-config): add id and version fields to d2-config reference (#692) * docs(d2-config): add id and version fields to d2-config reference * style: run prettier * docs: review --- docs/config/d2-config-js-reference.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/config/d2-config-js-reference.md b/docs/config/d2-config-js-reference.md index f7b5aef29..d4a634448 100644 --- a/docs/config/d2-config-js-reference.md +++ b/docs/config/d2-config-js-reference.md @@ -16,12 +16,15 @@ The following configuration properties are supported: | **type** | _string_ | **app** | Either **app** or **lib** | | **name** | _string_ | `pkg.name` | A short, machine-readable unique name for this app | | **title** | _string_ | `config.name` | The human-readable application title, which will appear in the HeaderBar | +| **id** | _string_ | | The ID of the app on the [App Hub](https://apps.dhis2.org/). Used when publishing the app to the App Hub with [d2 app scripts publish](../scripts/publish). See [this guide](https://developers.dhis2.org/docs/guides/publish-apphub/) to learn how to set up continuous delivery. | | **description** | _string_ | `pkg.description` | A full-length description of the application | | **author** | _string_ | `pkg.author` | The name of the developer to include in the DHIS2 manifest | | **entryPoints.app** | _string_ | **./src/App** | The path to the application entrypoint (not used for libraries) | | **entryPoints.lib** | _string_ or _object_ | **./src/index** | The path to the library entrypoint(s) (not used for applications). Supports [conditional exports](https://nodejs.org/dist/latest-v16.x/docs/api/packages.html#packages_conditional_exports) | | **dataStoreNamespace** | _string_ | | The DataStore and UserDataStore namespace to reserve for this application. The reserved namespace **must** be suitably unique, as other apps will fail to install if they attempt to reserve the same namespace - see the [webapp manifest docs](https://docs.dhis2.org/en/develop/loading-apps.html) | | **customAuthorities** | _Array(string)_ | | An array of custom authorities to create when installing the app, these do not provide security protections in the DHIS2 REST API but can be assigned to user roles and used to modify the interface displayed to a user - see the [webapp manifest docs](https://docs.dhis2.org/en/develop/loading-apps.html) | +| **minDHIS2Version** | _string_ | | The minimum DHIS2 version the App supports (eg. '2.35'). Required when uploading an app to the App Hub. | +| **maxDHIS2Version** | _string_ | | The maximum DHIS2 version the App supports. | | **coreApp** | _boolean_ | **false** | **ADVANCED** If true, build an app artifact to be included as a root-level core application | | **standalone** | _boolean_ | **false** | **ADVANCED** If true, do NOT include a static BaseURL in the production app artifact. This includes the `Server` field in the login dialog, which is usually hidden and pre-configured in production. | | **pwa** | _object_ | | **ADVANCED** Opts into and configures PWA settings for this app. Read more about the options in [the PWA docs](pwa/pwa). |