Skip to content

Commit

Permalink
update deps #146
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Oct 6, 2021
1 parent 5d04424 commit bed2491
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 92 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: elixir
elixir:
- 1.10.4
- 1.12.3
otp_release:
- 23.0.3
- 23.3.2
services:
- postgresql
env:
Expand Down
10 changes: 10 additions & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,13 @@ config :joken, default_signer: System.get_env("SECRET_KEY_BASE")
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"

# https://gist.github.com/chrismccord/2ab350f154235ad4a4d0f4de6decba7b
# Configure esbuild (the version is required)
config :esbuild,
version: "0.12.18",
default: [
args: ~w(js/app.js --bundle --target=es2016 --outdir=../priv/static/assets),
cd: Path.expand("../assets", __DIR__),
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
]
18 changes: 10 additions & 8 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,9 @@ config :auth, AuthWeb.Endpoint,
code_reloader: true,
check_origin: false,
watchers: [
node: [
"node_modules/webpack/bin/webpack.js",
"--mode",
"development",
"--watch-stdin",
cd: Path.expand("../assets", __DIR__)
]
# Start the esbuild watcher by calling Esbuild.install_and_run(:default, args)
esbuild: {Esbuild, :install_and_run, [:default, ~w(--sourcemap=inline --watch)]}
]

# ## SSL Support
#
# In order to use HTTPS in development, a self-signed
Expand Down Expand Up @@ -74,3 +68,11 @@ config :phoenix, :stacktrace_depth, 20

# Initialize plugs at runtime for faster development compilation
config :phoenix, :plug_init_mode, :runtime

# Configure your database
config :app, Auth.Repo,
username: "postgres",
password: "postgres",
database: "app_dev",
hostname: "localhost",
pool_size: 10
4 changes: 2 additions & 2 deletions elixir_buildpack.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Elixir version
elixir_version=1.10.4
elixir_version=1.12.3

# Erlang version
# available versions https://github.com/HashNuke/heroku-buildpack-elixir-otp-builds/blob/master/otp-versions
erlang_version=23.0.3
erlang_version=23.3.2

# always_rebuild=true
2 changes: 1 addition & 1 deletion lib/auth_web/endpoint.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule AuthWeb.Endpoint do
at: "/",
from: :auth,
gzip: false,
only: ~w(css fonts images js favicon.ico robots.txt)
only: ~w(assets fonts images favicon.ico robots.txt)

# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.
Expand Down
40 changes: 23 additions & 17 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ defmodule Auth.Mixfile do
def project do
[
app: :auth,
version: "1.3.1",
elixir: "~> 1.10.4",
version: "1.5.0",
elixir: "~> 1.12.0",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
test_coverage: [tool: ExCoveralls],
Expand Down Expand Up @@ -46,29 +46,34 @@ defmodule Auth.Mixfile do
defp deps do
[
# Phoenix core:
{:phoenix, "~> 1.5.3"},
{:phoenix_pubsub, "~> 2.0"},
{:phoenix_ecto, "~> 4.2.0"},
{:ecto_sql, "~> 3.4.5"},
{:phoenix, "~> 1.6.0"},
{:phoenix_ecto, "~> 4.4"},
{:ecto_sql, "~> 3.7.0"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.14.2"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
{:gettext, "~> 0.18.0"},
{:jason, "~> 1.2.1"},
{:plug_cowboy, "~> 2.3.0"},
{:phoenix_html, "~> 3.0"},
{:phoenix_live_view, "~> 0.16.4"},
{:floki, ">= 0.30.0", only: :test},
{:phoenix_live_dashboard, "~> 0.5"},
{:esbuild, "~> 0.2", runtime: Mix.env() == :dev},
{:swoosh, "~> 1.3"},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
{:gettext, "~> 0.18.2"},
{:jason, "~> 1.2.2"},
{:plug_cowboy, "~> 2.5.2"},

# Auth:
# https://github.com/dwyl/elixir-auth-github
{:elixir_auth_github, "~> 1.4.1"},
{:elixir_auth_github, "~> 1.5.0"},
# https://github.com/dwyl/elixir-auth-google
{:elixir_auth_google, "~> 1.3.0"},
{:elixir_auth_google, "~> 1.5.0"},
# https://github.com/dwyl/auth_plug
{:auth_plug, "1.2.3"},
{:auth_plug, "~> 1.3.0"},
# https://github.com/dwyl/rbac
{:rbac, "~> 0.5.0"},
{:rbac, "~> 0.5.3"},

# Field Validation and Encryption: github.com/dwyl/fields
{:fields, "~> 2.7.1"},
{:fields, "~> 2.8.2"},
# Base58 Encodeing: https://github.com/dwyl/base58
{:B58, "~> 1.0", hex: :b58},
# Useful functions: https://github.com/dwyl/useful
Expand Down Expand Up @@ -103,7 +108,8 @@ defmodule Auth.Mixfile do
"ecto.setup": ["ecto.create --quiet", "ecto.migrate --quiet", "seeds"],
"ecto.reset": ["ecto.drop", "ecto.setup"],
seeds: ["run priv/repo/seeds.exs"],
test: ["ecto.reset", "test"]
test: ["ecto.create --quiet", "ecto.migrate", "test"],
"assets.deploy": ["esbuild default --minify", "phx.digest"]
]
end

Expand Down
Loading

0 comments on commit bed2491

Please sign in to comment.