glcov/project

Types

pub type Project {
  Project(root: String, name: String, target: String)
}

Constructors

  • Project(root: String, name: String, target: String)

Values

pub fn app_name(
  project: Project,
  override: option.Option(String),
) -> String
pub fn build(project: Project) -> Result(Nil, String)

Build the project for the Erlang target. This compiles src, test, dev, and dev dependencies; it deliberately does not run gleam test.

pub fn build_target(
  project: Project,
  target: String,
) -> Result(Nil, String)
pub fn check_toolchain(project: Project) -> Result(Nil, String)

Check that the tools needed to build and analyse the project exist.

pub fn default_target_is_javascript(project: Project) -> Bool

Is the project configured for a target other than Erlang by default? The CLI can still be invoked with gleam run --target erlang; this is only used for a helpful diagnostic.

pub fn ebin(project: Project, app: String) -> String
pub fn is_absolute_path(path: String) -> Bool
pub fn javascript_source_maps(
  project: Project,
) -> Result(Bool, String)
pub fn js_build_dir(project: Project) -> String
pub fn locate(
  root_override: option.Option(String),
) -> Result(Project, String)
pub fn path_dependencies(
  project: Project,
) -> Result(List(toml.PathDependency), String)
pub fn resolve_path(project: Project, path: String) -> String

Resolve a project-relative path against the project root.

✨ Search Document