View Source Mix.Flowy (Flowy v0.1.0)

Mix tasks for Flowy.

Summary

Functions

Returns the OTP context app.

Returns the context app path prefix to be used in generated context files.

Returns the context module base name based on the configuration value.

Returns the context lib path to be used in generated context files.

Copies files from source dir to target dir according to the given map.

The paths to look for template files for generators.

Path to the context's lib directory.

Returns the OTP app from the Mix project configuration.

Prompts to continue if any files exist.

Path to the context's test directory.

Functions

Returns the OTP context app.

Link to this function

context_app_path(ctx_app, rel_path)

View Source

Returns the context app path prefix to be used in generated context files.

Returns the context module base name based on the configuration value.

config :my_app
  namespace: My.App
Link to this function

context_lib_path(ctx_app, rel_path)

View Source

Returns the context lib path to be used in generated context files.

Link to this function

context_test_path(ctx_app, rel_path)

View Source
Link to this function

copy_from(apps, source_dir, binding, mapping)

View Source

Copies files from source dir to target dir according to the given map.

Files are evaluated against EEx according to the given binding.

The paths to look for template files for generators.

Defaults to checking the current app's priv directory, and falls back to Flowy's priv directory.

Link to this function

lib_path(resource, ctx_app, rel_path)

View Source
@spec lib_path(atom(), atom(), String.t()) :: String.t()

Path to the context's lib directory.

Returns the OTP app from the Mix project configuration.

Link to this function

prompt_for_conflicts(generator_files)

View Source

Prompts to continue if any files exist.

Link to this function

test_path(resource, ctx_app, rel_path)

View Source
@spec test_path(atom(), atom(), String.t()) :: String.t()

Path to the context's test directory.