mix mishka.ui.gen.component (Mishka Chelekom v0.0.4)
View SourceA Mix Task for generating and configuring Phoenix components
This script is used in the development environment and allows you to easily add all Mishka components to the components directory in your Phoenix project.
It should be noted that you can create any component with limited arguments. For example, put only a certain color in the button and do not put other codes in the component.
For this reason, the main goal is to build the component and its dependencies, and approval at every stage.
With this method, you no longer need to add anything you don't need to your project and minimize dependencies and attacks on dependencies and project maintenance.
Example
mix mishka.ui.gen.component component --example arg
Options
--variant
or-v
- Specifies component variant--color
or-c
- Specifies component color--size
or-s
- Specifies component size--padding
or-p
- Specifies component padding--space
or-sp
- Specifies component space--type
or-t
- Specifies component type--rounded
or-r
- Specifies component type--no-sub-config
- Creates dependent components with default settings--module
or-m
- Specifies a custom name for the component module--sub
- Specifies this task is a sub task--no-deps
- Specifies this task is created without sub task--yes
- Makes directly without questions