mix mishka.ui.add (Mishka Chelekom v0.0.4)

View Source

A Mix Task for generating and configuring Phoenix components from a repo

This section is part of the CLI community version, which allows you to download components, templates, and presets from another repository and add them to the priv directory of your project—without requiring any additional plugins. Additionally, you can specify your own custom URLs to share components you've developed with your team. This CLI provides functionalities to facilitate such sharing. For more details, please refer to the documentation on the https://mishka.tools/chelekom website.

Official Library Repository:

Official Community Version Repository:

Important Notice::

Several sections in the documentation on Mishka.tools, as well as individual tasks, address security concerns. Since you are integrating an external component, it is crucial to verify the source from which the file is being imported. Please note that all responsibility for this integration lies with you.

Example

mix mishka.ui.add repo --example arg

Options

  • --no-github - Specifies a URL without github replacing
  • --headers - Specifies a repo url request headers

Summary

Types

t()

@type t() :: %Mix.Tasks.Mishka.Ui.Add{
  components: [String.t()],
  files: [map()],
  name: String.t(),
  type: String.t()
}

Functions

builder(attrs, error \\ false)

convert_headers(headers_list)

enforce_keys()

enforce_keys(key)

format_errors(errors)

igniter(igniter, argv)

Callback implementation for Igniter.Mix.Task.igniter/2.

keys()

keys(key)

uniq_components?(name, value)