This commit is contained in:
Mayel de Borniol 2022-04-06 18:12:13 +12:00
parent 7e6aded84a
commit 37885785a3
5 changed files with 12 additions and 7 deletions

View file

@ -175,7 +175,9 @@ update.fork~%: ## Pull the latest commits from all ./forks
deps.get: mix.remote~deps.get mix~deps.get js.ext.deps.get ## Fetch locked version of non-forked deps
deps.data.clean: mix~bonfire.deps.clean
deps.clean.data: mix~bonfire.deps.clean.data
deps.clean.api: mix~bonfire.deps.clean.api
#### DEPENDENCY & EXTENSION RELATED COMMANDS ####

View file

@ -1,4 +1,4 @@
use Mix.Config
import Config
config :bonfire_livebook,
disabled: false

View file

@ -51,5 +51,5 @@ bonfire_editor_ck = "https://github.com/bonfire-networks/bonfire_editor_ck"
bonfire_invite_links= "https://github.com/bonfire-networks/bonfire_invite_links#main"
bonfire_ui_social = "https://github.com/bonfire-networks/bonfire_ui_social#main"
# bonfire_ui_social = "https://gitlab.com/msoe.edu/sdl/y22sdl/sdl-upcycle/bonfire_ui_social#upcycle"
upcycle_ext = "https://gitlab.com/msoe.edu/sdl/y22sdl/sdl-upcycle/upcycle_ext#main"
bonfire_upcycle = "https://gitlab.com/bonfire-networks/bonfire_upcycle"
where = "https://github.com/bonfire-networks/where#main"

10
mix.exs
View file

@ -21,7 +21,8 @@ defmodule Bonfire.MixProject do
deps_prefixes: [
docs: ["bonfire_", "pointers", "paginator", "ecto_shorts", "ecto_sparkles", "absinthe_client", "activity_pub", "arrows", "ecto_materialized_path", "flexto", "grumble", "linkify", "verbs", "voodoo", "waffle", "zest"],
test: ["bonfire_", "pointers", "paginator", "ecto_shorts", "ecto_sparkles", "activity_pub"],
data: ["bonfire_data_", "pointers", "bonfire_tag", "bonfire_classify", "bonfire_geolocate", "bonfire_boundaries"]
data: ["bonfire_data_", "pointers", "bonfire_tag", "bonfire_classify", "bonfire_geolocate", "bonfire_boundaries"],
api: ["bonfire_me", "bonfire_social", "bonfire_tag", "bonfire_classify", "bonfire_geolocate", "bonfire_valueflows"]
]
]
@ -99,7 +100,8 @@ defmodule Bonfire.MixProject do
# "phil_columns.seed",
],
"bonfire.deps.update": ["deps.update " <> deps_to_update()],
"bonfire.deps.clean": ["deps.clean " <> deps_to_clean() <> " --build"],
"bonfire.deps.clean.data": ["deps.clean " <> deps_to_clean(:data) <> " --build"],
"bonfire.deps.clean.api": ["deps.clean " <> deps_to_clean(:api) <> " --build"],
"bonfire.deps.recompile": ["deps.compile " <> deps_to_update() <> " --force"],
"bonfire.deps": ["bonfire.deps.update", "bonfire.deps.clean"],
"ecto.seeds": [
@ -197,8 +199,8 @@ defmodule Bonfire.MixProject do
defp mess_sources("0"), do: [git: "deps.git", hex: "deps.hex"]
defp mess_sources(_), do: [path: "deps.path", git: "deps.git", hex: "deps.hex"]
def deps_to_clean() do
deps(:data)
def deps_to_clean(type) do
deps(type)
|> deps_names()
end

View file

@ -43,6 +43,7 @@
"bonfire_ui_reflow": {:git, "https://github.com/bonfire-networks/bonfire_ui_reflow", "e16081f540954327339974a80bc70840ab1389c0", [branch: "main"]},
"bonfire_ui_social": {:git, "https://github.com/bonfire-networks/bonfire_ui_social", "378d939c024cfeab9b58afc22e4361ee4077037d", [branch: "main"]},
"bonfire_ui_valueflows": {:git, "https://github.com/bonfire-networks/bonfire_ui_valueflows", "988360e662776f75df8b71a09baed6f243dfb7c9", [branch: "main"]},
"bonfire_upcycle": {:git, "https://gitlab.com/msoe.edu-public/sdl/y22sdl/upcycle/bonfire_upcycle", "b58005726c953e2c54c12fcd41371baea689e176", []},
"bonfire_valueflows": {:git, "https://github.com/bonfire-networks/bonfire_valueflows", "0eabcf28139d74a6842ca6a6485b5894280df5ad", [branch: "main"]},
"bonfire_valueflows_observe": {:git, "https://github.com/bonfire-networks/bonfire_valueflows_observe", "94579c5e55d079594dba7b4cde1ef3b97e4fd0c8", []},
"bonfire_website": {:git, "https://github.com/bonfire-networks/bonfire_website", "f80d0da2cee056d6dbf3d2f7aa146b30c3aa01c2", [branch: "main"]},