Skip to content

Commit

Permalink
feat: provides blend.clean task that cleans blend _build
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Feb 23, 2024
1 parent 56bc68b commit b964ef5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lib/mix/tasks/blend/clean.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
defmodule Mix.Tasks.Blend.Clean do
use Mix.Task

@shortdoc "Cleans blend build artifacts"
@requirements ["app.config"]

@impl true
def run(args) do
Blend.blends()
|> Map.keys()
|> Enum.map(fn blend_id ->
IO.puts("Cleaning blend #{blend_id}")

Blend.within(
blend_id,
fn ->
Mix.Task.rerun("clean", ["--deps" | args])
end
)
end)
end
end

0 comments on commit b964ef5

Please sign in to comment.