Raxol.Core.Standards.CodeGenerator (Raxol v2.0.1)

View Source

Code generation templates following Raxol coding standards.

Provides functions to generate consistent code structures for common patterns.

Summary

Functions

Generates a context module for business logic.

Generates a new GenServer module following standards.

Generates a LiveView module.

Generates a migration template.

Generates a new supervisor module.

Generates a test module template.

Functions

generate_context(module_name, functions \\ [])

Generates a context module for business logic.

generate_genserver(module_name, opts \\ [])

Generates a new GenServer module following standards.

generate_liveview(module_name, opts \\ [])

Generates a LiveView module.

generate_migration(name, operations \\ [])

Generates a migration template.

generate_schema(module_name, table_name, fields \\ [])

Generates a schema module.

generate_supervisor(module_name, children \\ [])

Generates a new supervisor module.

generate_test(module_name, test_cases \\ [])

Generates a test module template.