2020-11-28 11:12:32 +00:00
import Config
2020-08-05 07:39:59 +00:00
2022-08-30 03:45:10 +00:00
# Important: indicate date of last release, to generate a changelog for issues closed since then
changelog_issues_closed_after = " 2022-08-30 "
2022-01-13 02:14:06 +00:00
config :bonfire ,
2022-09-12 04:34:14 +00:00
# Note: you can run `Bonfire.Common.Config.put(:experimental_features_enabled, true)` to enable these in prod too
experimental_features_enabled : true ,
# low limit so it is easier to test
default_pagination_limit : 10
2022-01-13 02:14:06 +00:00
2022-05-28 22:30:35 +00:00
# config :pseudo_gettext, :locale, "en-pseudo_text" # uncomment to use https://en.wikipedia.org/wiki/Pseudolocalization and check that the app is properly localisable
2022-05-04 02:13:47 +00:00
config :bonfire , Bonfire.Common.Repo ,
2021-04-20 13:07:54 +00:00
database : System . get_env ( " POSTGRES_DB " , " bonfire_dev " ) ,
# show_sensitive_data_on_connection_error: true,
2022-06-18 22:27:47 +00:00
pool_size : String . to_integer ( System . get_env ( " POOL_SIZE " ) || " 10 " ) ,
log : false
2020-08-05 07:39:59 +00:00
2020-11-19 10:07:32 +00:00
path_dep_dirs =
Mess . deps ( [ path : " deps.path " ] , [ ] )
2020-11-19 11:56:52 +00:00
|> Enum . map ( & ( Keyword . fetch! ( elem ( &1 , 1 ) , :path ) <> " /lib " ) )
2020-11-19 10:07:32 +00:00
2020-11-10 14:45:38 +00:00
config :phoenix_live_reload ,
2022-09-12 04:34:14 +00:00
# watch the app's lib/ dir + the dep/lib/ dir of every locally-cloned dep
dirs : path_dep_dirs ++ [ " lib/ " ]
2021-04-20 13:07:54 +00:00
2022-09-12 04:34:14 +00:00
# to include cloned code in patterns
path_dep_patterns = Enum . map ( path_dep_dirs , & ( String . slice ( &1 , 2 . . 1000 ) <> " .*ex " ) )
# Surface views
path_dep_patterns =
( path_dep_patterns ++ path_dep_dirs )
|> Enum . map ( & ( String . slice ( &1 , 2 . . 1000 ) <> " .*sface " ) )
2020-11-10 14:45:38 +00:00
2020-08-05 07:39:59 +00:00
# Watch static and templates for browser reloading.
2020-11-14 16:05:58 +00:00
config :bonfire , Bonfire.Web.Endpoint ,
2021-06-03 11:24:50 +00:00
server : true ,
2022-09-12 04:34:14 +00:00
# In the development environment, Phoenix will debug errors by default, showing us a very informative debugging page. If we want to see what the application would serve in production, set to false
debug_errors : true ,
2021-06-03 11:24:50 +00:00
check_origin : false ,
2021-04-20 13:07:54 +00:00
code_reloader : true ,
2021-06-03 11:24:50 +00:00
watchers : [
2022-05-26 08:47:21 +00:00
# yarn: [
# "watch",
# cd: Path.expand("assets", File.cwd!())
# ],
2022-05-23 23:07:06 +00:00
yarn : [
2022-05-26 08:47:21 +00:00
" watch.js " ,
2021-06-08 11:23:07 +00:00
cd : Path . expand ( " assets " , File . cwd! ( ) )
] ,
2022-05-26 08:47:21 +00:00
yarn : [
" watch.css " ,
cd : Path . expand ( " assets " , File . cwd! ( ) )
] ,
yarn : [
" watch.assets " ,
cd : Path . expand ( " assets " , File . cwd! ( ) )
]
2021-06-03 11:24:50 +00:00
] ,
2020-08-05 07:39:59 +00:00
live_reload : [
2022-09-12 04:34:14 +00:00
patterns :
[
# ~r"^priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$",
# ~r"^priv/gettext/.*(po)$",
# ~r"^web/(live|views)/.*ex$",
# ~r"^lib/.*_live\.ex$",
# ~r".*leex$",
# defp elixirc_paths(:dev), do: ["lib"] ++ catalogues()
~r" lib/.*(ex|sface)$ " ,
~r" priv/catalogue/.*(ex)$ "
] ++ path_dep_patterns
2020-08-05 07:39:59 +00:00
]
2020-12-10 12:50:56 +00:00
config :logger , :console ,
level : :debug ,
2022-02-23 03:42:37 +00:00
truncate : :infinity ,
2022-09-12 04:34:14 +00:00
# Do not include metadata or timestamps
format : " [$level] $message \n "
2020-08-05 07:39:59 +00:00
2020-11-20 12:01:33 +00:00
config :phoenix , :stacktrace_depth , 30
2020-08-05 07:39:59 +00:00
config :phoenix , :plug_init_mode , :runtime
2020-11-10 14:45:38 +00:00
2022-09-12 04:34:14 +00:00
config :surface , :compiler , warn_on_undefined_props : true
2022-04-17 07:53:08 +00:00
2021-04-20 13:07:54 +00:00
config :exsync ,
src_monitor : true ,
2021-04-24 12:58:56 +00:00
extra_extensions : [ " .leex " , " .js " , " .css " , " .sface " ]
2022-07-19 04:22:38 +00:00
config :versioce , :changelog ,
2022-09-12 04:34:14 +00:00
# Or your own datagrabber module
datagrabber : Versioce.Changelog.DataGrabber.Git ,
# Or your own formatter module
formatter : Versioce.Changelog.Formatter.Keepachangelog
2022-07-19 04:22:38 +00:00
config :versioce , :changelog ,
2022-08-30 03:45:10 +00:00
closed_after : changelog_issues_closed_after ,
2022-07-19 04:22:38 +00:00
changelog_file : " docs/CHANGELOG-autogenerated.md " ,
datagrabber : Bonfire.Common.Changelog.Github.DataGrabber ,
2022-09-12 04:34:14 +00:00
anchors : %{
added : [ " Feature " ] ,
changed : [ " Improvement " , " UI/UX " , " Refactor " ] ,
deprecated : [ " [DEP] " ] ,
removed : [ " [REM] " ] ,
fixed : [ " Bug " ] ,
security : [ " Security " , " Safety " ]
}