ash/documentation/topics/development/generators.md

592 B

Generators

Ash comes with multiple generators, packages as mix tasks, to help you generate and make modifications to your applications.

See the documentation for each mix task for more information. What is presented here is merely an overview.

Generators

  • mix ash.gen.resource - Generates a new Ash.Resource
  • mix ash.gen.domain - Generates a new Ash.Domain
  • mix ash.gen.enum - Generates a new Ash.Type.Enum
  • mix ash.gen.base_resource - Generates a new base resource.

Patchers

  • mix ash.patch.extend - Adds an extension or extensions to a domain or resource.