Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

HEMTT

The HEMTT constant gives access to information and the ability to modify the build process.

version()

Returns the version of HEMTT.

HEMTT.version().to_string(); // "1.16.2"
HEMTT.version().major(); // 1
HEMTT.version().minor(); // 16
HEMTT.version().patch(); // 2
HEMTT.version().build(); // ""

project()

Returns the project information.

See more about the Project library.

HEMTT.project().version().to_string(); // "1.3.0.1052"

mode()

Returns the current mode of HEMTT, one of:

  • dev
  • launch
  • build
  • release
HEMTT.mode(); // "release"

is_dev()

Returns true if the current mode is dev.

HEMTT.is_dev(); // false

is_launch()

Returns true if the current mode is launch.

HEMTT.is_launch(); // false

is_build()

Returns true if the current mode is build.

HEMTT.is_build(); // false

is_release()

Returns true if the current mode is release.

HEMTT.is_release(); // true