Skip to main content

Generator

API reference

Implements Node

completed
Whether the generator complete
description
Return the description of the generator
id
A unique identifier for this Generator.
isEmpty
Whether changeset from the last generator run is empty or not
name
Return the command name of the generator. Entrypoint targets omit the module prefix.
path
The path of the generator within its module
changes
The generated changeset from the last run
originalModule
The module that defined the generator, or null for an engine-defined generator
run
Execute the generator

completed: Boolean!

Whether the generator complete

description: String!

Return the description of the generator

id: ID!

A unique identifier for this Generator.

isEmpty: Boolean!

Whether changeset from the last generator run is empty or not

name: String!

Return the command name of the generator. Entrypoint targets omit the module prefix.

path: [String!]!

The path of the generator within its module

changes: Changeset!

The generated changeset from the last run

originalModule: Module

The module that defined the generator, or null for an engine-defined generator

run: Generator!

Execute the generator

References

Returned by