View Source LightningCSS (lightning_css v0.2.0)

Lightning CSS

Summary

Functions

Returns the path to the executable.

Returns the version of the lightning_css executable.

Returns the configuration for the given profile.

Returns the version of Lightning CSS that this package should use.

Installs lightning_css with configured_version/0.

Installs, if not available, and then runs lightning_css.

Returns the most recent Lightning CSS version known by this package.

Runs the given command with args.

Callback implementation for Application.start/2.

Functions

Returns the path to the executable.

The executable may not be available if it was not yet installed.

Returns the version of the lightning_css executable.

Returns {:ok, version_string} on success or :error when the executable is not available.

Returns the configuration for the given profile.

Returns nil if the profile does not exist.

@spec configured_version() :: String.t()

Returns the version of Lightning CSS that this package should use.

Installs lightning_css with configured_version/0.

Link to this function

install_and_run(profile, args)

View Source

Installs, if not available, and then runs lightning_css.

Returns the same as run/2.

@spec latest_version() :: String.t()

Returns the most recent Lightning CSS version known by this package.

Link to this function

run(profile, extra_args)

View Source

Runs the given command with args.

The given args will be appended to the configured args. The task output will be streamed directly to stdio. It returns the status of the underlying call.

Callback implementation for Application.start/2.