Environment variables

Environment variables used by the ZoneGFX SDK

  • ZONEGFX_HOME - Path to the ZoneGFX SDK.

Environment variables ZoneGFX sets for packages

These environment variables are available for use with import.meta.env expressions within ZoneGFX packages, their build scripts and unit-testing scripts.

import.meta.env.ZONE_MANIFEST_DIR
  • TARGET - Path to the artifact target directory based on platform and build profile.
  • ZONE_MANIFEST_DIR - Path to the directory containing the manifest of your package.
  • ZONE_MANIFEST_PATH - Path to the manifest file of your package.
  • ZONE_PKG_ID - Package ID.
  • ZONE_PKG_VERSION - Package SemVer version number.
  • ZONE_PKG_VERSION_MAJOR - Package major version number.
  • ZONE_PKG_VERSION_MINOR - Package minor version number.
  • ZONE_PKG_VERSION_PATCH - Package patch version number.

Using static DotEnv variables

For setting static DotEnv variables in EZMAScript, create a .env file in your package's directory, with contents like:

FOO=bar

You can then refer to that in EZMAScript with expressions like:

import.meta.env.FOO