diff --git a/examples/cafe/.formatter.exs b/examples/cafe/.formatter.exs new file mode 100644 index 0000000..90a0853 --- /dev/null +++ b/examples/cafe/.formatter.exs @@ -0,0 +1,5 @@ +# Used by "mix format" +[ + inputs: ["mix.exs", "config/*.exs"], + subdirectories: ["apps/*"] +] diff --git a/examples/cafe/.gitignore b/examples/cafe/.gitignore new file mode 100644 index 0000000..82943d5 --- /dev/null +++ b/examples/cafe/.gitignore @@ -0,0 +1,21 @@ +# The directory Mix will write compiled artifacts to. +/_build/ + +# If you run "mix test --cover", coverage assets end up here. +/cover/ + +# The directory Mix downloads your dependencies sources to. +/deps/ + +# Where third-party dependencies like ExDoc output generated docs. +/doc/ + +# Ignore .fetch files in case you like to edit your project deps locally. +/.fetch + +# If the VM crashes, it generates a dump, let's ignore it too. +erl_crash.dump + +# Also ignore archive artifacts (built via "mix archive.build"). +*.ez + diff --git a/examples/cafe/README.md b/examples/cafe/README.md new file mode 100644 index 0000000..ff6b107 --- /dev/null +++ b/examples/cafe/README.md @@ -0,0 +1,4 @@ +# Cafe + +**TODO: Add description** + diff --git a/examples/cafe/config/config.exs b/examples/cafe/config/config.exs new file mode 100644 index 0000000..77085d7 --- /dev/null +++ b/examples/cafe/config/config.exs @@ -0,0 +1,20 @@ +# This file is responsible for configuring your application +# and its dependencies with the aid of the Mix.Config module. +use Mix.Config + +# By default, the umbrella project as well as each child +# application will require this configuration file, as +# configuration and dependencies are shared in an umbrella +# project. While one could configure all applications here, +# we prefer to keep the configuration of each individual +# child application in their own app, but all other +# dependencies, regardless if they belong to one or multiple +# apps, should be configured in the umbrella to avoid confusion. +import_config "../apps/*/config/config.exs" + +# Sample configuration (overrides the imported configuration above): +# +# config :logger, :console, +# level: :info, +# format: "$date $time [$level] $metadata$message\n", +# metadata: [:user_id] diff --git a/examples/cafe/mix.exs b/examples/cafe/mix.exs new file mode 100644 index 0000000..e3a26ad --- /dev/null +++ b/examples/cafe/mix.exs @@ -0,0 +1,20 @@ +defmodule Cafe.MixProject do + use Mix.Project + + def project do + [ + apps_path: "apps", + start_permanent: Mix.env() == :prod, + deps: deps() + ] + end + + # Dependencies listed here are available only for this + # project and cannot be accessed from applications inside + # the apps folder. + # + # Run "mix help deps" for examples and options. + defp deps do + [] + end +end