MishkaChelekom.Config (Mishka Chelekom v0.0.9-alpha.17)

Copy Markdown View Source

Handles configuration for Mishka Chelekom components. Manages user settings including prefixes, CSS variables, and component generation options.

Summary

Functions

Creates a sample configuration file for users.

Generates the final CSS content by merging defaults with user overrides.

Loads user configuration from priv/mishka_chelekom/config.exs if it exists. Returns a map with configuration options or defaults.

Updates the component_prefix value in the user's config file. Creates the config file with sample content if it doesn't exist.

Updates the module_prefix value in the user's config file. Creates the config file with sample content if it doesn't exist.

Functions

create_sample_config(igniter)

Creates a sample configuration file for users.

generate_css_content(igniter)

Generates the final CSS content by merging defaults with user overrides.

load_user_config(igniter)

Loads user configuration from priv/mishka_chelekom/config.exs if it exists. Returns a map with configuration options or defaults.

update_component_prefix(igniter, prefix)

Updates the component_prefix value in the user's config file. Creates the config file with sample content if it doesn't exist.

update_module_prefix(igniter, prefix)

Updates the module_prefix value in the user's config file. Creates the config file with sample content if it doesn't exist.